Welcome to the "trac"-ing site of http-access2!
[soap4r] [httpclient] [openpgp4u] [pkcs1] [logger] [csv] [vtr]

Ticket #123 (closed enhancement: fixed)

Opened 2 years ago

Last modified 1 year ago

Using http-access2 to get peer_cert

Reported by: anonymous Assigned to: nahi
Priority: high Milestone: 2.0.7
Component: core Version: 2.0
Keywords: Cc:

Description

from ruby-talk.

Is there a way to use http-access2 to obtain the peer's SSL
certificate?

I can do this with net/http:

https = Net::HTTP.new(host, port)
https.use_ssl = true
https.verify_mode = OpenSSL::SSL::VERIFY_NONE
cert = nil
https.start { |h| cert = OpenSSL::X509::Certificate.new(h.peer_cert) }
# cert now contains the peer's SSL certificate

Does http-access2 have something similar?

Thanks,
Dennis

Change History

04/29/07 10:28:46 changed by nahi

  • status changed from new to closed.
  • resolution set to fixed.

added in [138].