mirror of
https://github.com/certbot/certbot.git
synced 2026-05-28 04:34:11 -04:00
Remove unnecessary test, remove subtype that doesn't work on 3.8
This commit is contained in:
parent
18011e458f
commit
db95d6e893
2 changed files with 1 additions and 14 deletions
|
|
@ -356,19 +356,6 @@ class MakeCSRTest(unittest.TestCase):
|
|||
with pytest.raises(ValueError):
|
||||
self._call_with_key()
|
||||
|
||||
def test_make_csr_with_invalid_private_key(self):
|
||||
from cryptography.hazmat.primitives.asymmetric import dh
|
||||
from cryptography.hazmat.primitives import serialization
|
||||
dh_params = dh.generate_parameters(2, 1024)
|
||||
priv_key = dh_params.generate_private_key()
|
||||
priv_key_pem = priv_key.private_bytes(
|
||||
serialization.Encoding.PEM,
|
||||
serialization.PrivateFormat.PKCS8,
|
||||
serialization.NoEncryption()
|
||||
)
|
||||
from acme.crypto_util import make_csr
|
||||
return make_csr(priv_key_pem, ['a.example'])
|
||||
|
||||
|
||||
class DumpPyopensslChainTest(unittest.TestCase):
|
||||
"""Test for dump_pyopenssl_chain."""
|
||||
|
|
|
|||
|
|
@ -364,7 +364,7 @@ def _pyopenssl_extract_san_list_raw(cert_or_req: Union[crypto.X509, crypto.X509R
|
|||
def make_self_signed_cert(key: crypto.PKey, domains: Optional[List[str]] = None,
|
||||
not_before: Optional[int] = None,
|
||||
validity: int = (7 * 24 * 60 * 60), force_san: bool = True,
|
||||
extensions: Optional[List[x509.Extension[x509.ExtensionType]]] = None,
|
||||
extensions: Optional[List[x509.Extension]] = None,
|
||||
ips: Optional[List[Union[ipaddress.IPv4Address,
|
||||
ipaddress.IPv6Address]]] = None
|
||||
) -> crypto.X509:
|
||||
|
|
|
|||
Loading…
Reference in a new issue