abbasmajeed / rest-client

Automatically exported from code.google.com/p/rest-client
Apache License 2.0
0 stars 0 forks source link

peer not authenticated error #135

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Downloaded restclient-ui-2.3.3-jar-with-dependencies
2. Ran Jar file, brought up GUI
3. Entered URL and clicked 'Green button'

What is the expected output? What do you see instead?

peer not authenticated
javax.net.ssl.SSLPeerUnverifiedException: peer not authenticated
    at com.sun.net.ssl.internal.ssl.SSLSessionImpl.getPeerCertificates(Unknown Source)
    at org.apache.http.conn.ssl.AbstractVerifier.verify(AbstractVerifier.java:128)
    at org.apache.http.conn.ssl.SSLSocketFactory.connectSocket(SSLSocketFactory.java:339)
    at org.apache.http.impl.conn.DefaultClientConnectionOperator.openConnection(DefaultClientConnectionOperator.java:123)
    at org.apache.http.impl.conn.AbstractPoolEntry.open(AbstractPoolEntry.java:147)
    at org.apache.http.impl.conn.AbstractPooledConnAdapter.open(AbstractPooledConnAdapter.java:108)
    at org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:415)
    at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:641)
    at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:576)
    at org.wiztools.restclient.HTTPClientRequestExecuter.execute(HTTPClientRequestExecuter.java:303)
    at org.wiztools.restclient.ui.RESTView$26.run(RESTView.java:1061)

What version of the product are you using? On what operating system?
restclient-ui-2.3.3-jar-with-dependencies

Please provide any additional information below.
We are not using any authentication when I access URL through IE it is working 
fine.

Original issue reported on code.google.com by girinamb...@gmail.com on 21 Jul 2011 at 6:38

GoogleCodeExporter commented 9 years ago
same here...
I think you should choose ALLOW ALL under SSL tab (it helped before but not now)

Original comment by avigad...@gmail.com on 28 Jul 2011 at 11:05

GoogleCodeExporter commented 9 years ago
I also have the same problem. Using a self signed cert at the server. Selecting 
"Allow all" under SSL/Hostaname verifier doesn't help.

Original comment by haj...@gmail.com on 9 Aug 2011 at 8:52

GoogleCodeExporter commented 9 years ago
Adding the servercert to a keystore and adding it to the rstclient 
configuration under SSL works well though.

Original comment by haj...@gmail.com on 9 Aug 2011 at 9:06

GoogleCodeExporter commented 9 years ago
Thanks @hajons for pointing out the solution!

Original comment by subwiz on 9 Aug 2011 at 9:33

GoogleCodeExporter commented 9 years ago
For reference: keytool -importcert -file my.crt -keystore keystore.ks

Where my.crt contains the ASCII representation of the host's SSL certificate 
being imported (you can export to this format via Firefox's certificate manager)

After this point restclient trust store to keystore.ks with the password you've 
just configured and hostname verifier set to allow all.

I wish there was an override setting in the restclient SSL tab, would be handy 
for test setups which are often self signed and not all that secure...

Original comment by seng...@gmail.com on 7 Mar 2012 at 5:15

GoogleCodeExporter commented 9 years ago
r579 and r580 has the fix.

Original comment by subwiz on 7 Jul 2012 at 9:13

Attachments: