Commerce Server General - Disable SSL for a site

This is Interesting: Free IT Magazines  
Home > Archive > Commerce Server General > April 2005 > Disable SSL for a site





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Disable SSL for a site
MJ

2005-04-11, 5: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 SSL
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 the
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


Tomas Vera

2005-04-11, 5:55 pm

Please verify the following line:
>sSiteName = "S2002StarterSite" 'works for MSIB21


On my site the site name is
"CS2002StarterSite"


On Mon, 11 Apr 2005 11:14:02 -0700, "MJ"
<MJ@discussions.microsoft.com> wrote:

>sSiteName = "S2002StarterSite" 'works for MSIB21


/*-------------------------------
* Tomas Vera
* tomas (at) sbcglobal (dot) net
*-------------------------------
*/
MJ

2005-04-11, 5:55 pm

sorry it was a TYPO error.. the name is 'CS2002StarterSite'
MJ

"Tomas Vera" wrote:

> Please verify the following line:
>
> On my site the site name is
> "CS2002StarterSite"
>
>
> On Mon, 11 Apr 2005 11:14:02 -0700, "MJ"
> <MJ@discussions.microsoft.com> wrote:
>
>
> /*-------------------------------
> * Tomas Vera
> * tomas (at) sbcglobal (dot) net
> *-------------------------------
> */
>

Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com