[lnkForumImage]
TotalShareware - Download Free Software

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


 

brian.murphydye

10/22/2003 5:19:00 PM

I am attempting access to an https address in Ruby 1.8. I have a key
and certificate in files in pem format. I would like to do something
like the following:

require 'net/https'
conn = Net::HTTP.new('mymachine', 443)
conn.use_ssl = true
conn.key_file = 'mykey.pem'
conn.cert_file = 'mycert.pem'
response = conn.get('/')

Unfortunately, key_file and cert_file exist only in the notes, not in
the actual code :-(

What is the proper way to do this?

Thanks in advance, Brian.