测试环境程序这两天开始异常,以前可以调试正常的接口在没有变动的情况报如下错误:
Caused by: java.security.cert.CertificateExpiredException: NotAfter: Sun Apr 09 07:59:59 CST 2023
这两天正好替换了RSA2的公私钥+对方https地址,可以通过curl查看对方https地址:
curl -v https://xxx.xxx/xx/xx
可以看到证书有效期到20230408,而测试服务器时间大于该日期,导致测试异常: