def loadCert(pem):
"""
Creates a cryptography certificate object from the given PEM certificate.
:param pem: A certificate as a PEM string.
:return: A cryptography certificate object.
"""
return x509.load_pem_x509_certificate(pem.encode("utf-8"), default_backend())
评论列表
文章目录