Client certificate validation on server side, DEPTH_ZERO_SELF_SIGNED_CERT error

后端 未结 7 1212
不知归路
不知归路 2020-12-09 16:34

I\'m using node 0.10.26 and trying to establish https connection with client validation.

Server\'s code:

var https = require(\'https\');
var fs = req         


        
7条回答
  •  有刺的猬
    2020-12-09 16:57

    This one worked for me:

    process.env.NODE_TLS_REJECT_UNAUTHORIZED = "0";
    

    Note: Posting answer so it can help others in future.

提交回复
热议问题