While Generating Client Keystores for OAM Tester in Cert Mode Getting The Error: java.security.spec.InvalidKeySpecException: java.security.InvalidKeyException: invalid key format (Doc ID 2199240.1)

Last updated on FEBRUARY 06, 2017

Applies to:

Oracle Access Manager - Version 11.1.2.3.4 and later
Information in this document applies to any platform.

Symptoms

While running the folllowing command to generate Client Keystores for OAM Tester in Cert Mode:
java -cp $OAM_HOME/oam/server/tools/importcert/importcert.jar oracle.security.am.common.tools.importcerts.CertificateImport -keystore keystore.jks -privatekeyfile aaa_key.pem -signedcertfile aaa_cert.pem -storetype JKS -genkeystore yes

 

Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms