问题描述
我们有一个Node JS API客户端连接到基于Java的REST API服务器。服务器发布自签名证书。目前,我们设置:
rejectUnauthorized: false
});```
So this basically doesn’t care if the server’s identity cannot be verified. And it can’t be verified as it is self-signed and it won’t match the built-in CA’s.
Now I have the Root CA and the intermediate certs in the key-chain. Is there any configuration I can use in Node to verify the certificate that the server returns if I have the Root CA's and relevant certs on File.
Also,do I need the intermediate certs in the Key chain for this?
I am not well versed in https and any help is appreciated.
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)