coverage
diff --git a/src/cryptography/hazmat/backends/openssl/backend.py b/src/cryptography/hazmat/backends/openssl/backend.py
index 74f4285..c3eccb0 100644
--- a/src/cryptography/hazmat/backends/openssl/backend.py
+++ b/src/cryptography/hazmat/backends/openssl/backend.py
@@ -1456,7 +1456,7 @@
return _Certificate(self, x509_cert)
def create_x509_crl(self, builder, private_key, algorithm):
- pass
+ raise NotImplementedError
def load_pem_private_key(self, data, password):
return self._load_key(
diff --git a/tests/hazmat/backends/test_openssl.py b/tests/hazmat/backends/test_openssl.py
index d048fe6..fd4030f 100644
--- a/tests/hazmat/backends/test_openssl.py
+++ b/tests/hazmat/backends/test_openssl.py
@@ -501,6 +501,11 @@
backend.create_x509_certificate(object(), private_key, DummyHash())
+def test_crl_creation_not_implemented():
+ with pytest.raises(NotImplementedError):
+ backend.create_x509_crl("", "", "")
+
+
class TestOpenSSLSerialisationWithOpenSSL(object):
def test_pem_password_cb_buffer_too_small(self):
ffi_cb, userdata = backend._pem_password_cb(b"aa")