commit | 4c7bcf119431c1752b2f0c41e347b6cd18907fc3 | [log] [tgz] |
---|---|---|
author | Antoine Pitrou <solipsis@pitrou.net> | Tue Apr 27 22:03:37 2010 +0000 |
committer | Antoine Pitrou <solipsis@pitrou.net> | Tue Apr 27 22:03:37 2010 +0000 |
tree | 09956ebcfa3bbdb28a479905d4a2411ff8ee13ba | |
parent | 9751472001bbe25095ac6635353606c2fe443d1f [diff] [blame] |
Issue #8086: In :func:`ssl.DER_cert_to_PEM_cert()`, fix missing newline before the certificate footer. Patch by Kyle VanderBeek.
diff --git a/Lib/ssl.py b/Lib/ssl.py index bfeb559..96b6281 100644 --- a/Lib/ssl.py +++ b/Lib/ssl.py
@@ -365,7 +365,7 @@ # preferred because older API gets line-length wrong f = base64.standard_b64encode(der_cert_bytes) return (PEM_HEADER + '\n' + - textwrap.fill(f, 64) + + textwrap.fill(f, 64) + '\n' + PEM_FOOTER + '\n') else: return (PEM_HEADER + '\n' +