Java\jdk1.6.0_38\jre\lib\ext \bcprov-jdk15on-149.jar
Java\jdk1.6.0_38\jre\lib\security\java.security
security.provider.1=sun.security.provider.Sun
security.provider.2=sun.security.rsa.SunRsaSign
It shows that this virtual machine has two encryption providers and their priority and name used for access. When an encryption algorithm is needed, the virtual machine visits the providers listed here in turn, looks for the desired algorithm, and uses the first algorithm found in the order of priority here. We should insert the new provider in the file such as:
security.provider.3=org.bouncycastle.jce.provider.BouncyCastleProvider
Pay attention to case
BouncyCastle can be downloaded from www.bouncycastle.org (corresponding to the JDK version of BouncyCastle)