summaryrefslogtreecommitdiffstats
path: root/Lib/ssl.py
diff options
context:
space:
mode:
authorAntoine Pitrou <solipsis@pitrou.net>2010-04-27 22:03:37 (GMT)
committerAntoine Pitrou <solipsis@pitrou.net>2010-04-27 22:03:37 (GMT)
commit4c7bcf119431c1752b2f0c41e347b6cd18907fc3 (patch)
tree09956ebcfa3bbdb28a479905d4a2411ff8ee13ba /Lib/ssl.py
parent9751472001bbe25095ac6635353606c2fe443d1f (diff)
downloadcpython-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.py2
1 files changed, 1 insertions, 1 deletions
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 @@ 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' +