File tree 2 files changed +11
-0
lines changed
src/System.Private.ServiceModel/tools/scripts
2 files changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -47,6 +47,14 @@ if NOT "%ERRORLEVEL%"=="0" (
47
47
goto end
48
48
)
49
49
50
+ :: Grant IIS WCF Service Pool permission to access the new certs' private key
51
+ set PoolNames = WcfService1 WcfService2 WcfService3 WcfService4 WcfService5 WcfService6 DefaultAppPool
52
+
53
+ for %%P in (%PoolNames% ) do (
54
+ echo [%~n0 ] powershell -NoProfile -ExecutionPolicy unrestricted %_SCRIPTSDIR% \CertificatePrivateKeyPermissions.ps1 'IIS APPPOOL\%%P ' >> %_LOGFILE%
55
+ powershell -NoProfile -ExecutionPolicy unrestricted %_SCRIPTSDIR% \CertificatePrivateKeyPermissions.ps1 'IIS APPPOOL\%%P ' >> %_LOGFILE% 2 >& 1
56
+ )
57
+
50
58
:: Configure HTTPS ports to use new certificate
51
59
echo [%~n0 ] powershell -NoProfile -ExecutionPolicy unrestricted %_SCRIPTSDIR% \ConfigHttpsPort.ps1 >> %_LOGFILE%
52
60
powershell -NoProfile -ExecutionPolicy unrestricted %_SCRIPTSDIR% \ConfigHttpsPort.ps1 >> %_LOGFILE% 2 >& 1
Original file line number Diff line number Diff line change @@ -37,6 +37,9 @@ if not "%ERRORLEVEL%"=="0" (
37
37
echo [%~n0 ] Kill SelfHostedWCFService.exe so that we can clean up the bin directory >> %_LOGFILE%
38
38
TASKKILL /F /IM SelfHostedWCFService.exe >> %_LOGFILE% 2 >& 1
39
39
40
+ echo [%~n0 ] Kill dotnet.exe processes that might remain after running the certificate refresh script >> %_LOGFILE%
41
+ TASKKILL /F /IM dotnet.exe >> %_LOGFILE% 2 >& 1
42
+
40
43
:: Pull the latest code from GitHub
41
44
42
45
pushd %_GITREPO%
You can’t perform that action at this time.
0 commit comments