The problem iss that i can get the private key with a wrong passwd... Dont know where my error is...
Any suggestions?
X509Certificate[] chain ={ createV3Cert(keypair,"userid")};
KeyStore pkcs12KeyStore = null;
pkcs12KeyStore = KeyStore.getInstance("PKCS12", "BC");
pkcs12KeyStore.load(null, null);
pkcs12KeyStore.setKeyEntry("userid", keypair.getPrivate(), "rightpass".toCharArray(), chain);
pkcs12KeyStore.getKey("userid", "wrongpass".toCharArray()); //gets the same private key :-/ and no exceptions that passwd iss wrong