Stories & Tips

Up to date information on Retail data, the latest in Technology and related matters to Microsoft

4 / 26 / 2017

VSTS with code signed PFX certificates

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

About the Author -

Randy Walker

A MicroISV owner for 10 years, Microsoft MVP for 8 years, and former Board member for INETA, Randy Walker has dedicated his life efforts towards fostering the software development community and discipiling young men for Christ.