Skip to content
Permalink
Browse files
fix: re-encode public keys from google.jks into p12 format for android (
  • Loading branch information
chingor13 committed Mar 10, 2021
1 parent da34214 commit 83f37023ea50a643a76eb6e5230072e5c829a205
@@ -81,8 +81,8 @@ public final class GoogleUtils {
public static synchronized KeyStore getCertificateTrustStore()
throws IOException, GeneralSecurityException {
if (certTrustStore == null) {
certTrustStore = SecurityUtils.getJavaKeyStore();
InputStream keyStoreStream = GoogleUtils.class.getResourceAsStream("google.jks");
certTrustStore = SecurityUtils.getPkcs12KeyStore();
InputStream keyStoreStream = GoogleUtils.class.getResourceAsStream("google.p12");
SecurityUtils.loadKeyStore(certTrustStore, keyStoreStream, "notasecret");
}
return certTrustStore;
Binary file not shown.

0 comments on commit 83f3702

Please sign in to comment.