jerryscript-project / iotjs

Platform for Internet of Things with JavaScript http://www.iotjs.net

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Verifying secure connection without rejectUnauthorized option

daeyeon opened this issue · comments

There is no test case where rejectUnauthorized, the option for https.request or tls.connect, is true.
It's set true by default. So, by default, the server certificate needs to be verified using built-in CAs (if they exist). Its verification with a custom CA (given as an option) is also needed.

Currently no method for finding system CAs is implemented in the tls module.