Skip to main content
Randy Walker

Randy Walker's thoughts on technology leadership, cloud transformation, entrepreneurship, and the business of innovation.

Contact Info
479.871.2172

Quick Links

Follow Me

VSTS with code signed PFX certificates

VSTS with code signed PFX certificates

26 Apr 2017 By Randy Walker

While using VSTS, one of the most common questions is how to code sign your application.  It’s extremely problematic, because there’s no easy way to import a PFX with a password.

Step 1: Add a PowerShell Script and put the following as inline code.

String $(CertPassword) -AsPlainText -Force Write-Output (“$(System.DefaultWorkingDirectory)” + “\Resources\Harvest.pfx”) Import-PfxCertificate -FilePath $(System.DefaultWorkingDirectory)\Resources\mycert.pfx -Password $Secure -CertStoreLocation cert:\CurrentUser\My

Step 2: Add a Variable named CertPassword, put your password into it, then click the lock icon