hostname 'openapi.alipay.com' was not verified是咋回事

2020-09-22 教育 67阅读
1down vote

This link has several possible causes; none of the responses were marked "accepted":
java.io.IOException: Hostname was not verified
You should also look here:
http://developer.android.com/training/articles/security-ssl.html
One reason this can happen is due to a server configuration error. The server is configured with a certificate that does not have a subject or subject alternative name fields that match the server you are trying to reach. It is possible to have one certificate be used with many different servers.
For example, looking at the google.com certificate with openssl s_client -connect google.com:443 | openssl
x509 -text you can see that a subject that supports *.google.com but also subject alternative names for *.youtube.com, *.android.com, and others. The error occurs only when the server name you are connecting to isn't listed by the certificate as acceptable.
声明:你问我答网所有作品(图文、音视频)均由用户自行上传分享,仅供网友学习交流。若您的权利被侵害,请联系fangmu6661024@163.com