From a757f344d7f714ddb63d2b780c12492e46985084 Mon Sep 17 00:00:00 2001 From: James Kasten Date: Tue, 20 Nov 2012 01:19:51 -0500 Subject: [PATCH] Added quick fix to support sni_challenge for private ip addresses --- trustify/client/sni_challenge.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/trustify/client/sni_challenge.py b/trustify/client/sni_challenge.py index 088934a14..a072cdafa 100644 --- a/trustify/client/sni_challenge.py +++ b/trustify/client/sni_challenge.py @@ -250,6 +250,18 @@ DocumentRoot " + CONFIG_DIR + "challenge_page/ \n \ else: addresses.append(vhost.addrs) + ################################################### + # This is a quick fix to protect against private IPs + # of EC2 + # The public ip address isn't actually accessed + ################################################### + + addresses = [default_addr] + + ################################################# + # End quick fix + ############################################## + for tup in self.listSNITuple: ext = self.generateExtension(self.key, tup[1]) self.createChallengeCert(tup[3], ext, tup[2], self.csr, self.key)