[Cryptography-dev] openssl command one that needs a pyca/cryptography rewrite

Dan Stromberg dstromberglists at gmail.com
Mon Aug 2 12:46:12 EDT 2021


So the first command looks like this:
['openssl', 'rsa', '-passin', 'pass:{0}'.format(record.password)]

It's just accepting the following on stdin, formatted like:
-----BEGIN RSA PRIVATE KEY-----
...
-----END RSA PRIVATE KEY-----

...and outputting something that'll later be passed to ssh-keygen -i -f
-mPKCS8.

Is there a pyca/cryptography equivalent?

Thanks!

PS: I should've mentioned previously: I'm a bit of a cryptography newb.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.python.org/pipermail/cryptography-dev/attachments/20210802/3907eef3/attachment.html>


More information about the Cryptography-dev mailing list