bug fix: Multiple Hosts and Misdirected Requests
This commit is contained in:
parent
b2c3774378
commit
8973a4fac4
|
|
@ -137,8 +137,8 @@ class ApacheVhost:
|
|||
else:
|
||||
os.mkdir(ApacheVhost.sslBasePath)
|
||||
|
||||
pathToStoreSSLPrivKey = ApacheVhost.sslBasePath + virtualHostName + ".privkey.pem"
|
||||
pathToStoreSSLFullChain = ApacheVhost.sslBasePath + virtualHostName + ".fullchain.pem"
|
||||
pathToStoreSSLPrivKey = ApacheVhost.sslBasePath + ".privkey.pem"
|
||||
pathToStoreSSLFullChain = ApacheVhost.sslBasePath + ".fullchain.pem"
|
||||
command = 'openssl req -newkey rsa:2048 -new -nodes -x509 -days 3650 -subj "/C=US/ST=Denial/L=Springfield/O=Dis/CN=www.example.com" -keyout ' + pathToStoreSSLPrivKey + ' -out ' + pathToStoreSSLFullChain
|
||||
ProcessUtilities.normalExecutioner(command)
|
||||
|
||||
|
|
|
|||
|
|
@ -264,8 +264,8 @@ context /.well-known/acme-challenge {
|
|||
|
||||
SSLEngine on
|
||||
SSLVerifyClient none
|
||||
SSLCertificateFile {SSLBase}{virtualHostName}.fullchain.pem
|
||||
SSLCertificateKeyFile {SSLBase}{virtualHostName}.privkey.pem
|
||||
SSLCertificateFile {SSLBase}.fullchain.pem
|
||||
SSLCertificateKeyFile {SSLBase}.privkey.pem
|
||||
|
||||
</VirtualHost>
|
||||
"""
|
||||
|
|
@ -318,8 +318,8 @@ context /.well-known/acme-challenge {
|
|||
</Directory>
|
||||
SSLEngine on
|
||||
SSLVerifyClient none
|
||||
SSLCertificateFile {SSLBase}{virtualHostName}.fullchain.pem
|
||||
SSLCertificateKeyFile {SSLBase}{virtualHostName}.privkey.pem
|
||||
SSLCertificateFile {SSLBase}.fullchain.pem
|
||||
SSLCertificateKeyFile {SSLBase}.privkey.pem
|
||||
|
||||
</VirtualHost>
|
||||
"""
|
||||
|
|
|
|||
Loading…
Reference in New Issue