- changed status to resolved
Didn't find class "org.bouncycastle.openssl.jcajce.JcaPEMKeyConverter"
Issue #309
resolved
Im trying to parse a PEMKey using the code below, but throws an exception
JWK.parseFromPEMEncodedObjects(pemKey)
java.lang.ClassNotFoundException: Didn't find class "org.bouncycastle.openssl.jcajce.JcaPEMKeyConverter" on path: DexPathList[[zip file "/data/app/com.centinal.ivs.internal.debug-ek2qFGWFf_LZms1VNF5tIw==/base.apk", ...
Comments (2)
-
-
Hi
This issue has been reappeared onnimbus-jose-jwt-9.37.3
. To be able to use `org/bouncycastle/openssl/jcajce/JcaPEMKeyConverter` we need to add<groupId>org.bouncycastle</groupId> <artifactId>bcpkix-jdk18on</artifactId> <version>1.77</version> <scope>test</scope>
to the class path which is not optimal.
Is this expected?
- Log in to comment
Hi,
Per JavaDoc, you'll need the optional BouncyCastle dependency:
https://static.javadoc.io/com.nimbusds/nimbus-jose-jwt/7.2.1/com/nimbusds/jose/jwk/JWK.html#parseFromPEMEncodedObjects-java.lang.String-