java.security.NoSuchAlgorithmException: RSA Signature not available

前端 未结 4 2033
南旧
南旧 2021-02-09 06:06

this is exception

Exception in thread \"main\" java.security.NoSuchAlgorithmException: RSA Signature not available
    at java.security.Signature.getInstance(Signatu         


        
4条回答
  •  遇见更好的自我
    2021-02-09 06:50

    I've checked the algorithms supported by java versions(1.7) & (1.8) in my machine. One of my project runs on jdk 1.7.0_80, which doesn't support SHA224withRSA algorithm, if you're in same situation then upgrade to newer version of java atleast to (Java SE 7 Update 131)as I've read it should have similar algorithms as java 8. If no option to update java then try adding org.bouncycastle bcprov-jdk15on maven dependency in pom or a jar file to your project & also in java code add where you build SSLContext/HttpClient include below line:

    Security.addProvider(new BouncyCastleProvider());

    Also tried installing Java Cryptography Extension (JCE) Unlimited Strength Jurisdiction Policy Files 7, but it hasn't worked !!

提交回复
热议问题