AWS Cognito Android SDK-主机名未验证

时间:2019-01-04 04:21:30

标签: android exception aws-sdk amazon-cognito aws-sdk-android

我有一个使用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的证书?

0 个答案:

没有答案