I want to add a client certificate to a firefox profile using JSS. I have a p12 file with no password on it and am trying to import it like so:
CryptoManager.initialize(profileDirectory); CryptoManager cm = CryptoManager.getInstance(); cm.importCACertPackage(certificateFileAsByteArray); This gives me the error: java.security.cert.CertificateEncodingException: CERT_ImportCAChainTrusted returned an error: (-8183) security library: improperly formatted DER-encoded message. Which sounds like the file is in the wrong format. I have actually tried this with many variants of the the import* methods and have changed my key to use a friendly name etc. However the best I can get is for my cert to show up in the Authorities list and not the Your Certificates list. Can anyone give me a pointer as to what the correct way of handling this is? Thanks
-- dev-tech-crypto mailing list dev-tech-crypto@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-tech-crypto