diff options
author | Rob Austein <sra@hactrn.net> | 2008-03-27 23:40:44 +0000 |
---|---|---|
committer | Rob Austein <sra@hactrn.net> | 2008-03-27 23:40:44 +0000 |
commit | 5aa99a66a4cd1064eda1880879e034b7ae8058ac (patch) | |
tree | 631cbfda17e2ce633228795afe702d07db922ab8 /rpkid/irdbd.py | |
parent | e1e5eb6d4541d865b1fcda093c90da8ba93b537b (diff) |
Finally got client cert checks working with tlslite -- then promptly
disabled them again in testbed.py (commented out in generated config),
because I need to rework the internal trust anchor setup before the
up-down protocol will have a prayer of working with this enabled.
svn path=/rpkid/OPERATION; revision=1565
Diffstat (limited to 'rpkid/irdbd.py')
-rwxr-xr-x | rpkid/irdbd.py | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/rpkid/irdbd.py b/rpkid/irdbd.py index d7ecca2b..18c75bff 100755 --- a/rpkid/irdbd.py +++ b/rpkid/irdbd.py @@ -113,7 +113,7 @@ cur = db.cursor() cms_ta = rpki.x509.X509(Auto_file = cfg.get("cms-ta")) cms_key = rpki.x509.RSA(Auto_file = cfg.get("cms-key")) -cms_certs = rpki.x509.X509_chain(Auto_files = cfg.multiget("cms-certs")) +cms_certs = rpki.x509.X509_chain(Auto_files = cfg.multiget("cms-cert")) u = urlparse.urlparse(cfg.get("https-url")) @@ -124,8 +124,9 @@ assert u.scheme in ("", "https") and \ u.query == "" and \ u.fragment == "" -rpki.https.server(privateKey = rpki.x509.RSA(Auto_file = cfg.get("https-key")), - certChain = rpki.x509.X509_chain(Auto_files = cfg.multiget("https-certs")), - host = u.hostname or "localhost", - port = u.port or 443, - handlers = ((u.path, handler),)) +rpki.https.server(privateKey = rpki.x509.RSA(Auto_file = cfg.get("https-key")), + certChain = rpki.x509.X509_chain(Auto_files = cfg.multiget("https-cert")), + x509TrustList = rpki.x509.X509_chain(Auto_files = cfg.multiget("https-ta")), + host = u.hostname or "localhost", + port = u.port or 443, + handlers = ((u.path, handler),)) |