Oracle Integration · REST Adapter (OCI Signature Version 1)
CASDK-0005: PrivateKeyInfo cannot be cast to PEMKeyPair
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
CASDK-0005: A connector specific exception was raised by the application.
org.bouncycastle.asn1.pkcs.PrivateKeyInfo cannot be cast to org.bouncycastle.openssl.PEMKeyPair02Likely 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
- 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
→Related errors
- OAuth: The token has already been consumedThis REST Adapter error in Oracle Integration means the connection could not refresh its access token, because no refresh token was received or the refresh token expired. Verify that the connection receives a refresh token. Make sure the scope includes offline_access.
- OCI Object Storage Search API returns 401 NotAuthenticatedThis 401 from the OCI Object Storage Search API through the Oracle Integration REST Adapter usually points to invalid credentials or an unsupported wildcard search. Make sure the file name being searched does not contain the character.
- RPST and OCI Service Invocation: NamespaceNotFoundA 404 NamespaceNotFound through the Oracle Integration REST Adapter with the RPST and OCI Service Invocation policy means the policy or dynamic group is not set correctly. Set the policy to perform the required operations.
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