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 |