Skip to Main Content

Cloud Platform

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

OCI sdk not able to load private key and throwing an error

User_77FTHJan 19 2023

INFO com.oracle.bmc.Services - Registering new service: Services.BasicService(serviceName=COMPUTE, serviceEndpointPrefix=iaas, serviceEndpointTemplate=https://iaas.{region}.{secondLevelDomain}, endpointServiceName=null)
** Test failure startInstance(oracle.ecprt.tests.ecprtConf.auth.InstanceActionExample): Failed to read RSA private key from file
Trace: com.oracle.bmc.http.signing.internal.PEMFileRSAPrivateKeySupplier$PEMFileRSAPrivateKeySupplierException: Failed to read RSA private key from file
at com.oracle.bmc.http.signing.internal.PEMFileRSAPrivateKeySupplier.<init>(PEMFileRSAPrivateKeySupplier.java:116)
at com.oracle.bmc.http.signing.internal.DefaultRequestSignerFactory.createKeySupplier(DefaultRequestSignerFactory.java:110)
at com.oracle.bmc.http.signing.internal.DefaultRequestSignerFactory.createRequestSigner(DefaultRequestSignerFactory.java:53)
at com.oracle.bmc.http.internal.BaseClient.<init>(BaseClient.java:88)
at com.oracle.bmc.http.internal.BaseSyncClient.<init>(BaseSyncClient.java:36)
at com.oracle.bmc.core.ComputeClient.<init>(ComputeClient.java:37)
at com.oracle.bmc.core.ComputeClient.<init>(ComputeClient.java:2734)

Comments
Post Details
Added on Jan 19 2023
1 comment
643 views