Disable SSL for a site
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Web Servers reviews > Microsoft Commerce Server > Commerce Server General > Disable SSL for a site




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    Disable SSL for a site  
MJ


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
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 ]



    Re: Disable SSL for a site  
Tomas Vera


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
04-11-05 10: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
*-------------------------------
*/





[ Post a follow-up to this message ]



    Re: Disable SSL for a site  
MJ


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
04-11-05 10: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
>  *-------------------------------
>  */
>





[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 01:59 AM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register