Using http-access2 to get peer_cert

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

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi,

sutch wrote:

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

No choice but to use (awful) verify_callback. It must be doable. I’ll
add it.

Regards,
// NaHi
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.1 (Cygwin)

iQEVAwUBRNbJ/R9L2jg5EEGlAQIReQf/YtAUc1io3rvSbpUcZOeEeziXzsXVUlTz
qwwOcAeJUsFcRXqlwxFRMQZAPztAfp6N+kaCjOiZuuI6pS6SBOYu4nOEntv0Ok7T
Z66YEbtdGI+z3SyZyChHa4NO1Yn5vawQfta4Qk/w1S02wXuoBUXlxnUBzeEo/5gb
LSZkrQim0K1OqX/Wy20LUEiWoalJlqNMnmDSVUGaLTFiXcJX730rfClexY+MbIoH
uawROwyNeqqGFCdVnvVm2/4NA72V4On49CC0tf1uMjbInlpaQLx4AELgis+vI1i8
k0TH2FdPIxgpGfT5H0gK7t4Qr8StUbi1AMOyek4sTlQS3TM+HztoDg==
=MHLv
-----END PGP SIGNATURE-----

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs