Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SSL verify disable is being ignored #52

Closed
tony-spencer opened this issue May 9, 2016 · 7 comments
Closed

SSL verify disable is being ignored #52

tony-spencer opened this issue May 9, 2016 · 7 comments

Comments

@tony-spencer
Copy link

tony-spencer commented May 9, 2016

I don' t know if I've used it incorrectly but in the attached example I'm getting an unexpected exception when I've set the client to never verify SSL:

Manticore::ClientProtocolException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target block in initialize at /Users/tony/.rvm/gems/jruby-9.0.5.0/gems/manticore-0.6.0-java/lib/manticore/response.rb:37 call at org/jruby/RubyProc.java:318 call at /Users/tony/.rvm/gems/jruby-9.0.5.0/gems/manticore-0.6.0-java/lib/manticore/response.rb:79 call_once at /Users/tony/.rvm/gems/jruby-9.0.5.0/gems/manticore-0.6.0-java/lib/manticore/response.rb:256 code at /Users/tony/.rvm/gems/jruby-9.0.5.0/gems/manticore-0.6.0-java/lib/manticore/response.rb:153 <top> at manticoretest.rb:8

JRuby version: 9.0.5.0
OS: Mac El Capitan 10.11.4

manticoretest.rb.gz

@tony-spencer
Copy link
Author

Hmm. Well I did this: rvm osx-ssl-certs update all

and now getting:
Unhandled Java exception: java.security.KeyStoreException: problem accessing trust storejava.io.IOException: Invalid keystore format java.security.KeyStoreException: problem accessing trust storejava.io.IOException: Invalid keystore format engineInit at sun/security/ssl/TrustManagerFactoryImpl.java:75 init at javax/net/ssl/TrustManagerFactory.java:250 loadTrustMaterial at org/apache/http/conn/ssl/SSLContextBuilder.java:106 invoke at java/lang/reflect/Method.java:606 setup_trust_store at /Users/tony/.rvm/gems/jruby-9.0.5.0/gems/manticore-0.6.0-java/lib/manticore/client.rb:622 ssl_socket_factory_from_options at /Users/tony/.rvm/gems/jruby-9.0.5.0/gems/manticore-0.6.0-java/lib/manticore/client.rb:602 pool_builder at /Users/tony/.rvm/gems/jruby-9.0.5.0/gems/manticore-0.6.0-java/lib/manticore/client.rb:394 pool at /Users/tony/.rvm/gems/jruby-9.0.5.0/gems/manticore-0.6.0-java/lib/manticore/client.rb:402 initialize at /Users/tony/.rvm/gems/jruby-9.0.5.0/gems/manticore-0.6.0-java/lib/manticore/client.rb:208 <top> at manticoretest.rb:5 invokeWithArguments at java/lang/invoke/MethodHandle.java:566

@tony-spencer
Copy link
Author

Ok I can run the script with no issues on Ubuntu some it's something wonky with Mac. Seems like Manticore is still performing some SSL activity on Mac despite verify: disable

@andrewvc
Copy link
Contributor

andrewvc commented Aug 5, 2016

@tony-spencer see #53

@cheald
Copy link
Owner

cheald commented May 28, 2018

I'm looking at this (and #53) but I can't seem to reproduce this in my Ubuntu environment. Expired SSL certs, broken SSL certs - they all work without incident when verify: :none is passed.

I'd like to fix it, but I need a failing test to be able to pin it down.

@F-PMOR
Copy link

F-PMOR commented May 29, 2020

Hi @cheald , do you still need an exemple where it doesn't work ?

@cheald
Copy link
Owner

cheald commented May 30, 2020

Yes, a reproducible test case, or even better, a failing unit test would be very useful.

@kares
Copy link
Collaborator

kares commented Jan 18, 2022

seems to be the same underlying cause as in #53, resolved in MC (>=) 0.8.0

@kares kares closed this as completed Jan 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants