Error using self-signed certificate
I am trying to add my Trac server as a Task Server in PhpStorm. My Trac server is SSL-enabled with a self-signed certificate.
Initially I received an "invalid certificate" error. I got around that by following the steps from this post by JetBrains' Elena Shaverdova.
For the vmoptions file, I added this line:
-Djavax.net.ssl.keyStore="C:\Program Files (x86)\JetBrains\PhpStorm 5.0.1\jre\jre\lib\security\cacerts"
Which is the full path to the keystore. I have verified that my certificate is succesfully imported into the "cacerts" file, as it appears when I do a keytool.exe -list. However, when I now try to add my server, it throws the following error which I cannot seem to resolve:
2013-02-22 22:34:49,648 [ 20921] INFO - .httpclient.HttpMethodDirector - I/O exception (java.net.SocketException) caught when processing request: java.security.NoSuchAlgorithmException: Error constructing implementation (algorithm: Default, provider: SunJSSE, class: com.sun.net.ssl.internal.ssl.DefaultSSLContextImpl)
Looking at the JSSE documentation I figured it might be caused by the missing keyStorePassword setting, but if I add my PhpStorm.exe.vmoptions file and add the below line, it still throws the same error.
-Djavax.net.ssl.keyStorePassword=changeit
Does anyone have any further suggestions how to solve this exception?
请先登录再写评论。
Slight bump for this issue, which I'm still experiencing. As a workaround I temporarily disabled SSL-only access to my Trac environment, but I'd rather not. If anyone has any experience with Java SSL issues and might have a suggestion in which direction to look, it would be much appreciated.
This may be useful: http://www.chrissearle.org/blog/technical/adding_self_signed_https_certificates_java_keystore