We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
Pending deprecation warning on fernet creation since 1.2.1
``` python
In [1]: from cryptography.fernet import Fernet

In [2]: key = Fernet.generate_key()

In [3]: fernet = Fernet(key)
/home/simon/.virtualenvs/project/local/lib/python2.7/site-packages/cryptography/x509/__init__.py:32: PendingDeprecationWarning: CRLExtensionOID has been renamed to CRLEntryExtensionOID
  from cryptography.x509.oid import (
```


--- END ISSUE ---

Below are some code segments, each from a relevant file. One or more of these files may contain bugs.
--- BEGIN FILES ---
Path: `src/cryptography/x509/__init__.py`
Content:
```
1 # This file is dual licensed under the terms of the Apache License, Version
2 # 2.0, and the BSD License. See the LICENSE file in the root of this repository
3 # for complete details.
4 
5 from __future__ import absolute_import, division, print_function
6 
7 from cryptography.x509.base import (
8     Certificate, CertificateBuilder, CertificateRevocationList,
9     CertificateRevocationListBuilder,
10     CertificateSigningRequest, CertificateSigningRequestBuilder,
11     InvalidVersion, RevokedCertificate, RevokedCertificateBuilder,
12     Version, load_der_x509_certificate, load_der_x509_crl, load_der_x509_csr,
13     load_pem_x509_certificate, load_pem_x509_crl, load_pem_x509_csr,
14 )
15 from cryptography.x509.extensions import (
16     AccessDescription, AuthorityInformationAccess,
17     AuthorityKeyIdentifier, BasicConstraints, CRLDistributionPoints,
18     CRLNumber, CRLReason, CertificateIssuer, CertificatePolicies,
19     DistributionPoint, DuplicateExtension, ExtendedKeyUsage, Extension,
20     ExtensionNotFound, ExtensionType, Extensions, GeneralNames,
21     InhibitAnyPolicy, InvalidityDate, IssuerAlternativeName, KeyUsage,
22     NameConstraints, NoticeReference, OCSPNoCheck, PolicyInformation,
23     ReasonFlags, SubjectAlternativeName, SubjectKeyIdentifier,
24     UnrecognizedExtension, UnsupportedExtension, UserNotice
25 )
26 from cryptography.x509.general_name import (
27     DNSName, DirectoryName, GeneralName, IPAddress, OtherName, RFC822Name,
28     RegisteredID, UniformResourceIdentifier, UnsupportedGeneralNameType,
29     _GENERAL_NAMES
30 )
31 from cryptography.x509.name import Name, NameAttribute
32 from cryptography.x509.oid import (
33     AuthorityInformationAccessOID, CRLEntryExtensionOID, CRLExtensionOID,
34     CertificatePoliciesOID, ExtendedKeyUsageOID, ExtensionOID, NameOID,
35     ObjectIdentifier, SignatureAlgorithmOID, _SIG_OIDS_TO_HASH
36 )
37 
38 
39 OID_AUTHORITY_INFORMATION_ACCESS = ExtensionOID.AUTHORITY_INFORMATION_ACCESS
40 OID_AUTHORITY_KEY_IDENTIFIER = ExtensionOID.AUTHORITY_KEY_IDENTIFIER
41 OID_BASIC_CONSTRAINTS = ExtensionOID.BASIC_CONSTRAINTS
42 OID_CERTIFICATE_POLICIES = ExtensionOID.CERTIFICATE_POLICIES
43 OID_CRL_DISTRIBUTION_POINTS = ExtensionOID.CRL_DISTRIBUTION_POINTS
44 OID_EXTENDED_KEY_USAGE = ExtensionOID.EXTENDED_KEY_USAGE
45 OID_FRESHEST_CRL = ExtensionOID.FRESHEST_CRL
46 OID_INHIBIT_ANY_POLICY = ExtensionOID.INHIBIT_ANY_POLICY
47 OID_ISSUER_ALTERNATIVE_NAME = ExtensionOID.ISSUER_ALTERNATIVE_NAME
48 OID_KEY_USAGE = ExtensionOID.KEY_USAGE
49 OID_NAME_CONSTRAINTS = ExtensionOID.NAME_CONSTRAINTS
50 OID_OCSP_NO_CHECK = ExtensionOID.OCSP_NO_CHECK
51 OID_POLICY_CONSTRAINTS = ExtensionOID.POLICY_CONSTRAINTS
52 OID_POLICY_MAPPINGS = ExtensionOID.POLICY_MAPPINGS
53 OID_SUBJECT_ALTERNATIVE_NAME = ExtensionOID.SUBJECT_ALTERNATIVE_NAME
54 OID_SUBJECT_DIRECTORY_ATTRIBUTES = ExtensionOID.SUBJECT_DIRECTORY_ATTRIBUTES
55 OID_SUBJECT_INFORMATION_ACCESS = ExtensionOID.SUBJECT_INFORMATION_ACCESS
56 OID_SUBJECT_KEY_IDENTIFIER = ExtensionOID.SUBJECT_KEY_IDENTIFIER
57 
58 OID_DSA_WITH_SHA1 = SignatureAlgorithmOID.DSA_WITH_SHA1
59 OID_DSA_WITH_SHA224 = SignatureAlgorithmOID.DSA_WITH_SHA224
60 OID_DSA_WITH_SHA256 = SignatureAlgorithmOID.DSA_WITH_SHA256
61 OID_ECDSA_WITH_SHA1 = SignatureAlgorithmOID.ECDSA_WITH_SHA1
62 OID_ECDSA_WITH_SHA224 = SignatureAlgorithmOID.ECDSA_WITH_SHA224
63 OID_ECDSA_WITH_SHA256 = SignatureAlgorithmOID.ECDSA_WITH_SHA256
64 OID_ECDSA_WITH_SHA384 = SignatureAlgorithmOID.ECDSA_WITH_SHA384
65 OID_ECDSA_WITH_SHA512 = SignatureAlgorithmOID.ECDSA_WITH_SHA512
66 OID_RSA_WITH_MD5 = SignatureAlgorithmOID.RSA_WITH_MD5
67 OID_RSA_WITH_SHA1 = SignatureAlgorithmOID.RSA_WITH_SHA1
68 OID_RSA_WITH_SHA224 = SignatureAlgorithmOID.RSA_WITH_SHA224
69 OID_RSA_WITH_SHA256 = SignatureAlgorithmOID.RSA_WITH_SHA256
70 OID_RSA_WITH_SHA384 = SignatureAlgorithmOID.RSA_WITH_SHA384
71 OID_RSA_WITH_SHA512 = SignatureAlgorithmOID.RSA_WITH_SHA512
72 
73 OID_COMMON_NAME = NameOID.COMMON_NAME
74 OID_COUNTRY_NAME = NameOID.COUNTRY_NAME
75 OID_DOMAIN_COMPONENT = NameOID.DOMAIN_COMPONENT
76 OID_DN_QUALIFIER = NameOID.DN_QUALIFIER
77 OID_EMAIL_ADDRESS = NameOID.EMAIL_ADDRESS
78 OID_GENERATION_QUALIFIER = NameOID.GENERATION_QUALIFIER
79 OID_GIVEN_NAME = NameOID.GIVEN_NAME
80 OID_LOCALITY_NAME = NameOID.LOCALITY_NAME
81 OID_ORGANIZATIONAL_UNIT_NAME = NameOID.ORGANIZATIONAL_UNIT_NAME
82 OID_ORGANIZATION_NAME = NameOID.ORGANIZATION_NAME
83 OID_PSEUDONYM = NameOID.PSEUDONYM
84 OID_SERIAL_NUMBER = NameOID.SERIAL_NUMBER
85 OID_STATE_OR_PROVINCE_NAME = NameOID.STATE_OR_PROVINCE_NAME
86 OID_SURNAME = NameOID.SURNAME
87 OID_TITLE = NameOID.TITLE
88 
89 OID_CLIENT_AUTH = ExtendedKeyUsageOID.CLIENT_AUTH
90 OID_CODE_SIGNING = ExtendedKeyUsageOID.CODE_SIGNING
91 OID_EMAIL_PROTECTION = ExtendedKeyUsageOID.EMAIL_PROTECTION
92 OID_OCSP_SIGNING = ExtendedKeyUsageOID.OCSP_SIGNING
93 OID_SERVER_AUTH = ExtendedKeyUsageOID.SERVER_AUTH
94 OID_TIME_STAMPING = ExtendedKeyUsageOID.TIME_STAMPING
95 
96 OID_ANY_POLICY = CertificatePoliciesOID.ANY_POLICY
97 OID_CPS_QUALIFIER = CertificatePoliciesOID.CPS_QUALIFIER
98 OID_CPS_USER_NOTICE = CertificatePoliciesOID.CPS_USER_NOTICE
99 
100 OID_CERTIFICATE_ISSUER = CRLEntryExtensionOID.CERTIFICATE_ISSUER
101 OID_CRL_REASON = CRLEntryExtensionOID.CRL_REASON
102 OID_INVALIDITY_DATE = CRLEntryExtensionOID.INVALIDITY_DATE
103 
104 OID_CA_ISSUERS = AuthorityInformationAccessOID.CA_ISSUERS
105 OID_OCSP = AuthorityInformationAccessOID.OCSP
106 
107 
108 __all__ = [
109     "load_pem_x509_certificate",
110     "load_der_x509_certificate",
111     "load_pem_x509_csr",
112     "load_der_x509_csr",
113     "load_pem_x509_crl",
114     "load_der_x509_crl",
115     "InvalidVersion",
116     "DuplicateExtension",
117     "UnsupportedExtension",
118     "ExtensionNotFound",
119     "UnsupportedGeneralNameType",
120     "NameAttribute",
121     "Name",
122     "ObjectIdentifier",
123     "ExtensionType",
124     "Extensions",
125     "Extension",
126     "ExtendedKeyUsage",
127     "OCSPNoCheck",
128     "BasicConstraints",
129     "CRLNumber",
130     "KeyUsage",
131     "AuthorityInformationAccess",
132     "AccessDescription",
133     "CertificatePolicies",
134     "PolicyInformation",
135     "UserNotice",
136     "NoticeReference",
137     "SubjectKeyIdentifier",
138     "NameConstraints",
139     "CRLDistributionPoints",
140     "DistributionPoint",
141     "ReasonFlags",
142     "InhibitAnyPolicy",
143     "SubjectAlternativeName",
144     "IssuerAlternativeName",
145     "AuthorityKeyIdentifier",
146     "GeneralNames",
147     "GeneralName",
148     "RFC822Name",
149     "DNSName",
150     "UniformResourceIdentifier",
151     "RegisteredID",
152     "DirectoryName",
153     "IPAddress",
154     "OtherName",
155     "Certificate",
156     "CertificateRevocationList",
157     "CertificateRevocationListBuilder",
158     "CertificateSigningRequest",
159     "RevokedCertificate",
160     "RevokedCertificateBuilder",
161     "CertificateSigningRequestBuilder",
162     "CertificateBuilder",
163     "Version",
164     "_SIG_OIDS_TO_HASH",
165     "OID_CA_ISSUERS",
166     "OID_OCSP",
167     "_GENERAL_NAMES",
168     "CRLExtensionOID",
169     "CertificateIssuer",
170     "CRLReason",
171     "InvalidityDate",
172     "UnrecognizedExtension",
173 ]
174
```
--- END FILES ---

