无法验证SSL证书NODEJS

时间:2018-07-06 09:56:19

标签: node.js openssl ssl-certificate node-https

我正在尝试使用https模块向API服务器发出https请求,并且该请求正在抛出

err { [Error: unable to verify the first certificate] code: 'UNABLE_TO_VERIFY_LEAF_SIGNATURE' }

我怀疑是由于服务器缺少CA引起的。我去浏览器检查了网站证书。证书链为- enter image description here  1. GeoTrust SSL CA G3
 2. GeoTrust GLOBAL CA

因此,我去了“ geotrust” site,下载了两个证书并添加到我的CA阵列中。仍然会引发错误-

verify error:num=20:unable to get local issuer certificate

我不确定是什么原因造成的,因此我提取了证书的详细信息,并且该证书的颁发者详细信息为-

Issuer: C=US, O=GeoTrust Inc., CN=GeoTrust SSL CA - G3

我想我已经下载了相同的证书。我尝试使用openssl验证网站证书,但也无法显示-

error 20 at 0 depth lookup:unable to get local issuer certificate

因此,我非常确定我下载的中级CA不是签署此证书的人。但是我不知道如何在浏览器中对其进行验证。

我想知道我在这里要解决的问题吗?

0 个答案:

没有答案