diff options
author | Antoine Pitrou <solipsis@pitrou.net> | 2010-04-27 22:03:37 (GMT) |
---|---|---|
committer | Antoine Pitrou <solipsis@pitrou.net> | 2010-04-27 22:03:37 (GMT) |
commit | 4c7bcf119431c1752b2f0c41e347b6cd18907fc3 (patch) | |
tree | 09956ebcfa3bbdb28a479905d4a2411ff8ee13ba /Lib/ssl.py | |
parent | 9751472001bbe25095ac6635353606c2fe443d1f (diff) | |
download | cpython-4c7bcf119431c1752b2f0c41e347b6cd18907fc3.zip cpython-4c7bcf119431c1752b2f0c41e347b6cd18907fc3.tar.gz cpython-4c7bcf119431c1752b2f0c41e347b6cd18907fc3.tar.bz2 |
Issue #8086: In :func:`ssl.DER_cert_to_PEM_cert()`, fix missing newline
before the certificate footer. Patch by Kyle VanderBeek.
Diffstat (limited to 'Lib/ssl.py')
-rw-r--r-- | Lib/ssl.py | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -365,7 +365,7 @@ def DER_cert_to_PEM_cert(der_cert_bytes): # 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' + |