Jump to content

Welcome to Smart Home Forum by FIBARO

Dear Guest,

 

as you can notice parts of Smart Home Forum by FIBARO is not available for you. You have to register in order to view all content and post in our community. Don't worry! Registration is a simple free process that requires minimal information for you to sign up. Become a part of of Smart Home Forum by FIBARO by creating an account.

 

As a member you can:

  •     Start new topics and reply to others
  •     Follow topics and users to get email updates
  •     Get your own profile page and make new friends
  •     Send personal messages
  •     ... and learn a lot about our system!

 

Regards,

Smart Home Forum by FIBARO Team


  • 0

'Connection reset by peer' only when SSL?


Question

Posted

Hello,

 

Thanks for taking the time to look at this one, its had me stumped for the last 48 hours.

 

I'll get down to it, I am building a web service in the cloud. And I am trying to get the Fibaro HC2 to talk to it using a lua scene.

 

The code below works fine returning the correct status code '204' but only when called using HTTP.  If I switch it to using HTTPS then I get the error "Connection reset by peer".  

 

I have tested the service with both HTTP and HTTPS using PostMan and Insomnia REST clients, and they indicate that the service works.  

 

It seems to be due to SSL and wonder if the net.HTTPClient is somehow failing me.

 

Perhaps you can suggest what the problem is?

 

Please login or register to see this code.

 

3 answers to this question

Recommended Posts

  • 0
  • Inquirer
  • Posted

    I have seen examples where http calls to other https enabled endpoints are used.  So I wondered whether it might be a misconfiguration by my cloud provider - Microsoft, so this is unlikely.

    I have validated this with 

    Please login or register to see this link.

      and they have run extensive tests and cannot find anything.

    Perhaps this is one for @Fibaro to look at as this is very unusual

    • 0
    Posted (edited)

    Here the same for  the ibmcloud:


    local url = 'http://orgId.messaging.internetofthings.ibmcloud.com:1883/api/v0002/application/types/typeId/devices/deviceId/events/eventId' works
    local url = 'https://orgId.messaging.internetofthings.ibmcloud.com:8883/api/v0002/application/types/typeId/devices/deviceId/events/eventId' gives 'Connection reset by peer'

     

     

    Edited by Hugo
    • 0
  • Inquirer
  • Posted (edited)

    Perhaps the root certificates need to be updated by @Fibaro , @M.Baranowski perhaps you could escalate?

    Edited by ianakapilotlight

    Join the conversation

    You can post now and register later. If you have an account, sign in now to post with your account.

    Guest
    Answer this question...

    ×   Pasted as rich text.   Paste as plain text instead

      Only 75 emoji are allowed.

    ×   Your link has been automatically embedded.   Display as a link instead

    ×   Your previous content has been restored.   Clear editor

    ×   You cannot paste images directly. Upload or insert images from URL.

    ×
    ×
    • Create New...