title: Get certificate and add it to a Java truststore, when only having https URL?
body: <p>I'm trying to send push notifications to Android devices through the Google Cloud Message servers.</p>
  
  <p>The URL we use to do that is:</p>
  
  <pre><code>https://android.googleapis.com/gcm/send
  </code></pre>
  
  <p>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.</p>
  
  <p>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.</p>
  
  <p>Someone has a solution?</p>