Search code examples
certificatebouncycastlex509

Importing .pfx within BouncyCastle-Keystore


i've a problem concerning the import of a .pfx certificate into a bouncycastle-keystore. The error message says that "...tampered keystore file or incorrect PKCS12 Password...". I've exported the certificates with Windows' CertMgr.

The certificates are exported as .pfx files. I want to import the certificates with their private keys in order to use them in combination with tls' client authentication.

I would appreciate for any help.


Solution

  • Not sure about your case - but a lot of tools have implied assumptions about having a password on the private key and/or the same on the PKCS#12 enclosure; it being the same and being 4 or 6 chars. I found that using something like 'abcd1234' is a fairly safe one to use across vendors (or a real one of course).