Skip to Main Content

Cloud Platform

Announcement

Testing banner

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
0 comments
51 views