java.security.NoSuchAlgorithmException: Cannot find any provider supporting AES/CBC/PKCS7Padding
Solution:
Required jar packages.
<dependency>
<groupId>org.bouncycastle</groupId>
<artifactId>bcprov-jdk16</artifactId>
<version>1.46</version>
</dependency>
Or directly download the jar at
https://repo1.maven.org/maven2/org/bouncycastle/bcprov-jdk16/1.46/bcprov-jdk16-1.46.jar
1.Add the jar package bcprov-jdk16-1.46.jar to the jdk installation directory (%JAVA_HOME%\jre\lib\ext).
2. Modify the java.security file in the jdk installation directory (%JAVA_HOME%\jre\lib\security)
security.provider.7=com.sun.security.sasl.Provider Replace the following security.provider.7=org.bouncycastle.jce.provider.BouncyCastleProvider
Required jar packages.
<dependency>
<groupId>org.bouncycastle</groupId>
<artifactId>bcprov-jdk16</artifactId>
<version>1.46</version>
</dependency>
Or directly download the jar at
https://repo1.maven.org/maven2/org/bouncycastle/bcprov-jdk16/1.46/bcprov-jdk16-1.46.jar
1.Add the jar package bcprov-jdk16-1.46.jar to the jdk installation directory (%JAVA_HOME%\jre\lib\ext).
2. Modify the java.security file in the jdk installation directory (%JAVA_HOME%\jre\lib\security)
security.provider.7=com.sun.security.sasl.Provider Replace the following security.provider.7=org.bouncycastle.jce.provider.BouncyCastleProvider
Similar Posts:
- java.security.NoSuchProviderException: no such provider: BC [Two Method]
- [Solved] javax.net.ssl.SSLException: java.lang.RuntimeException: Could not generate DH keypair
- [Solved] SparkSQL Error: org.apache.hadoop.security.HadoopKerberosName.setRuleMechanism
- [Solved] Encryption and decryption error: java.lang.SecurityException: JCE cannot authenticate the provider BC
- [Solved] Jsonobject has no from object, idea has no Maven dependency, jsonobject Maven dependency package
- Hibernate Exception: java.lang.ClassNotFoundException: javax.xml.bind.JAXBException
- Springboot startup error start bean ‘eurekaautoserviceregistration’ NullPointerException
- [Solved] Springboot integrate swagger Error: failed to start bean ‘documentationpluginsboot
- [Solved] Cannot initialize Cluster. Please check your configuration for mapreduce.framework.name and the correspond server addresses
- [Solved] Cannot initialize Cluster. Please check your configuration for mapreduce.framework.name and the correspond server addresses