Deploy using script but using ecrypted password.

halcwb's Avatar

halcwb

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

Generic

? 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

 

01 Oct, 2024 04:27 PM
26 Sep, 2024 03:49 PM
26 Sep, 2024 09:02 AM
25 Sep, 2024 07:07 PM
24 Sep, 2024 08:39 PM
24 Sep, 2024 06:47 AM