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 <dstrombergli...@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@python.org
> https://mail.python.org/mailman/listinfo/cryptography-dev
_______________________________________________
Cryptography-dev mailing list
Cryptography-dev@python.org
https://mail.python.org/mailman/listinfo/cryptography-dev

Reply via email to