OpenSSL

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,138
Messages
2,570,805
Members
47,349
Latest member
jojonoy597

Latest Threads

Top