diff options
author | Mads Jensen <mje@inducks.org> | 2020-12-16 22:34:12 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-12-16 22:34:12 +0300 |
commit | 96a05d946c73a3f02dc03ed2f8ae0a73e261741c (patch) | |
tree | 8fcb031aac5d7de59642b98f4596aefd18048b33 /acme | |
parent | d38766e05c306a81d1bd7798187dfb8f96a66d5d (diff) |
Added certbot-ci to lint section. Silenced and fixed linting warnings. (#8450)
Diffstat (limited to 'acme')
-rw-r--r-- | acme/acme/crypto_util.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/acme/acme/crypto_util.py b/acme/acme/crypto_util.py index f8b7e2b30..cabc7f4d1 100644 --- a/acme/acme/crypto_util.py +++ b/acme/acme/crypto_util.py @@ -186,6 +186,7 @@ def probe_sni(name, host, port=443, timeout=300, # pylint: disable=too-many-argu raise errors.Error(error) return client_ssl.get_peer_certificate() + def make_csr(private_key_pem, domains, must_staple=False): """Generate a CSR containing a list of domains as subjectAltNames. @@ -217,6 +218,7 @@ def make_csr(private_key_pem, domains, must_staple=False): return crypto.dump_certificate_request( crypto.FILETYPE_PEM, csr) + def _pyopenssl_cert_or_req_all_names(loaded_cert_or_req): common_name = loaded_cert_or_req.get_subject().CN sans = _pyopenssl_cert_or_req_san(loaded_cert_or_req) @@ -225,6 +227,7 @@ def _pyopenssl_cert_or_req_all_names(loaded_cert_or_req): return sans return [common_name] + [d for d in sans if d != common_name] + def _pyopenssl_cert_or_req_san(cert_or_req): """Get Subject Alternative Names from certificate or CSR using pyOpenSSL. @@ -317,6 +320,7 @@ def gen_ss_cert(key, domains, not_before=None, cert.sign(key, "sha256") return cert + def dump_pyopenssl_chain(chain, filetype=crypto.FILETYPE_PEM): """Dump certificate chain into a bundle. |