On Aug 25, 5:16 am, Sreevarshini Kuppuraj <li...@ruby-forum.com>
wrote:
> Frederick Cheung wrote:

> Hi Fred,
> thanks for the reply. i am already using open SSL library, can you help
> me with any example or code snippet on how to read the pem file in ruby?

You should be able to do something like
OpenSSL::X509::Certificate.new(File.read(path_to_certificate))
(OpenSSL::PKey::RSA.new(File.read(path_to_key)) if it's just a key in
the pem file)

Fred

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to rubyonrails-t...@googlegroups.com.
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to