Java NoSuchAlgorithmException - SunJSSE, sun.security.ssl.SSLContextImpl$DefaultSSLContext

前端 未结 3 1378

Background

I have been using the Authorize.net SDK in an Eclipse project of it\'s own. Everything was working great. I then needed to add it to my m

相关标签:
3条回答
  • 2020-12-18 18:38

    I had the similar issue. The problem was in the passwords: the Keystore and private key used different passwords. (KeyStore explorer was used)

    After creating Keystore with the same password as private key had the issue was resolved.

    0 讨论(0)
  • 2020-12-18 18:46

    Well after doing some more searching I discovered the error may be related to other issues as invalid keystores, passwords etc.

    I then remembered that I had set two VM arguments for when I was testing SSL for my network connectivity.

    I removed the following VM arguments to fix the problem:

    -Djavax.net.ssl.keyStore=mySrvKeystore -Djavax.net.ssl.keyStorePassword=123456
    

    Note: this keystore no longer exists so that's probably why the Exception.

    0 讨论(0)
  • 2020-12-18 18:46

    I've had a similar issue with this error. In my case, I was entering the incorrect password for the Keystore.

    I changed the password for the Keystore to match what I was entering (I didn't want to change the password I was entering), but it still gave the same error.

    keytool -storepasswd -keystore keystore.jks
    

    Problem was that I also needed to change the Key's password within the Keystore.

    When I initially created the Keystore, the Key was created with the same password as the Keystore (I accepted this default option). So I had to also change the Key's password as follows:

    keytool -keypasswd  -alias my.alias -keystore keystore.jks
    
    0 讨论(0)
提交回复
热议问题