@classmethod<EOL><INDENT>def from_cryptography(cls, crypto_cert):<DEDENT>
if not isinstance(crypto_cert, x509.Certificate):<EOL><INDENT>raise TypeError("<STR_LIT>")<EOL><DEDENT>cert = cls()<EOL>cert._x509 = crypto_cert._x509<EOL>return cert<EOL>
Construct based on a ``cryptography`` *crypto_cert*.

:param crypto_key: A ``cryptography`` X.509 certificate.
:type crypto_key: ``cryptography.x509.Certificate``

:rtype: X509

.. versionadded:: 17.1.0