]> WPIA git - gigi.git/blobdiff - src/org/cacert/gigi/GigiConfig.java
fix: Make certs optional
[gigi.git] / src / org / cacert / gigi / GigiConfig.java
index 3a1b9eed6642aadbbf4d733e9b3440a118ff248e..8b7c220202f83e8b3b07724fb57824c9fb49f368 100644 (file)
@@ -83,6 +83,9 @@ public class GigiConfig {
     }
 
     public KeyStore getPrivateStore() throws GeneralSecurityException, IOException {
+        if (keystore == null || keystorpw == null) {
+            return null;
+        }
         KeyStore ks1 = KeyStore.getInstance("pkcs12");
         ks1.load(new ByteArrayInputStream(keystore), keystorpw);
         return ks1;