S
sutch
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
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