-
Notifications
You must be signed in to change notification settings - Fork 170
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
How to test OpenSSL::SSL::SSLContext#add_certificate
?
#516
Comments
There's currently no way to retrieve them from SSLContext. The internal state looks like Once a session is established, openssl/test/openssl/test_ssl.rb Lines 137 to 178 in 8752d9e
|
The documentation for SSLContext states that the
#key=
and#cert=
writer methods are deprecated and to instead use#add_certificate
. However, I noticed there does not seem to be a way to inspect the addedkey
andcert
objects? Both#key
and#cert
both returnnil
after calling#add_certificate
.Steps To Reproduce
Expected Results
Actual Results
Version
ruby 3.1.2p20 (2022-04-12 revision 4491bb740a) [x86_64-linux]
openssl (default: 3.0.0)
The text was updated successfully, but these errors were encountered: