Note that there are some explanatory texts on larger screens.

plurals
  1. POCertificateException: No name matching ssl.someUrl.de found
    text
    copied!<p>I'm trying to connect to one of my servers through ssl, with Java. I tried a lot of options here is my best try:</p> <p>I generate a jssecacerts with the recommendet script: <a href="http://blogs.oracle.com/andreas/resource/InstallCert.java" rel="noreferrer">http://blogs.oracle.com/andreas/resource/InstallCert.java</a> with the command: java InstallCert ssl.someUrl.de changeit</p> <p>after this I did the command a second time:</p> <pre><code>Loading KeyStore jssecacerts... Opening connection to ssl.someUrl.de:443... Starting SSL handshake... No errors, certificate is already trusted Server sent 1 certificate(s): 1 Subject EMAILADDRESS=info@plesk.com, CN=plesk, OU=Plesk, O=Parallels, L=Hernd on, ST=Virginia, C=US Issuer EMAILADDRESS=info@plesk.com, CN=plesk, OU=Plesk, O=Parallels, L=Hernd on, ST=Virginia, C=US sha1 f1 0d 2c 54 05 e1 32 19 a0 52 5e e1 81 6c a3 a5 83 0d dd 67 md5 f0 b3 be 5e 5f 6e 90 d1 bc 57 7a b2 81 ce 7d 3d Enter certificate to add to trusted keystore or 'q' to quit: [1] </code></pre> <p>I copied the file to the default directory and I loaded the certificate in Java trustStore</p> <pre><code>System.setProperty("javax.net.ssl.trustStore", "C:\\Program Files (x86)\\Java\\jre6\\lib\\security\\jssecacerts"); System.setProperty("javax.net.ssl.trustStorePassword","changeit"); </code></pre> <p>Then I try to connect</p> <pre><code>URL url = new URL("https://ssl.someUrl.de/"); URLConnection conn = url.openConnection(); BufferedReader rd = new BufferedReader(new InputStreamReader(conn.getInputStream())); </code></pre> <p>And I get Error on 3rd line: (No name matching ssl.someUrl.de found)</p> <pre><code>javax.net.ssl.SSLHandshakeException: java.security.cert.CertificateException: No name matching ssl.someUrl.de found </code></pre> <p>Is this cause of the default plesk certificate or is something else wrong?</p> <p>Setup: JRE 6.20, Netbeans 6.8, Windows7 64bit</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload