请求地址:https://api.weixin.qq.com/sns/jscode2session?appid=**&secret=**&js_code=**&grant_type=authorization_code
使用的是okhttp请求的,在执行请求获取响应体时,时好时坏,有时候可以请求到,有时候又不行,报一下错误:
Caused by: java.security.cert.CertificateException: Certificates do not conform to algorithm constraints
atorException: Algorithm constraints check failed on keysize limits. RSA 1024bit key used with certificate: CN=mp.weixin.qq.com, O=Shenzhen Tencent Computer Systems Company Limited, L=Shenzhen, ST=Guangdong Province, C=CN. Usage was tls server
用的是openjdk 1.8,
希望各位大佬,指点一下,已经被这个问题困扰了很久了