我有一个使用AWS cognito和Google OAuth的Android应用。我最近遇到了一个错误报告:
com.amazonaws.mobileconnectors.apigateway.ApiClientException: Unable to execute HTTP request: Hostname cognito-identity.us-west-2.amazonaws.com not verified:
certificate: sha1/cYvP4QPPbliGE/t5y+chbsFBDJA=
DN: CN=*.graphgrid.com,O=GraphGrid\, Inc.,L=Wooster,ST=Ohio,C=US
subjectAltNames: [*.graphgrid.com, graphgrid.com] (Service: null; Status Code: 0; Error Code: null; Request ID: null)
...
Caused by: javax.net.ssl.SSLPeerUnverifiedException: Hostname cognito-identity.us-west-2.amazonaws.com not verified:
certificate: sha1/cYvP4QPPbliGE/t5y+chbsFBDJA=
DN: CN=*.graphgrid.com,O=GraphGrid\, Inc.,L=Wooster,ST=Ohio,C=US
subjectAltNames: [*.graphgrid.com, graphgrid.com]
但是请注意那些备用名称。主机cognito-identity.us-west-2.amazonaws.com
为何返回graphgrid.com
的证书?