Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(634)

Unified Diff: net/tools/testserver/testserver.py

Issue 9515015: Support reading PEM files in TLSLite (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix pem blocks Created 8 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | third_party/tlslite/README.chromium » ('j') | third_party/tlslite/tlslite/X509.py » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/tools/testserver/testserver.py
diff --git a/net/tools/testserver/testserver.py b/net/tools/testserver/testserver.py
index f4442ed8d763074c8d97555cea7c8e74dedf99d4..48defa3180f41dd7d0e873e70f6ed9cc495d8252 100755
--- a/net/tools/testserver/testserver.py
+++ b/net/tools/testserver/testserver.py
@@ -120,9 +120,7 @@ class HTTPSServer(tlslite.api.TLSSocketServerMixIn,
ssl_client_auth, ssl_client_cas, ssl_bulk_ciphers,
record_resume_info):
s = open(cert_path).read()
- x509 = tlslite.api.X509()
- x509.parse(s)
- self.cert_chain = tlslite.api.X509CertChain([x509])
+ self.cert_chain = tlslite.api.X509CertChain().parseChain(s)
s = open(cert_path).read()
self.private_key = tlslite.api.parsePEMKey(s, private=True)
self.ssl_client_auth = ssl_client_auth
« no previous file with comments | « no previous file | third_party/tlslite/README.chromium » ('j') | third_party/tlslite/tlslite/X509.py » ('J')

Powered by Google App Engine
This is Rietveld 408576698