Esempio n. 1
0
 def __init__(self, *args, **kwargs):
     super(StandaloneAuthenticator, self).__init__(*args, **kwargs)
     self.child_pid = None
     self.parent_pid = os.getpid()
     self.subproc_state = None
     self.tasks = {}
     self.sni_names = {}
     self.sock = None
     self.connection = None
     self.key_pem = crypto_util.make_key(bits=2048)
     self.private_key = OpenSSL.crypto.load_privatekey(
         OpenSSL.crypto.FILETYPE_PEM, self.key_pem)
     self.ssl_conn = None
Esempio n. 2
0
 def __init__(self, *args, **kwargs):
     super(StandaloneAuthenticator, self).__init__(*args, **kwargs)
     self.child_pid = None
     self.parent_pid = os.getpid()
     self.subproc_state = None
     self.tasks = {}
     self.sni_names = {}
     self.sock = None
     self.connection = None
     self.key_pem = crypto_util.make_key(bits=2048)
     self.private_key = OpenSSL.crypto.load_privatekey(
         OpenSSL.crypto.FILETYPE_PEM, self.key_pem)
     self.ssl_conn = None
 def test_it(self):  # pylint: disable=no-self-use
     from letsencrypt.crypto_util import make_key
     # Do not test larger keys as it takes too long.
     OpenSSL.crypto.load_privatekey(
         OpenSSL.crypto.FILETYPE_PEM, make_key(1024))
Esempio n. 4
0
 def test_it(self):  # pylint: disable=no-self-use
     from letsencrypt.crypto_util import make_key
     # Do not test larger keys as it takes too long.
     OpenSSL.crypto.load_privatekey(OpenSSL.crypto.FILETYPE_PEM,
                                    make_key(1024))
 def test_it(self):  # pylint: disable=no-self-use
     from letsencrypt.crypto_util import make_key
     # Do not test larger keys as it takes too long.
     M2Crypto.RSA.load_key_string(make_key(1024))
Esempio n. 6
0
 def test_it(self):  # pylint: disable=no-self-use
     from letsencrypt.crypto_util import make_key
     # Do not test larger keys as it takes too long.
     M2Crypto.RSA.load_key_string(make_key(1024))