SSL Error when searching Marketplace or getting updates
When I select "Check for Updates", I get "Connection failed (internal error). Please check network connection and try again."
I see this (shortening the exceptions) in the IDEA log:
2020-12-29 18:20:25,048 [ 411684] INFO - ateSettings.impl.UpdateChecker -
javax.net.ssl.SSLException at java.base/sun.security.ssl.Alert.createSSLException(Alert.java:133) ...
at java.base/sun.net.www.protocol.https.HttpsURLConnectionImpl.getResponseCode(HttpsURLConnectionImpl.java:334) at com.intellij.util.io.HttpRequests.openConnection(HttpRequests.java:630) ...
Caused by: java.lang.NullPointerException at com.intellij.util.net.ssl.ConfirmingTrustManager$MutableTrustManager.keyStoreIsEmpty(ConfirmingTrustManager.java:434) at com.intellij.util.net.ssl.ConfirmingTrustManager$MutableTrustManager.getAcceptedIssuers(ConfirmingTrustManager.java:413) at com.intellij.util.net.ssl.ConfirmingTrustManager.getAcceptedIssuers(ConfirmingTrustManager.java:155) ...
2020-12-29 18:20:25,056 [ 411692] INFO - ateSettings.impl.UpdateChecker - Connection failed (internal error). Please check network connection and try again.
2020-12-29 18:20:58,309 [ 444945] INFO - rationStore.ComponentStoreImpl - Saving appFileTypeManager took 16 ms, InspectionProfileManager took 16 ms
Similarly, when I restart IntelliJ and try to check the Marketplace for plugins, I get "plugins are not loaded", with this in the log:
2020-12-29 18:26:39,160 [ 5297] ERROR - net.ssl.ConfirmingTrustManager - Cannot create key store
java.io.IOException: toDerInputStream rejects tag type 0
at java.base/sun.security.util.DerValue.toDerInputStream(DerValue.java:873)
at java.base/sun.security.pkcs12.PKCS12KeyStore.engineLoad(PKCS12KeyStore.java:1997)
at java.base/sun.security.util.KeyStoreDelegator.engineLoad(KeyStoreDelegator.java:222)
at java.base/java.security.KeyStore.load(KeyStore.java:1479)
at com.intellij.util.net.ssl.ConfirmingTrustManager$MutableTrustManager.createKeyStore(ConfirmingTrustManager.java:217)
at com.intellij.util.net.ssl.ConfirmingTrustManager$MutableTrustManager.<init>(ConfirmingTrustManager.java:192)
...
2020-12-29 18:26:39,232 [ 5369] ERROR - net.ssl.ConfirmingTrustManager - IntelliJ IDEA 2020.3 Build #IC-203.5981.155
2020-12-29 18:26:39,239 [ 5376] ERROR - net.ssl.ConfirmingTrustManager - JDK: 11.0.9; VM: OpenJDK 64-Bit Server VM; Vendor: JetBrains s.r.o.
2020-12-29 18:26:39,255 [ 5392] ERROR - net.ssl.ConfirmingTrustManager - OS: Windows 10
2020-12-29 18:26:39,279 [ 5416] ERROR - net.ssl.ConfirmingTrustManager - Last Action:
2020-12-29 18:26:39,283 [ 5420] INFO - til.net.ssl.CertificateManager - Default SSL context initialized
What keystore is missing / corrupted?
请先登录再写评论。
Seems to be a certificate issue. Please add the certificate from your proxy to the JVM that is used by IDE to run. You can add it via command line tool or in File | Settings | Tools | Server Certificates settings.
Hmm. This is my work machine and I do have a VPN installed, but right now I'm not connected to it and I have all proxies disabled as far as I can tell. Is there some debug setting I can enable to see what proxy it's attempting to contact?
To get more diagnostics could you please add these two lines to Help | Diagnostic Tools | Debug Log Settings dialog:
restart IDE, reproduce the problem and attach produced idea.log. Thank you.
That didn't provide any additional information (no DEBUG statements). Here's the idea.log from startup before I even take any actions:
Also, when I attempt to add my company's certificate as requested above, I get this:
It seems pretty clear that it's looking for a keystore somewhere that doesn't exist, but I don't know where (or how) I should create it.
(Note that I've uninstalled/reinstalled a couple times, that didn't help either.)
Does it help to remove /system/tasks/cacerts (or whole /system/tasks/) directory in IDE configs?
Those are the 2019 IDE directories; I'm using 2020.3. Nevertheless, just to be sure, I uninstalled IJ 2020 and removed the Jetbrains folder from both AppData/Roaming and AppData/Local, and reinstalled. This time it worked, and I was finally able to install the plugin I was trying to use.
If you are a Mac user, you can delete everything under ~/Library/Application Support/JetBrains/IntelliJIdea*. Then restart IntelliJ, don't use previous settings, let IntelliJ create new settings for you. I solved the problem this way.
I saw the same issue from another user. It seems there is some problem with the cert file in the config folder for some reason.
Without deleting the config folder completely, you could close the IDEA, delete the certs file in IDE_CONFIG_FOLER's ssl folder.
Lejia Chen solution is what solved it for me.
Thank you!
Lejia Chen solution worked for me too.
Thanks!