Author: bendewey
Date: Tue Jul 28 15:25:25 2009
New Revision: 798560
URL: http://svn.apache.org/viewvc?rev=798560&view=rev
Log:
Updated .NET AuthorizeWcfServices.bat script to add permissions to the Windows
Certificate Store as well
Modified:
incubator/stonehenge/trunk/stocktrader/dotnet/setup_utilities/Util/AuthorizeWcfServices.bat
Modified:
incubator/stonehenge/trunk/stocktrader/dotnet/setup_utilities/Util/AuthorizeWcfServices.bat
URL:
http://svn.apache.org/viewvc/incubator/stonehenge/trunk/stocktrader/dotnet/setup_utilities/Util/AuthorizeWcfServices.bat?rev=798560&r1=798559&r2=798560&view=diff
==============================================================================
---
incubator/stonehenge/trunk/stocktrader/dotnet/setup_utilities/Util/AuthorizeWcfServices.bat
(original)
+++
incubator/stonehenge/trunk/stocktrader/dotnet/setup_utilities/Util/AuthorizeWcfServices.bat
Tue Jul 28 15:25:25 2009
@@ -17,6 +17,13 @@
@echo off
+SETLOCAL
+
+IF EXIST "C:\Program Files\Windows Resource Kits\Tools\winhttpcertcfg.exe" SET
KIT_HOME="C:\Program Files\Windows Resource Kits\Tools"
+IF EXIST "C:\Program Files (x86)\Windows Resource
Kits\Tools\winhttpcertcfg.exe" SET KIT_HOME="C:\Program Files (x86)\Windows
Resource Kits\Tools"
+
+IF NOT DEFINED KIT_HOME GOTO NoKit
+
SET user=%USERDOMAIN%\%USERNAME%
@echo.
@@ -41,16 +48,39 @@
if errorlevel 3 GOTO Remove
if errorlevel 2 SET user=\Everyone
+
netsh http add urlacl url=http://+:7000/ user=%user%
netsh http add urlacl url=http://+:8000/ user=%user%
netsh http add urlacl url=http://+:9000/ user=%user%
+%KIT_HOME%\winhttpcertcfg.exe -g -c LOCAL_MACHINE\TrustedPeople -s OPS.Com -a
%user%
+%KIT_HOME%\winhttpcertcfg.exe -g -c LOCAL_MACHINE\TrustedPeople -s BSL.Com -a
%user%
+%KIT_HOME%\winhttpcertcfg.exe -g -c LOCAL_MACHINE\TrustedPeople -s Trade.Com
-a %user%
GOTO Exit
:Remove
netsh http delete urlacl url=http://+:7000/
netsh http delete urlacl url=http://+:8000/
netsh http delete urlacl url=http://+:9000/
+%KIT_HOME%\winhttpcertcfg.exe -r -c LOCAL_MACHINE\TrustedPeople -s OPS.Com -a
%user%
+%KIT_HOME%\winhttpcertcfg.exe -r -c LOCAL_MACHINE\TrustedPeople -s BSL.Com -a
%user%
+%KIT_HOME%\winhttpcertcfg.exe -r -c LOCAL_MACHINE\TrustedPeople -s Trade.Com
-a %user%
+%KIT_HOME%\winhttpcertcfg.exe -r -c LOCAL_MACHINE\TrustedPeople -s OPS.Com -a
\Everyone
+%KIT_HOME%\winhttpcertcfg.exe -r -c LOCAL_MACHINE\TrustedPeople -s BSL.Com -a
\Everyone
+%KIT_HOME%\winhttpcertcfg.exe -r -c LOCAL_MACHINE\TrustedPeople -s Trade.Com
-a \Everyone
GOTO Exit
+
+:NoKit
+...@echo.
+...@echo ---------------------------------
+...@echo The Windows Resource Kits needed
+...@echo Please download and installed to access keystore permissions
+...@echo.
+...@echo
http://www.microsoft.com/downloads/details.aspx?familyid=9D467A69-57FF-4AE7-96EE-B18C4790CFFD
+...@echo.
+...@echo ---------------------------------
+
+
:Exit
+ENDLOCAL
pause
\ No newline at end of file