Please first localize the bug based on the issue statement, and then generate a patch according to the `git diff` format fenced by three backticks.

Here is an example:

```diff
diff --git a/examples/server_async.py b/examples/server_async.py
--- a/examples/server_async.py
+++ b/examples/server_async.py
@@ -313,4 +313,4 @@
 
 
 if __name__ == "__main__":
-    asyncio.run(run_async_server("."), debug=True)
+    asyncio.run(run_async_server(), debug=True)
diff --git a/examples/server_sync.py b/examples/server_sync.py
--- a/examples/server_sync.py
+++ b/examples/server_sync.py
@@ -313,5 +313,5 @@
 
 
 if __name__ == "__main__":
-    server = run_sync_server(".")
+    server = run_sync_server()
     server.shutdown()

```

diff --git a/src/cryptography/x509/__init__.py b/src/cryptography/x509/__init__.py
--- a/src/cryptography/x509/__init__.py
+++ b/src/cryptography/x509/__init__.py
@@ -4,6 +4,7 @@
 
 from __future__ import absolute_import, division, print_function
 
+from cryptography import utils
 from cryptography.x509.base import (
     Certificate, CertificateBuilder, CertificateRevocationList,
     CertificateRevocationListBuilder,
@@ -30,12 +31,19 @@
 )
 from cryptography.x509.name import Name, NameAttribute
 from cryptography.x509.oid import (
-    AuthorityInformationAccessOID, CRLEntryExtensionOID, CRLExtensionOID,
+    AuthorityInformationAccessOID, CRLEntryExtensionOID,
     CertificatePoliciesOID, ExtendedKeyUsageOID, ExtensionOID, NameOID,
     ObjectIdentifier, SignatureAlgorithmOID, _SIG_OIDS_TO_HASH
 )
 
 
