def x509_extract_rsa_public_key(cert, binary=False):
 x509 = x509_parse_cert(cert, binary)
 return x509.get_pubkey().get_rsa().as_pem()

def x509_extract_rsa_public_key ( cert , binary = False ) : x509 = x509_parse_cert ( cert , binary ) return x509 . get_pubkey ( ) . get_rsa ( ) . as_pem ( )
return the public key from a x509 certificate .