在 Postman 中报错:Self-signed SSL certificates are being blocked 的分析与解决

1、在 Postman 中请求:https://api.channel-pub.wjdev.chinamcloud.cn/qq/v1/qq-cw-apps?group_id=spider ,报错:Self-signed SSL certificates are being blocked,如图1

图1

Could not get any response
There was an error connecting to https://api.channel-pub.wjdev.chinamcloud.cn/qq/v1/qq-cw-apps?group_id=spider.
Why this might have happened:
The server couldn't send a response:
Ensure that the backend is working properly
Self-signed SSL certificates are being blocked:
Fix this by turning off 'SSL certificate verification' in Settings > General
Proxy configured incorrectly
Ensure that proxy is configured correctly in Settings > Proxy
Request timeout:
Change request timeout in Settings > General

2、在 浏览器 Firefox 中请求:https://api.channel-pub.wjdev.chinamcloud.cn/qq/v1/qq-cw-apps?group_id=spider ,提示:api.channel-pub.wjdev.chinamcloud.cn 使用了无效的安全证书。,如图2

图2

您的连接并不安全

api.channel-pub.wjdev.chinamcloud.cn 的管理员没有正确配置好此网站。为避免您的信息失窃,Firefox 并未与此网站建立连接。

详细了解…

报告此类错误,帮助 Mozilla 识别与拦截恶意网站

api.channel-pub.wjdev.chinamcloud.cn 使用了无效的安全证书。

该证书因为其自签名而不被信任。
此证书仅对  有效。
证书过期日期为 2019年2月8日 11:31:52。而当前日期为 2019年2月18日 下午1:49。

错误代码:MOZILLA_PKIX_ERROR_SELF_SIGNED_CERT

3、在 浏览器 Firefox 中添加安全例外,如图3

图3

4、在 浏览器 Firefox 中请求:https://api.channel-pub.wjdev.chinamcloud.cn/qq/v1/qq-cw-apps?group_id=spider ,响应 200,如图4

图4

5、在 Postman 中,在“Settings”>“General”中关闭“SSL certificate verification”来解决此问题,如图5

图5

6、在 Postman 中请求:https://api.channel-pub.wjdev.chinamcloud.cn/qq/v1/qq-cw-apps?group_id=spider ,响应 200,如图6

图6

永夜