I am trying to configure nCipherKM Security provider with OpenJDK11. With jdk8 I had to add the provider to the java.security file and add the provider jar file to jre/lib/ext and it was working fine. Since external libraries are not allowed in the later jdk versions how can I add a provider on OpenJDK 11?
I have performed the following to configure the security provider with openjdk 11 -
Added the nCipherKM.jar to the CLASSPATH by creating a CLASSPATH environment variable
Added the security provider to the java.security file under openjdk11/conf/security/
security.provider.14=nCipherKM
I've also tried
security.provider.14=com.ncipher.provider.km.nCipherKM
java.Security.Provider file found in the nCipherKM.jar under nCipherKM\META-INF\services\ contains
com.ncipher.provider.km.nCipherKM
To validate if the provider was registered, I ran the command -
java --module-path %NFAST_HOME%\java\classes com.ncipher.provider.InstallationTest
I get the below output which indicates that the provider has been installed fine.
unlimited strength jurisdiction files are installed. The nCipher provider is installed, but is not registered at the top of the providers list in the java.security file. See the user guide for more information about the recommended
However, when I run my application, I still see the error -
[java.security.NoSuchProviderException:no such provider: nCipherKM]->
[java.base/sun.security.jca.GetInstance.getService(GetInstance.java:83)
I'd like to know what am I missing here. Thank you for the help!