B
Brian Murphy-Dye
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.
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.