Centos7
.netcore api使用了SSL证书的情况下访问微信登录接口:
https://api.weixin.qq.com/sns/jscode2session
提示 远程证书无效
The SSL connection could not be established, see inner exception. The remote certificate is invalid according to the validation procedure.
解决方法:
/etc/pki/tls/cert.pem 复制到 /usr/local/openssl/
cp /etc/pki/tls/cert.pem /usr/local/openssl/
成功解决