https证书更换之后,所有的请求全部报【{"message":"{“code”:2300060,"message":"SSL peer certificate or SSH remote key was not OK"}】了,这种情况怎么解决?
可能是证书过期,详情参考以下文档:https://developer.huawei.com/consumer/cn/doc/harmonyos-references-V5/errorcode-net-http-V5\#section2300060-远程服务器ssl证书或ssh秘钥不正确建议将证书放入根证书同级目录下,如/etc/ssl/certs/cacert1.pem将该路径设置到capath参数,参考链接:https://developer.huawei.com/consumer/cn/doc/harmonyos-references-V5/js-apis-http-V5
可能是证书过期,详情参考以下文档:
https://developer.huawei.com/consumer/cn/doc/harmonyos-references-V5/errorcode-net-http-V5\#section2300060-远程服务器ssl证书或ssh秘钥不正确
建议将证书放入根证书同级目录下,如/etc/ssl/certs/cacert1.pem将该路径设置到capath参数,参考链接:https://developer.huawei.com/consumer/cn/doc/harmonyos-references-V5/js-apis-http-V5