org/bouncycastle/openssl/jcajce/JcaPEMKeyConverter not found

Issue #531 wontfix
Mohammad Mahdi Amini created an issue

Hi
On nimbus-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. Otherwise we will get class not fount exception.

Is this expected?

It seems like in the past we had a similar issue:
https://bitbucket.org/connect2id/nimbus-jose-jwt/issues/309/didnt-find-class

Comments (2)

  1. Vladimir Dzhuvinov

    The Bouncy Castle dependencies are optional.

    This means they must be explicitly included to be used.

    Don’t use the test scope, unless you only need the BC classes to run tests in your project.

  2. Log in to comment