.net - Peer Not Authenticated: REST Service Error using WizTool -
i using wiztool.org's restclient v3.4.2 test remote .net endpoint on windows 2012 box, iis 8.0.
i've used tool many times debug same rest services on local machine in debug mode, first time i've tried use on actual production server. (well, it's qa server, close enough.) main difference between i've done in past , on local dev box, don't have ssl cert, done http url. on qa server, have cert, i'm using https.
i getting error:
peer not authenticated javax.net.ssl.sslpeerunverifiedexception: peer not authenticated @ sun.security.ssl.sslsessionimpl.getpeercertificates(unknown source) @ org.apache.http.conn.ssl.abstractverifier.verify(abstractverifier.java:128) @ org.apache.http.conn.ssl.sslsocketfactory.connectsocket(sslsocketfactory.java:339) @ org.apache.http.impl.conn.defaultclientconnectionoperator.openconnection(defaultclientconnectionoperator.java:123) @ org.apache.http.impl.conn.abstractpoolentry.open(abstractpoolentry.java:147) @ org.apache.http.impl.conn.abstractpooledconnadapter.open(abstractpooledconnadapter.java:108) @ org.apache.http.impl.client.defaultrequestdirector.execute(defaultrequestdirector.java:415) @ org.apache.http.impl.client.abstracthttpclient.execute(abstracthttpclient.java:641) @ org.apache.http.impl.client.abstracthttpclient.execute(abstracthttpclient.java:576) @ org.wiztools.restclient.httpclientrequestexecuter.execute(httpclientrequestexecuter.java:303) @ org.wiztools.restclient.ui.restview$26.run(restview.java:1061)
i found these 2 threads relate error, neither provided clues:
peer not authenticated in web service?
peer not authenticated exception while consuming https rest service
i found thread more directly addressed tool using, i'm not sure follow proposed solution. scratch that... sure not understand proposed solution.
https://code.google.com/p/rest-client/issues/detail?id=135
in restclient tool, ssl > general tab, have played around combinations of "trust self-signed certificates" , "hostname verifier". no luck. (the server using full wild-card cert, don't think "trust self-signed certificates" has impact anyway.)
in iis, exported copy of cert .pfx file (with password) , in restclient tool, ssl > truestore / keystore, imported file. still no luck.
any ideas?
thanks!
in case else ends here looking solution, did find one, not 1 wiztool.org rest tool. process of importing ssl cert thing proved challenging, , instead ended using rest testing tool firefox plugin.
quick little plugin. worked charm right out of box.
Comments
Post a Comment