[pyOpenSSL] quick question, converting a small (two lines) of Ruby (OpenSSL) to PyOpenSSL

aaron smith beingthexemplarylists at gmail.com
Tue Aug 25 07:21:02 CEST 2009


I'm trying to convert a small snippet of ruby code that handles some
ssl stuff for me..

The Ruby code is this:

sign_dss1 = OpenSSL::Digest::DSS1.new
priv = OpenSSL::PKey::DSA.new(File.read("lib/dsa_priv.pem"))
priv.sign(sign_dss1, "test" )

This is somewhat contrived, but this all i'm trying to convert. The
docs for pyOpenSSL don't explain that much, so I'm not even sure where
to look.

Thanks for your help!
-A




More information about the pyopenssl-users mailing list