From: Rick D. <ri...@fd...> - 2009-08-25 16:13:00
|
The automated test cases are a good place to look for examples. It's a directory named "test" in the pyOpenSSL sources. Some comments about what you are trying to accomplish would be useful. I don't know the Ruby API and you didn't link to it's docs. Are you trying to create a DSA certificate? Is "test" the common name of the subject for the new certificate being created? If so, you need a bunch more stuff than those three lines. I attached an example. -- Rick On Mon, Aug 24, 2009 at 10:21:02PM -0700, aaron smith wrote: > 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 > > ------------------------------------------------------------------------------ > Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day > trial. Simplify your report design, integration and deployment - and focus on > what you do best, core application coding. Discover what's new with > Crystal Reports now. http://p.sf.net/sfu/bobj-july > _______________________________________________ > pyopenssl-list mailing list > pyo...@li... > https://lists.sourceforge.net/lists/listinfo/pyopenssl-list |