def get_names_from_cert(csr, typ=OpenSSL.crypto.FILETYPE_PEM):
 return _get_names_from_cert_or_req(csr, OpenSSL.crypto.load_certificate, typ)

def get_names_from_cert ( csr , typ = OpenSSL . crypto . FILETYPE_PEM ) : return _get_names_from_cert_or_req ( csr , OpenSSL . crypto . load_certificate , typ )
get a list of domains from a cert .