04-11-05 10:55 PM
Disabling SSL in a Commerce Server site
Hi,
I’ve a site which uses CS2K/CMS2002 and is using SSL. I want to disable SS
L
so that it works under development.
I’ve tried using the script below for the site I want to work on but it
gives me an error message, (Line 7, Char 1, Error: The system cannot find th
e
path specified, Code:80070003, source: (null). The very same script I used
for an MSIB21 project and it worked like a charm. I don’t know what’s
causing it to fail for this site. All these pages for which I'm trying to
disable SSL exist in the virtual path.
Any suggestions would be very helpful.
option explicit
dim sSiteName, strIIS, wbSite, webFile
sSiteName = "S2002StarterSite" 'works for MSIB21
strIIS = "IIS://localhost/W3SVC/1/ROOT/"
wscript.Echo "Modifying the IIS metabase for the Enforce SSL files..."
set wbSite = GetObject(strIIS + sSiteName)
set webFile = wbSite.GetObject("IIsWebFile", "Login.aspx")
webFile.AccessSSL = False 'Modified
webFile.SetInfo
set webFile = Nothing
set webFile = wbSite.GetObject("IIsWebFile", "MyAccount.aspx")
webFile.AccessSSL = False 'Modified
webFile.SetInfo
set webFile = Nothing
set webFile = wbSite.GetObject("IIsWebFile", "ChangePassword.aspx")
webFile.AccessSSL = False 'Modified
webFile.SetInfo
set webFile = Nothing
set webFile = wbSite.GetObject("IIsWebFile", "ForgotPassword.aspx")
webFile.AccessSSL = False 'Modified
webFile.SetInfo
set webFile = Nothing
set webFile = wbSite.GetObject("IIsWebFile", "Logout.aspx")
webFile.AccessSSL = False 'Modified
webFile.SetInfo
set webFile = Nothing
set webFile = wbSite.GetObject("IIsWebFile",
"ChangeAlternateCredentials.aspx")
webFile.AccessSSL = False 'Modified
webFile.SetInfo
set webFile = Nothing
set webFile = wbSite.GetObject("IIsWebFile",
"RetailExtensions/NewAccount.aspx")
webFile.AccessSSL = False 'Modified
webFile.SetInfo
set webFile = Nothing
wscript.Echo "Done removing SSL!"
Thanks
MJ
[ Post a follow-up to this message ]
|