-
Notifications
You must be signed in to change notification settings - Fork 17
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
(FM-7625) implement finegrained configuration support for SSL verification #76
Conversation
|
Will be adding unit tests tomorrow. So this is more for early review at this point. |
Codecov Report
@@ Coverage Diff @@
## master #76 +/- ##
==========================================
+ Coverage 99.02% 99.15% +0.13%
==========================================
Files 39 39
Lines 919 948 +29
==========================================
+ Hits 910 940 +30
+ Misses 9 8 -1
Continue to review full report at Codecov.
|
c7e22b8
to
f36cf9a
Compare
|
Tagging @clairecadman for the readme changes. @DavidS the changes proposed have been made I believe :-) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
First pass over the code.
| ciphers: @ciphers ? @ciphers.join(':') : @ciphers, | ||
| verify_callback: ->(preverify_ok, cert_store) do | ||
| verify_callback(preverify_ok, cert_store) | ||
| end) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You might be able to directly convert the verify_callback method into a proc by using the syntax described in https://stackoverflow.com/a/4294660/4918
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I did want to split it out to make it easier to test the method
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please see suggested changes. Thanks!
f36cf9a
to
36fbb23
Compare
ccb6290
to
dc72b66
Compare
This will make use of `verify_mode` control in order to do verification. Can also specify which `ssl_ca_file` to use for verification other wise it will use the certs in `OpenSSL::X509::DEFAULT_CERT_FILE`, e.g.: `ruby -ropenssl -e 'puts OpenSSL::X509::DEFAULT_CERT_FILE'` The SHA256 fingerprint can be specified for additional verification.
dc72b66
to
2be8cdf
Compare
Always return the exception's stack trace in the correct place in the bolt _error message.
This will make use of
verify_modecontrol in order to dopeer,client-once, orfail-no-peerverification.Can also specify which
ca_fileto use for verification other wise it will use the certs inOpenSSL::X509::DEFAULT_CERT_FILE, e.g.:ruby -ropenssl -e 'puts OpenSSL::X509::DEFAULT_CERT_FILE'The SHA256 fingerprint can be specified for additional verification.