-
Notifications
You must be signed in to change notification settings - Fork 67
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
'SSL not authorized' when using Let's Encrypt #45
Comments
A bit more description of the problem along with a work-around: Connect to blynk-cloud.com server:
In blynk-cloud.com case,
Because the Blynk object calls So, in the case of a blynk server running in your own domain using Let's Encrypt certificates there is no way to force Blynk object to call I have forked the library and have a workaround that modifies
To use the workaround you have to set |
Why is this issue not addressed in over a year? I have my own server and want to use SSL with lets encrypt certificates... |
I am having this same issue, and I finally came across this. Thank you so much @guymcswain for the fix. That one line, along with adding the certs_path key (to /home/pi in my case) and "touch ~/server.crt" worked instantly. For potential finding by google scrapers: SSL not authorized when using Let's Encrypt on Blynk local server with blynk-library.js for nodejs |
In
blynk-nodejs, SslClient()
the defaultoptions.certs_path
points to server.crt in library and thereforeoptions.ca
maps to server.crt used for blynk-cloud.com. To enable SSL authorization via Mozilla CA, theoptions.ca
must be null. I've triedoptions.certs_path
pointing to a empty server.crt file but this returnsoptions.ca === [ <Buffer > ]
, an empty buffer which evaluates to 'true'.I have temporarily hard coded
opts.ca = null
to prevent overriding the Let's Encrypt authorization.The text was updated successfully, but these errors were encountered: