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 <[email protected]> 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 > [email protected] > https://mail.python.org/mailman/listinfo/cryptography-dev _______________________________________________ Cryptography-dev mailing list [email protected] https://mail.python.org/mailman/listinfo/cryptography-dev
