Deploy using script but using ecrypted password.

halcwb's Avatar


13 Jan, 2015 08:31 PM

I have a deploy script that runs fine. However, I would like to encrypt the passwords used in this script like:

@echo off cls

set msBuildDir="C:\Program Files (x86)\MSBuild\12.0\Bin"

REM Deploy Settings Services
call %msBuildDir%\msbuild.exe %~dp0src\Informedica.Settings.ServiceStack\Informedica.Settings.ServiceStack.csproj /p:DeployOnBuild=true /p:PublishProfile=DemoServer /p:Password=[ENCRYPTED!!] /p:AllowUntrustedCertificate=true

REM Deploy GenImport Services
call %msBuildDir%\msbuild.exe %~dp0src\Informedica.GenImport.ServiceStack\Informedica.GenImport.ServiceStack.csproj /p:DeployOnBuild=true /p:PublishProfile=DemoServer /p:Password=[ENCRYPTED!!] /p:AllowUntrustedCertificate=true

REM Deploy GenForm Services
call %msBuildDir%\msbuild.exe %~dp0src\Informedica.GenForm.ServiceStack\Informedica.GenForm.ServiceStack.csproj /p:DeployOnBuild=true /p:PublishProfile=DemoServer /p:Password=[ENCRYPTED!!] /p:AllowUntrustedCertificate=true

REM Deploy GenPres Services
call %msBuildDir%\msbuild.exe %~dp0src\Informedica.GenPres.ServiceStack\Informedica.GenPres.ServiceStack.csproj /p:DeployOnBuild=true /p:PublishProfile=DemoServer /p:Password=[ENCRYPTED!!] /p:AllowUntrustedCertificate=true

REM Deploy GenPDMS Services
call %msBuildDir%\msbuild.exe %~dp0src\Informedica.GenPDMS.ServiceStack\Informedica.GenPDMS.ServiceStack.csproj /p:DeployOnBuild=true /p:PublishProfile=DemoServer /p:Password=[ENCRYPTED!!] /p:AllowUntrustedCertificate=true

REM Deploy GenPres MvcWeb Services
call %msBuildDir%\msbuild.exe %~dp0src\Informedica.GenPres.MvcWeb\Informedica.GenPres.MvcWeb.csproj /p:DeployOnBuild=true /p:PublishProfile=DemoServer /p:Password=[ENCRYPTED!!] /p:AllowUntrustedCertificate=true

How can I achieve this?

  1. Support Staff 1 Posted by Feodor Fitsner on 13 Jan, 2015 10:05 PM

    Feodor Fitsner's Avatar

    You can use secure variables, so in script you would have:

    ... /p:PublishProfile=DemoServer /p:Password=%password%

    Let me know if you have any questions.

  2. 2 Posted by halcwb on 15 Jan, 2015 06:53 AM

    halcwb's Avatar

    That easy? Thanks!

  3. Ilya Finkelshteyn closed this discussion on 25 Aug, 2018 01:53 AM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts


? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac

Recent Discussions

22 Mar, 2019 07:18 PM
22 Mar, 2019 02:20 PM
22 Mar, 2019 11:00 AM
22 Mar, 2019 02:51 AM
22 Mar, 2019 12:46 AM


21 Mar, 2019 08:34 PM
21 Mar, 2019 05:38 PM
21 Mar, 2019 06:16 AM
20 Mar, 2019 11:39 PM
20 Mar, 2019 09:03 PM
20 Mar, 2019 08:55 PM