Sebastien Lorber Sebastien Lorber - 5 months ago 14x
Java Question

Get certificate and add it to a Java truststore, when only having https URL?

I'm trying to send push notifications to Android devices through the Google Cloud Message servers.

The URL we use to do that is:

In our entreprise applications, we do not use the default CA authorities and we add manually each entity we trust for security reason, in a truststore file loaded by SSLContext properties.
I'd like to add GCM certificate to our truststore.

I don't know how to get the certificate from that URL. It seems the Chrome/Firefox export way is not working since the page redirects to another non-SSL page.

Someone has a solution?


Use Portecle. You can open the target key store, then use Examine > Examine SSL/TLS Connection, enter and 443 and you're done!