Fix bug #43110 - win_iis module

Fix func create_cert_binding.
win 2008 uses the following format: ip!port and not ip!port!
This commit is contained in:
Mapel88 2017-08-22 17:52:20 +03:00 committed by GitHub
parent 009ef6686b
commit ec20e9a19a

View file

@ -837,6 +837,11 @@ def create_cert_binding(name, site, hostheader='', ipaddress='*', port=443,
# IIS 7.5 and earlier have different syntax for associating a certificate with a site
# Modify IP spec to IIS 7.5 format
iis7path = binding_path.replace(r"\*!", "\\0.0.0.0!")
# win 2008 uses the following format: ip!port and not ip!port!
if iis7path.endswith("!"):
iis7path = iis7path[:-1]
ps_cmd = ['New-Item',
'-Path', "'{0}'".format(iis7path),