Oracle Integration · REST Adapter (OCI Signature Version 1)

CASDK-0005: PrivateKeyInfo cannot be cast to PEMKeyPair

Short answer

This CASDK-0005 error in Oracle Integration means the private key is in PKCS8 format, but the OCI Signature Version 1 policy only reads RSA (PKCS1) keys. Convert the key with openssl pkey -in private_key_in_pkcs8_format.pem -traditional > new_converted_file.key.

VerifiedLast verified

01Error text

Oracle Integration error
CASDK-0005: A connector specific exception was raised by the application.
org.bouncycastle.asn1.pkcs.PrivateKeyInfo cannot be cast to org.bouncycastle.openssl.PEMKeyPair

02Likely causes

  • Private keys downloaded from the Oracle Cloud Console are PKCS8. The OCI Signature Version 1 policy only reads RSA (PKCS1) keys.

03How to fix it

  1. Convert the key with openssl pkey -in private_key_in_pkcs8_format.pem -traditional > new_converted_file.key.

iNotes

The converted file should begin with -----BEGIN RSA PRIVATE KEY-----.

04Official documentation

Test every fix in a non-production environment before you apply it to production. See how entries are verified.

More for Oracle Integration work:Open Oracle Integration jobsOracle Integration rates and salaries

The iPaaS Brief

Subscribe to The iPaaS Brief.

The iPaaS newsletter for the people who run integrations. From iPaaS Group.

Free. You finish on theipaasbrief.com and confirm by email.