[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

Using http-access2 to get peer_cert

dsutch

7/29/2006 3:53:00 AM

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