def get_sans_from_cert(cert, typ=OpenSSL.crypto.FILETYPE_PEM):
 return _get_sans_from_cert_or_req(cert, OpenSSL.crypto.load_certificate, typ)

def get_sans_from_cert ( cert , typ = OpenSSL . crypto . FILETYPE_PEM ) : return _get_sans_from_cert_or_req ( cert , OpenSSL . crypto . load_certificate , typ )
get a list of subject alternative names from a certificate .