Returns the public half of a private key (a KeyObject or a PEM), or the public key itself.
the key
the public KeyObject
Returns the public half of a private key (a KeyObject or a PEM), or the public key itself.