This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
echo For my cloud agents, I had to get the pfx alias, Import the CARoot.cer, merge the pfx, and then change the password. | |
echo Based on https://github.com/haron/startssl-java and https://docs.oracle.com/javase/6/docs/technotes/tools/windows/keytool.html | |
cd %~dp0 | |
set JAVA_HOME=C:\BuildAgent\jre | |
set KEYTOOL=%JAVA_HOME%\bin\keytool | |
set KEYSTORE=%JAVA_HOME%\lib\security\cacerts | |
set PASSWORD=changeit | |
echo "Importing StartSSL certificates into %KEYSTORE%" > run.log | |
rem C:\BuildAgent>jre\bin\keytool -list -keystore .\conf\ssl\build.cloudapp.net.pfx -storetype pkcs12 |