1
0
mirror of https://github.com/certbot/certbot.git synced 2026-01-26 07:41:33 +03:00

using chocolate server (ec2)'s parameters in sni_challenge (these are just as good as any hardcoded value, and this way we don't have uncommited changes on our test server)

This commit is contained in:
Ubuntu
2012-07-11 06:14:25 +00:00
parent e1bbcd04b7
commit 5bc2eee4b0

View File

@@ -9,7 +9,7 @@ from shutil import move
from os import remove, close
import binascii
CHOC_DIR = "/home/james/Documents/apache_choc/"
CHOC_DIR = "/home/ubuntu/chocolate/client-webserver/"
CHOC_CERT_CONF = "choc_cert_extensions.cnf"
OPTIONS_SSL_CONF = CHOC_DIR + "options-ssl.conf"
APACHE_CHALLENGE_CONF = CHOC_DIR + "choc_sni_cert_challenge.conf"
@@ -133,8 +133,8 @@ def perform_sni_cert_challenge(listSNITuple, csr, key):
apache_restart()
def main():
key = CHOC_DIR + "testing.key"
csr = CHOC_DIR + "choc.csr"
key = CHOC_DIR + "key.pem"
csr = CHOC_DIR + "req.pem"
testkey = RSA.importKey(open(key).read())
@@ -153,7 +153,7 @@ def main():
nonce = binascii.hexlify(nonce)
nonce2 = binascii.hexlify(nonce2)
perform_sni_cert_challenge([("127.0.0.1", y, nonce, "1.3.3.7"), ("localhost",y2, nonce2, "1.3.3.7")], csr, key)
perform_sni_cert_challenge([("example.com", y, nonce, "1.3.3.7"), ("www.example.com",y2, nonce2, "1.3.3.7")], csr, key)
if __name__ == "__main__":
main()