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

Paul Kehrer paul.l.kehrer at gmail.com
Mon Aug 2 18:12:59 EDT 2021


Once you've loaded the key you can get a public key via public_key()
and then serialize it with public_bytes.

-Paul

On Mon, Aug 2, 2021 at 12:51 PM Dan Stromberg <dstromberglists at gmail.com> wrote:
>
>
> The third command looks like:
> ["openssl", "rsa", "-passin", "pass:{0}".format(newpassword), "-pubout"]
>
> I think here we're obtaining a new public key.
>
> Any suggestions as to how this could be rewritten to use pyca/cryptography?
>
> Thanks!
>
> _______________________________________________
> Cryptography-dev mailing list
> Cryptography-dev at python.org
> https://mail.python.org/mailman/listinfo/cryptography-dev


More information about the Cryptography-dev mailing list