I am getting the same error as you when sending a POST to
https://android.apis.google.com/c2dm/send:

java.security.cert.CertificateException: No subject alternative DNS
name matching android.apis.google.com found.

Can you update me if you've found a solution?

Thanks,
Wei

On Aug 12, 1:39 pm, Sean Liao <[email protected]> wrote:
> I appreciate if you kindly take a quick look of my issue of sending a C2DM
> to android emulator. Now,  I am getting the following error:
>
> java.security.cert.CertificateException: No subject alternative DNS name
> matching android.apis.google.com found.
>
> I think it might be related to:  "Header with a
> ClientLogin<http://code.google.com/apis/accounts/docs/AuthForInstalledApps.html>
> Auth
> token"?  I am not sure if I interpret the doc correctly?
>
> The following are the data I got:
> The response from ClientLogin:
> SID=DQAAAJoAAABXme_JJsvfqYdKjD24edExH2biEinIybvxiO_eO1nuCtbUD3UuplqPcW-9ilw 
> NnjO5yF1MUA5VrhApiNGER1sr_Cu0XyRdGvV7gv_3RytrgY35ziEyyqBy9452tQIsUJI_eJupIe 
> l53V6x6xtTS1_bxaO5vMvTxK_IOWabzKKp8kPYRSpyx315QUpyTxt9RalfzqkySjFDBMHYmtcR5 
> jxL
> LSID=DQAAAJ0AAAAohb7t7TRUOZRUBxSKe1cQsmXLfJBFjjXknKJCZVXce3lALKGKmfNLU3xAoi 
> TJ0YC7gdZY-dnRVVsW5yMArtx4KPrS2g2hUfS2wJ5LlI8Elzb3yK23ZMr73VM_3OJ4mX_SqBtgA 
> 9bFOAw8Nga7Q2dwHFgxD5dKNvhlrW6bgUQbnBi7xvCRzfS4JODiJP62qiD2-JcZFZc37WRtnugP 
> nseb
> *
> Auth=DQAAAJ0AAACbxXfajOAka6Wwq4WZCBMu8FFHLladf42XG5ADHqgVDPIxR9U4zPfVlEgVu8 
> 6-iF2lp1Vx5OLh0dT7K2oIgFca6GIg9tumOr5XCMlMNfNg05rs6Mjk1pYPqbSp9LJyCkU_Z8LWb 
> HQj3S9swJ1_QAJfihZfHvCGX7IB726vW3y20s60vXkrY1T9FnKz1V1xjaweZHnJAznrLqFjVrGd 
> XOwV
> *
>
> The first error I got was from: connection.setRequestProperty("Authorization:
> GoogleLogin auth", authToken);  // the key seems strange? is it correct?
>
> Illegal character(s) in message header value:
> DQAAAJ0AAACbxXfajOAka6Wwq4WZCBMu8FFHLladf42XG5ADHqgVDPIxR9U4zPfVlEgVu86-iF2 
> lp1Vx5OLh0dT7K2oIgFca6GIg9tumOr5XCMlMNfNg05rs6Mjk1pYPqbSp9LJyCkU_Z8LWbHQj3S 
> 9swJ1_QAJfihZfHvCGX7IB726vW3y20s60vXkrY1T9FnKz1V1xjaweZHnJAznrLqFjVrGdXOwV
>
> After examing the content of authToken, it has a carriage return in the end.
>  I just trim it to to by pass this error, is that the right way, or
> something wrong aleady?
>
> Then, I am getting
> java.security.cert.CertificateException: No subject alternative DNS name
> matching android.apis.google.com found.
>
> Any suggestion or pointer?
>
> Thanks in advance.
> Sean

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to