+CRLExtensionOID = utils.deprecated(
+    CRLEntryExtensionOID,
+    __name__,
+    "CRLExtensionOID has been renamed to CRLEntryExtensionOID",
+    utils.DeprecatedIn12
+)
+
 OID_AUTHORITY_INFORMATION_ACCESS = ExtensionOID.AUTHORITY_INFORMATION_ACCESS
 OID_AUTHORITY_KEY_IDENTIFIER = ExtensionOID.AUTHORITY_KEY_IDENTIFIER
 OID_BASIC_CONSTRAINTS = ExtensionOID.BASIC_CONSTRAINTS

{"golden_diff": "diff --git a/src/cryptography/x509/__init__.py b/src/cryptography/x509/__init__.py\n--- a/src/cryptography/x509/__init__.py\n+++ b/src/cryptography/x509/__init__.py\n@@ -4,6 +4,7 @@\n \n from __future__ import absolute_import, division, print_function\n \n+from cryptography import utils\n from cryptography.x509.base import (\n     Certificate, CertificateBuilder, CertificateRevocationList,\n     CertificateRevocationListBuilder,\n@@ -30,12 +31,19 @@\n )\n from cryptography.x509.name import Name, NameAttribute\n from cryptography.x509.oid import (\n-    AuthorityInformationAccessOID, CRLEntryExtensionOID, CRLExtensionOID,\n+    AuthorityInformationAccessOID, CRLEntryExtensionOID,\n     CertificatePoliciesOID, ExtendedKeyUsageOID, ExtensionOID, NameOID,\n     ObjectIdentifier, SignatureAlgorithmOID, _SIG_OIDS_TO_HASH\n )\n \n \n+CRLExtensionOID = utils.deprecated(\n+    CRLEntryExtensionOID,\n+    __name__,\n+    \"CRLExtensionOID has been renamed to CRLEntryExtensionOID\",\n+    utils.DeprecatedIn12\n+)\n+\n OID_AUTHORITY_INFORMATION_ACCESS = ExtensionOID.AUTHORITY_INFORMATION_ACCESS\n OID_AUTHORITY_KEY_IDENTIFIER = ExtensionOID.AUTHORITY_KEY_IDENTIFIER\n OID_BASIC_CONSTRAINTS = ExtensionOID.BASIC_CONSTRAINTS\n", "issue": "Pending deprecation warning on fernet creation since 1.2.1\n``` python\nIn [1]: from cryptography.fernet import Fernet\n\nIn [2]: key = Fernet.generate_key()\n\nIn [3]: fernet = Fernet(key)\n/home/simon/.virtualenvs/project/local/lib/python2.7/site-packages/cryptography/x509/__init__.py:32: PendingDeprecationWarning: CRLExtensionOID has been renamed to CRLEntryExtensionOID\n  from cryptography.x509.oid import (\n```\n\n", "before_files": [{"content": "# This file is dual licensed under the terms of the Apache License, Version\n# 2.0, and the BSD License. See the LICENSE file in the root of this repository\n# for complete details.\n\nfrom __future__ import absolute_import, division, print_function\n\nfrom cryptography.x509.base import (\n    Certificate, CertificateBuilder, CertificateRevocationList,\n    CertificateRevocationListBuilder,\n    CertificateSigningRequest, CertificateSigningRequestBuilder,\n    InvalidVersion, RevokedCertificate, RevokedCertificateBuilder,\n    Version, load_der_x509_certificate, load_der_x509_crl, load_der_x509_csr,\n    load_pem_x509_certificate, load_pem_x509_crl, load_pem_x509_csr,\n)\nfrom cryptography.x509.extensions import (\n    AccessDescription, AuthorityInformationAccess,\n    AuthorityKeyIdentifier, BasicConstraints, CRLDistributionPoints,\n    CRLNumber, CRLReason, CertificateIssuer, CertificatePolicies,\n    DistributionPoint, DuplicateExtension, ExtendedKeyUsage, Extension,\n    ExtensionNotFound, ExtensionType, Extensions, GeneralNames,\n    InhibitAnyPolicy, InvalidityDate, IssuerAlternativeName, KeyUsage,\n    NameConstraints, NoticeReference, OCSPNoCheck, PolicyInformation,\n    ReasonFlags, SubjectAlternativeName, SubjectKeyIdentifier,\n    UnrecognizedExtension, UnsupportedExtension, UserNotice\n)\nfrom cryptography.x509.general_name import (\n    DNSName, DirectoryName, GeneralName, IPAddress, OtherName, RFC822Name,\n    RegisteredID, UniformResourceIdentifier, UnsupportedGeneralNameType,\n    _GENERAL_NAMES\n)\nfrom cryptography.x509.name import Name, NameAttribute\nfrom cryptography.x509.oid import (\n    AuthorityInformationAccessOID, CRLEntryExtensionOID, CRLExtensionOID,\n    CertificatePoliciesOID, ExtendedKeyUsageOID, ExtensionOID, NameOID,\n    ObjectIdentifier, SignatureAlgorithmOID, _SIG_OIDS_TO_HASH\n)\n\n\nOID_AUTHORITY_INFORMATION_ACCESS = ExtensionOID.AUTHORITY_INFORMATION_ACCESS\nOID_AUTHORITY_KEY_IDENTIFIER = ExtensionOID.AUTHORITY_KEY_IDENTIFIER\nOID_BASIC_CONSTRAINTS = ExtensionOID.BASIC_CONSTRAINTS\nOID_CERTIFICATE_POLICIES = ExtensionOID.CERTIFICATE_POLICIES\nOID_CRL_DISTRIBUTION_POINTS = ExtensionOID.CRL_DISTRIBUTION_POINTS\nOID_EXTENDED_KEY_USAGE = ExtensionOID.EXTENDED_KEY_USAGE\nOID_FRESHEST_CRL = ExtensionOID.FRESHEST_CRL\nOID_INHIBIT_ANY_POLICY = ExtensionOID.INHIBIT_ANY_POLICY\nOID_ISSUER_ALTERNATIVE_NAME = ExtensionOID.ISSUER_ALTERNATIVE_NAME\nOID_KEY_USAGE = ExtensionOID.KEY_USAGE\nOID_NAME_CONSTRAINTS = ExtensionOID.NAME_CONSTRAINTS\nOID_OCSP_NO_CHECK = ExtensionOID.OCSP_NO_CHECK\nOID_POLICY_CONSTRAINTS = ExtensionOID.POLICY_CONSTRAINTS\nOID_POLICY_MAPPINGS = ExtensionOID.POLICY_MAPPINGS\nOID_SUBJECT_ALTERNATIVE_NAME = ExtensionOID.SUBJECT_ALTERNATIVE_NAME\nOID_SUBJECT_DIRECTORY_ATTRIBUTES = ExtensionOID.SUBJECT_DIRECTORY_ATTRIBUTES\nOID_SUBJECT_INFORMATION_ACCESS = ExtensionOID.SUBJECT_INFORMATION_ACCESS\nOID_SUBJECT_KEY_IDENTIFIER = ExtensionOID.SUBJECT_KEY_IDENTIFIER\n\nOID_DSA_WITH_SHA1 = SignatureAlgorithmOID.DSA_WITH_SHA1\nOID_DSA_WITH_SHA224 = SignatureAlgorithmOID.DSA_WITH_SHA224\nOID_DSA_WITH_SHA256 = SignatureAlgorithmOID.DSA_WITH_SHA256\nOID_ECDSA_WITH_SHA1 = SignatureAlgorithmOID.ECDSA_WITH_SHA1\nOID_ECDSA_WITH_SHA224 = SignatureAlgorithmOID.ECDSA_WITH_SHA224\nOID_ECDSA_WITH_SHA256 = SignatureAlgorithmOID.ECDSA_WITH_SHA256\nOID_ECDSA_WITH_SHA384 = SignatureAlgorithmOID.ECDSA_WITH_SHA384\nOID_ECDSA_WITH_SHA512 = SignatureAlgorithmOID.ECDSA_WITH_SHA512\nOID_RSA_WITH_MD5 = SignatureAlgorithmOID.RSA_WITH_MD5\nOID_RSA_WITH_SHA1 = SignatureAlgorithmOID.RSA_WITH_SHA1\nOID_RSA_WITH_SHA224 = SignatureAlgorithmOID.RSA_WITH_SHA224\nOID_RSA_WITH_SHA256 = SignatureAlgorithmOID.RSA_WITH_SHA256\nOID_RSA_WITH_SHA384 = SignatureAlgorithmOID.RSA_WITH_SHA384\nOID_RSA_WITH_SHA512 = SignatureAlgorithmOID.RSA_WITH_SHA512\n\nOID_COMMON_NAME = NameOID.COMMON_NAME\nOID_COUNTRY_NAME = NameOID.COUNTRY_NAME\nOID_DOMAIN_COMPONENT = NameOID.DOMAIN_COMPONENT\nOID_DN_QUALIFIER = NameOID.DN_QUALIFIER\nOID_EMAIL_ADDRESS = NameOID.EMAIL_ADDRESS\nOID_GENERATION_QUALIFIER = NameOID.GENERATION_QUALIFIER\nOID_GIVEN_NAME = NameOID.GIVEN_NAME\nOID_LOCALITY_NAME = NameOID.LOCALITY_NAME\nOID_ORGANIZATIONAL_UNIT_NAME = NameOID.ORGANIZATIONAL_UNIT_NAME\nOID_ORGANIZATION_NAME = NameOID.ORGANIZATION_NAME\nOID_PSEUDONYM = NameOID.PSEUDONYM\nOID_SERIAL_NUMBER = NameOID.SERIAL_NUMBER\nOID_STATE_OR_PROVINCE_NAME = NameOID.STATE_OR_PROVINCE_NAME\nOID_SURNAME = NameOID.SURNAME\nOID_TITLE = NameOID.TITLE\n\nOID_CLIENT_AUTH = ExtendedKeyUsageOID.CLIENT_AUTH\nOID_CODE_SIGNING = ExtendedKeyUsageOID.CODE_SIGNING\nOID_EMAIL_PROTECTION = ExtendedKeyUsageOID.EMAIL_PROTECTION\nOID_OCSP_SIGNING = ExtendedKeyUsageOID.OCSP_SIGNING\nOID_SERVER_AUTH = ExtendedKeyUsageOID.SERVER_AUTH\nOID_TIME_STAMPING = ExtendedKeyUsageOID.TIME_STAMPING\n\nOID_ANY_POLICY = CertificatePoliciesOID.ANY_POLICY\nOID_CPS_QUALIFIER = CertificatePoliciesOID.CPS_QUALIFIER\nOID_CPS_USER_NOTICE = CertificatePoliciesOID.CPS_USER_NOTICE\n\nOID_CERTIFICATE_ISSUER = CRLEntryExtensionOID.CERTIFICATE_ISSUER\nOID_CRL_REASON = CRLEntryExtensionOID.CRL_REASON\nOID_INVALIDITY_DATE = CRLEntryExtensionOID.INVALIDITY_DATE\n\nOID_CA_ISSUERS = AuthorityInformationAccessOID.CA_ISSUERS\nOID_OCSP = AuthorityInformationAccessOID.OCSP\n\n\n__all__ = [\n    \"load_pem_x509_certificate\",\n    \"load_der_x509_certificate\",\n    \"load_pem_x509_csr\",\n    \"load_der_x509_csr\",\n    \"load_pem_x509_crl\",\n    \"load_der_x509_crl\",\n    \"InvalidVersion\",\n    \"DuplicateExtension\",\n    \"UnsupportedExtension\",\n    \"ExtensionNotFound\",\n    \"UnsupportedGeneralNameType\",\n    \"NameAttribute\",\n    \"Name\",\n    \"ObjectIdentifier\",\n    \"ExtensionType\",\n    \"Extensions\",\n    \"Extension\",\n    \"ExtendedKeyUsage\",\n    \"OCSPNoCheck\",\n    \"BasicConstraints\",\n    \"CRLNumber\",\n    \"KeyUsage\",\n    \"AuthorityInformationAccess\",\n    \"AccessDescription\",\n    \"CertificatePolicies\",\n    \"PolicyInformation\",\n    \"UserNotice\",\n    \"NoticeReference\",\n    \"SubjectKeyIdentifier\",\n    \"NameConstraints\",\n    \"CRLDistributionPoints\",\n    \"DistributionPoint\",\n    \"ReasonFlags\",\n    \"InhibitAnyPolicy\",\n    \"SubjectAlternativeName\",\n    \"IssuerAlternativeName\",\n    \"AuthorityKeyIdentifier\",\n    \"GeneralNames\",\n    \"GeneralName\",\n    \"RFC822Name\",\n    \"DNSName\",\n    \"UniformResourceIdentifier\",\n    \"RegisteredID\",\n    \"DirectoryName\",\n    \"IPAddress\",\n    \"OtherName\",\n    \"Certificate\",\n    \"CertificateRevocationList\",\n    \"CertificateRevocationListBuilder\",\n    \"CertificateSigningRequest\",\n    \"RevokedCertificate\",\n    \"RevokedCertificateBuilder\",\n    \"CertificateSigningRequestBuilder\",\n    \"CertificateBuilder\",\n    \"Version\",\n    \"_SIG_OIDS_TO_HASH\",\n    \"OID_CA_ISSUERS\",\n    \"OID_OCSP\",\n    \"_GENERAL_NAMES\",\n    \"CRLExtensionOID\",\n    \"CertificateIssuer\",\n    \"CRLReason\",\n    \"InvalidityDate\",\n    \"UnrecognizedExtension\",\n]\n", "path": "src/cryptography/x509/__init__.py"}], "after_files": [{"content": "# This file is dual licensed under the terms of the Apache License, Version\n# 2.0, and the BSD License. See the LICENSE file in the root of this repository\n# for complete details.\n\nfrom __future__ import absolute_import, division, print_function\n\nfrom cryptography import utils\nfrom cryptography.x509.base import (\n    Certificate, CertificateBuilder, CertificateRevocationList,\n    CertificateRevocationListBuilder,\n    CertificateSigningRequest, CertificateSigningRequestBuilder,\n    InvalidVersion, RevokedCertificate, RevokedCertificateBuilder,\n    Version, load_der_x509_certificate, load_der_x509_crl, load_der_x509_csr,\n    load_pem_x509_certificate, load_pem_x509_crl, load_pem_x509_csr,\n)\nfrom cryptography.x509.extensions import (\n    AccessDescription, AuthorityInformationAccess,\n    AuthorityKeyIdentifier, BasicConstraints, CRLDistributionPoints,\n    CRLNumber, CRLReason, CertificateIssuer, CertificatePolicies,\n    DistributionPoint, DuplicateExtension, ExtendedKeyUsage, Extension,\n    ExtensionNotFound, ExtensionType, Extensions, GeneralNames,\n    InhibitAnyPolicy, InvalidityDate, IssuerAlternativeName, KeyUsage,\n    NameConstraints, NoticeReference, OCSPNoCheck, PolicyInformation,\n    ReasonFlags, SubjectAlternativeName, SubjectKeyIdentifier,\n    UnrecognizedExtension, UnsupportedExtension, UserNotice\n)\nfrom cryptography.x509.general_name import (\n    DNSName, DirectoryName, GeneralName, IPAddress, OtherName, RFC822Name,\n    RegisteredID, UniformResourceIdentifier, UnsupportedGeneralNameType,\n    _GENERAL_NAMES\n)\nfrom cryptography.x509.name import Name, NameAttribute\nfrom cryptography.x509.oid import (\n    AuthorityInformationAccessOID, CRLEntryExtensionOID,\n    CertificatePoliciesOID, ExtendedKeyUsageOID, ExtensionOID, NameOID,\n    ObjectIdentifier, SignatureAlgorithmOID, _SIG_OIDS_TO_HASH\n)\n\n\nCRLExtensionOID = utils.deprecated(\n    CRLEntryExtensionOID,\n    __name__,\n    \"CRLExtensionOID has been renamed to CRLEntryExtensionOID\",\n    utils.DeprecatedIn12\n)\n\nOID_AUTHORITY_INFORMATION_ACCESS = ExtensionOID.AUTHORITY_INFORMATION_ACCESS\nOID_AUTHORITY_KEY_IDENTIFIER = ExtensionOID.AUTHORITY_KEY_IDENTIFIER\nOID_BASIC_CONSTRAINTS = ExtensionOID.BASIC_CONSTRAINTS\nOID_CERTIFICATE_POLICIES = ExtensionOID.CERTIFICATE_POLICIES\nOID_CRL_DISTRIBUTION_POINTS = ExtensionOID.CRL_DISTRIBUTION_POINTS\nOID_EXTENDED_KEY_USAGE = ExtensionOID.EXTENDED_KEY_USAGE\nOID_FRESHEST_CRL = ExtensionOID.FRESHEST_CRL\nOID_INHIBIT_ANY_POLICY = ExtensionOID.INHIBIT_ANY_POLICY\nOID_ISSUER_ALTERNATIVE_NAME = ExtensionOID.ISSUER_ALTERNATIVE_NAME\nOID_KEY_USAGE = ExtensionOID.KEY_USAGE\nOID_NAME_CONSTRAINTS = ExtensionOID.NAME_CONSTRAINTS\nOID_OCSP_NO_CHECK = ExtensionOID.OCSP_NO_CHECK\nOID_POLICY_CONSTRAINTS = ExtensionOID.POLICY_CONSTRAINTS\nOID_POLICY_MAPPINGS = ExtensionOID.POLICY_MAPPINGS\nOID_SUBJECT_ALTERNATIVE_NAME = ExtensionOID.SUBJECT_ALTERNATIVE_NAME\nOID_SUBJECT_DIRECTORY_ATTRIBUTES = ExtensionOID.SUBJECT_DIRECTORY_ATTRIBUTES\nOID_SUBJECT_INFORMATION_ACCESS = ExtensionOID.SUBJECT_INFORMATION_ACCESS\nOID_SUBJECT_KEY_IDENTIFIER = ExtensionOID.SUBJECT_KEY_IDENTIFIER\n\nOID_DSA_WITH_SHA1 = SignatureAlgorithmOID.DSA_WITH_SHA1\nOID_DSA_WITH_SHA224 = SignatureAlgorithmOID.DSA_WITH_SHA224\nOID_DSA_WITH_SHA256 = SignatureAlgorithmOID.DSA_WITH_SHA256\nOID_ECDSA_WITH_SHA1 = SignatureAlgorithmOID.ECDSA_WITH_SHA1\nOID_ECDSA_WITH_SHA224 = SignatureAlgorithmOID.ECDSA_WITH_SHA224\nOID_ECDSA_WITH_SHA256 = SignatureAlgorithmOID.ECDSA_WITH_SHA256\nOID_ECDSA_WITH_SHA384 = SignatureAlgorithmOID.ECDSA_WITH_SHA384\nOID_ECDSA_WITH_SHA512 = SignatureAlgorithmOID.ECDSA_WITH_SHA512\nOID_RSA_WITH_MD5 = SignatureAlgorithmOID.RSA_WITH_MD5\nOID_RSA_WITH_SHA1 = SignatureAlgorithmOID.RSA_WITH_SHA1\nOID_RSA_WITH_SHA224 = SignatureAlgorithmOID.RSA_WITH_SHA224\nOID_RSA_WITH_SHA256 = SignatureAlgorithmOID.RSA_WITH_SHA256\nOID_RSA_WITH_SHA384 = SignatureAlgorithmOID.RSA_WITH_SHA384\nOID_RSA_WITH_SHA512 = SignatureAlgorithmOID.RSA_WITH_SHA512\n\nOID_COMMON_NAME = NameOID.COMMON_NAME\nOID_COUNTRY_NAME = NameOID.COUNTRY_NAME\nOID_DOMAIN_COMPONENT = NameOID.DOMAIN_COMPONENT\nOID_DN_QUALIFIER = NameOID.DN_QUALIFIER\nOID_EMAIL_ADDRESS = NameOID.EMAIL_ADDRESS\nOID_GENERATION_QUALIFIER = NameOID.GENERATION_QUALIFIER\nOID_GIVEN_NAME = NameOID.GIVEN_NAME\nOID_LOCALITY_NAME = NameOID.LOCALITY_NAME\nOID_ORGANIZATIONAL_UNIT_NAME = NameOID.ORGANIZATIONAL_UNIT_NAME\nOID_ORGANIZATION_NAME = NameOID.ORGANIZATION_NAME\nOID_PSEUDONYM = NameOID.PSEUDONYM\nOID_SERIAL_NUMBER = NameOID.SERIAL_NUMBER\nOID_STATE_OR_PROVINCE_NAME = NameOID.STATE_OR_PROVINCE_NAME\nOID_SURNAME = NameOID.SURNAME\nOID_TITLE = NameOID.TITLE\n\nOID_CLIENT_AUTH = ExtendedKeyUsageOID.CLIENT_AUTH\nOID_CODE_SIGNING = ExtendedKeyUsageOID.CODE_SIGNING\nOID_EMAIL_PROTECTION = ExtendedKeyUsageOID.EMAIL_PROTECTION\nOID_OCSP_SIGNING = ExtendedKeyUsageOID.OCSP_SIGNING\nOID_SERVER_AUTH = ExtendedKeyUsageOID.SERVER_AUTH\nOID_TIME_STAMPING = ExtendedKeyUsageOID.TIME_STAMPING\n\nOID_ANY_POLICY = CertificatePoliciesOID.ANY_POLICY\nOID_CPS_QUALIFIER = CertificatePoliciesOID.CPS_QUALIFIER\nOID_CPS_USER_NOTICE = CertificatePoliciesOID.CPS_USER_NOTICE\n\nOID_CERTIFICATE_ISSUER = CRLEntryExtensionOID.CERTIFICATE_ISSUER\nOID_CRL_REASON = CRLEntryExtensionOID.CRL_REASON\nOID_INVALIDITY_DATE = CRLEntryExtensionOID.INVALIDITY_DATE\n\nOID_CA_ISSUERS = AuthorityInformationAccessOID.CA_ISSUERS\nOID_OCSP = AuthorityInformationAccessOID.OCSP\n\n\n__all__ = [\n    \"load_pem_x509_certificate\",\n    \"load_der_x509_certificate\",\n    \"load_pem_x509_csr\",\n    \"load_der_x509_csr\",\n    \"load_pem_x509_crl\",\n    \"load_der_x509_crl\",\n    \"InvalidVersion\",\n    \"DuplicateExtension\",\n    \"UnsupportedExtension\",\n    \"ExtensionNotFound\",\n    \"UnsupportedGeneralNameType\",\n    \"NameAttribute\",\n    \"Name\",\n    \"ObjectIdentifier\",\n    \"ExtensionType\",\n    \"Extensions\",\n    \"Extension\",\n    \"ExtendedKeyUsage\",\n    \"OCSPNoCheck\",\n    \"BasicConstraints\",\n    \"CRLNumber\",\n    \"KeyUsage\",\n    \"AuthorityInformationAccess\",\n    \"AccessDescription\",\n    \"CertificatePolicies\",\n    \"PolicyInformation\",\n    \"UserNotice\",\n    \"NoticeReference\",\n    \"SubjectKeyIdentifier\",\n    \"NameConstraints\",\n    \"CRLDistributionPoints\",\n    \"DistributionPoint\",\n    \"ReasonFlags\",\n    \"InhibitAnyPolicy\",\n    \"SubjectAlternativeName\",\n    \"IssuerAlternativeName\",\n    \"AuthorityKeyIdentifier\",\n    \"GeneralNames\",\n    \"GeneralName\",\n    \"RFC822Name\",\n    \"DNSName\",\n    \"UniformResourceIdentifier\",\n    \"RegisteredID\",\n    \"DirectoryName\",\n    \"IPAddress\",\n    \"OtherName\",\n    \"Certificate\",\n    \"CertificateRevocationList\",\n    \"CertificateRevocationListBuilder\",\n    \"CertificateSigningRequest\",\n    \"RevokedCertificate\",\n    \"RevokedCertificateBuilder\",\n    \"CertificateSigningRequestBuilder\",\n    \"CertificateBuilder\",\n    \"Version\",\n    \"_SIG_OIDS_TO_HASH\",\n    \"OID_CA_ISSUERS\",\n    \"OID_OCSP\",\n    \"_GENERAL_NAMES\",\n    \"CRLExtensionOID\",\n    \"CertificateIssuer\",\n    \"CRLReason\",\n    \"InvalidityDate\",\n    \"UnrecognizedExtension\",\n]\n", "path": "src/cryptography/x509/__init__.py"}]}