Bug fix to SSL

This commit is contained in:
usmannasir
2017-12-16 11:59:47 +05:00
parent f70641ecfa
commit 457c1e7e20
63 changed files with 153 additions and 16 deletions

View File

@@ -158,6 +158,8 @@ class sslUtilities:
expectation.append("that you are serving files from the webroot path") #4
expectation.append("Enter email address") #5
expectation.append("There were too many requests") # 6
expectation.append("--expand flag") #7
try:
@@ -248,6 +250,11 @@ class sslUtilities:
elif index==6:
return "Too many SSL requests for this domain, please try to get SSL at later time."
elif index==7:
command = "certbot certonly -n --agree-tos --email " + adminEmail + " --expand --webroot -w " + sslpath + " -d " + virtualHostName + " -d www." + virtualHostName
subprocess.call(shlex.split(command))
logging.CyberCPLogFileWriter.writeToFile(virtualHostName + " SSL OK by expanding!")
except pexpect.EOF,msg: