我试图发送GET请求使用失眠应用程序到NodeJS服务器应用程序 - 我没有写应用程序,但已加入团队。失眠和NodeJS:“错误:对象证书无法通过给定的CA证书进行身份验证”
尽管我在浏览器中打开URL - https://127.0.0.1:9999时得到了合理的JSON响应,但在使用Insomnia时出现错误“错误:对象证书无法通过给定CA证书进行身份验证”。使用Mac,MacOS 10.12.4。节点v6.3.1。
失眠时间表说:
* Preparing request to https://127.0.0.1:9999/
* Enable automatic URL encoding
* Enable SSL validation
* Enable cookie sending with jar of 2 cookies
* Hostname in DNS cache was stale, zapped
* Trying 127.0.0.1...
* TCP_NODELAY set
* Connected to 127.0.0.1 (127.0.0.1) port 9999 (#8)
* WARNING: using IP address, SNI is being disabled by the OS.
* SSL certificate problem: Invalid certificate chain
* Curl_http_done: called premature == 1
* Closing connection 8
感谢您的帮助!