java.lang.ClassCastException: class org.bouncycastle.asn1.pkcs.PrivateKeyInfo cannot be cast to class org.bouncycastle.openssl.PEMKeyPair Error When Trying To Invoke OCI Object Storage Rest Endpoint
(Doc ID 2988019.1)
Last updated on JANUARY 11, 2024
Applies to:
Oracle Integration 3 - Version N/A and laterInformation in this document applies to any platform.
Goal
Getting the following error when accessing OCI Object Storage using REST adapter endpoint in integration flow.
![CDATA[CASDK-0041: An error occurred while invoking the REST endpoint.[[oracle.cloud.connector.impl.rest.security.signature.SignatureException: java.lang.ClassCastException: class org.bouncycastle.asn1.pkcs.PrivateKeyInfo cannot be cast to class org.bouncycastle.openssl.PEMKeyPair (org.bouncycastle.asn1.pkcs.PrivateKeyInfo and org.bouncycastle.openssl.PEMKeyPair are in unnamed module of loader 'app')]].The 500 Internal Server Error is a very general HTTP status code that means something has gone wrong on the server side, but the target service could not be more specific on what the exact problem is. You can trace the cURL representation of the request sent to the target service from the Oracle Integration Cloud server logs.
The following command mentioned in the documentation https://docs.oracle.com/en/cloud/paas/application-integration/rest-adapter/troubleshoot-rest-adapter.html#GUID-F6137806-4051-484A-810B-DA366B96D7C1
openssl rsa -in private_key_in_pkcs8_format.pem -out new_converted_file.pem
does not generate the rsa format key.
Solution
To view full details, sign in with your My Oracle Support account. |
|
Don't have a My Oracle Support account? Click to get started! |
In this Document
Goal |
Solution |
References |