def setUp(self): super(DvsniPerformTest, self).setUp() with mock.patch("letsencrypt.client.apache.configurator." "mod_loaded") as mock_load: mock_load.return_value = True config = util.get_apache_configurator( self.config_path, self.config_dir, self.work_dir, self.ssl_options) from letsencrypt.client.apache import dvsni self.sni = dvsni.ApacheDvsni(config) rsa256_file = pkg_resources.resource_filename( "letsencrypt.client.tests", 'testdata/rsa256_key.pem') rsa256_pem = pkg_resources.resource_string( "letsencrypt.client.tests", 'testdata/rsa256_key.pem') auth_key = le_util.Key(rsa256_file, rsa256_pem) self.challs = [] self.challs.append(challenge_util.DvsniChall( "encryption-example.demo", "jIq_Xy1mXGN37tb4L6Xj_es58fW571ZNyXekdZzhh7Q", "37bc5eb75d3e00a19b4f6355845e5a18", auth_key)) self.challs.append(challenge_util.DvsniChall( "letsencrypt.demo", "uqnaPzxtrndteOqtrXb0Asl5gOJfWAnnx6QJyvcmlDU", "59ed014cac95f77057b1d7a1b2c596ba", auth_key))
def setUp(self): super(TwoVhost80Test, self).setUp() with mock.patch("letsencrypt.client.apache.configurator." "mod_loaded") as mock_load: mock_load.return_value = True self.config = util.get_apache_configurator( self.config_path, self.config_dir, self.work_dir, self.ssl_options) self.vh_truth = util.get_vh_truth( self.temp_dir, "debian_apache_2_4/two_vhost_80")
def setUp(self): super(DvsniPerformTest, self).setUp() with mock.patch("letsencrypt.client.apache.configurator." "mod_loaded") as mock_load: mock_load.return_value = True config = util.get_apache_configurator(self.config_path, self.config_dir, self.work_dir, self.ssl_options) from letsencrypt.client.apache import dvsni self.sni = dvsni.ApacheDvsni(config) rsa256_file = pkg_resources.resource_filename( "letsencrypt.client.tests", 'testdata/rsa256_key.pem') rsa256_pem = pkg_resources.resource_string("letsencrypt.client.tests", 'testdata/rsa256_key.pem') auth_key = le_util.Key(rsa256_file, rsa256_pem) self.achalls = [ achallenges.DVSNI(chall=challenges.DVSNI( r="\x8c\x8a\xbf_-f\\cw\xee\xd6\xf8/\xa5\xe3\xfd\xeb9\xf1" "\xf5\xb9\xefVM\xc9w\xa4u\x9c\xe1\x87\xb4", nonce="7\xbc^\xb7]>\x00\xa1\x9bOcU\x84^Z\x18", ), domain="encryption-example.demo", key=auth_key), achallenges.DVSNI(chall=challenges.DVSNI( r="\xba\xa9\xda?<m\xaewmx\xea\xad\xadv\xf4\x02\xc9y\x80" "\xe2_X\t\xe7\xc7\xa4\t\xca\xf7&\x945", nonce="Y\xed\x01L\xac\x95\xf7pW\xb1\xd7" "\xa1\xb2\xc5\x96\xba", ), domain="letsencrypt.demo", key=auth_key), ]