You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I use jruby-httpclient in an environment where I might run into self-signed SSL certs which usually leads to this:
SSLSessionImpl.java:352:in `getPeerCertificates': javax.net.ssl.SSLPeerUnverifiedException: peer not authenticated
from AbstractVerifier.java:128:in `verify'
from SSLSocketFactory.java:390:in `connectSocket'
from DefaultClientConnectionOperator.java:148:in `openConnection'
from AbstractPoolEntry.java:149:in `open'
from AbstractPooledConnAdapter.java:121:in `open'
from DefaultRequestDirector.java:561:in `tryConnect'
from DefaultRequestDirector.java:415:in `execute'
from AbstractHttpClient.java:820:in `execute'
from AbstractHttpClient.java:754:in `execute'
from AbstractHttpClient.java:732:in `execute'
from NativeMethodAccessorImpl.java:-2:in `invoke0'
from NativeMethodAccessorImpl.java:39:in `invoke'
from DelegatingMethodAccessorImpl.java:25:in `invoke'
from Method.java:597:in `invoke'
from JavaMethod.java:455:in `invokeDirectWithExceptionHandling'
I really don't care all that much about the validity of the SSL certs. Is there any way to disable the cert checking alltogether for jruby-httpclient?
Activity
rb2k commentedon Apr 22, 2013
Example:
rb2k commentedon Jun 7, 2013
This can be somewhat solved by doing this:
then
And now you can do this:
This seems to somewhat work. It will however still blow up when running into a http -> https redirect
rb2k commentedon Jun 7, 2013
Ok, next approach, less java :)
Quite a hack, but it works for me for now...