API sample cannot load private key
Summary
API sample cannot load private keyContent
I try to use https://docs.us-phoenix-1.oraclecloud.com/Content/Resources/Assets/signing_sample_java.txt to call an api. But it failed to load my pem private key that is currently used in my account. The error is:
Exception in thread "main" java.lang.IllegalArgumentException: java.io.IOException: Invalid DER: length field too big (186)
at org.tomitribe.auth.signatures.RSA.privateKeyFromPKCS1(RSA.java:63)
at org.tomitribe.auth.signatures.PEM.readPrivateKey(PEM.java:71)
at com.oracle.lian.Signing.loadPrivateKey(Signing.java:118)
at com.oracle.lian.Signing.main(Signing.java:76)
Caused by: java
2