def load_csr(pem_path):
    """Load CSR from PEM encoded file"""
    with open(pem_path, "rb") as f:
        return cryptography.x509.load_pem_x509_csr(
            data=f.read(), backend=cryptography.hazmat.backends.default_backend()
        )