From f13d1e5e8e273258c07e30a0693d1021fb7ee568 Mon Sep 17 00:00:00 2001 From: Rob Austein Date: Fri, 10 Aug 2012 16:51:43 +0000 Subject: 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 --- rpkid/rpki/config.py | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'rpkid/rpki/config.py') 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 + -- cgit v1.2.3