aboutsummaryrefslogtreecommitdiff
path: root/rpkid/rpki/config.py
diff options
context:
space:
mode:
authorRob Austein <sra@hactrn.net>2012-08-10 16:51:43 +0000
committerRob Austein <sra@hactrn.net>2012-08-10 16:51:43 +0000
commitf13d1e5e8e273258c07e30a0693d1021fb7ee568 (patch)
tree67e990a7f0be81f88b4ab42db9ce3c1b7af73eeb /rpkid/rpki/config.py
parentec1ea025ad1aa75ea565414dc946878b0d3c56e4 (diff)
Add debug-only hack to let us reuse RSA keys from previous test runs.
Totally insecure. DO NOT USE THIS IN PRODUCTION. We may want to remove this before merging this branch back to trunk, but I've tried to make it difficult to hurt oneself with this by accident, and it makes a big difference in CPU time spent generating keys on large test runs. svn path=/branches/tk274/; revision=4628
Diffstat (limited to 'rpkid/rpki/config.py')
-rw-r--r--rpkid/rpki/config.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/rpkid/rpki/config.py b/rpkid/rpki/config.py
index c954ad5f..421df487 100644
--- a/rpkid/rpki/config.py
+++ b/rpkid/rpki/config.py
@@ -285,3 +285,9 @@ class parser(object):
rpki.daemonize.pid_filename = self.get("pid_filename")
except ConfigParser.NoOptionError:
pass
+
+ try:
+ rpki.x509.generate_insecure_debug_only_rsa_key = rpki.x509.insecure_debug_only_rsa_key_generator(self.get("insecure-debug-only-rsa-key-db"))
+ except ConfigParser.NoOptionError:
+ pass
+