Friday, April 22, 2016

[Node.js] https connection return curl: (35) Unknown SSL protocol error

Error:

curl: (35) Unknown SSL protocol error

Cause: For node.js https connection you are using invalid certificate. Invalid certificate is because the procedure you create the certificate.

Solution: Use the following mechanism to generate certificate and key.

openssl req -x509 -sha256 -newkey rsa:2048 -keyout key.pem -out cert.pem -days XXX


No comments:

Post a Comment

PDFScanner RS - Scan, Make PDF

PDF Scanner RS – Capture, Resize, Enhance & Create PDFs       Download: https://play.google.com/store/apps/details?id=com.rssoft.pdfscan...