ClickOnce certificate and TeamCity

by Laurent Kempé 3. November 2009 00:28

To be able to run a build on TeamCity of a Visual Studio solution containing a ClickOnce manifest which needs to be signed, you will need to add the certificate to the Windows account on which TeamCity services runs.

TeamCity run under Local System account per default.

4068846824_d9a73b13b8_o[1]

So you need to add the certificate to this account! But how do you do that?

You will need a tool from SysInternals called PsExec, then using PsExec:

> Psexec.exe -i -s cmd.exe

you will have ran a command prompt on your system in the Local System Account (LSA).

Using that new command prompt, cd to the folder containing your certificate and start it

> my_TemporaryKey.pfx

Then you will face the Certificate Import Wizard in which you click Next > Next > Type the password > Next.

Your certificate is installed now for Local System Account (LSA), and your build should work now.

Enjoy!

Bookmark and Share DotnetKicks dotnetshoutout

Tags: , ,

continuous integration | Team City | ClickOnce

Comments

6/24/2010 5:43:31 PM #

pingback

Pingback from theleagueofpaul.com

Auto ClickOnce Deploys with TeamCity + MSBuild  –  The League of Paul

theleagueofpaul.com | Reply

6/24/2010 5:51:45 PM #

trackback

Auto ClickOnce Deploys with TeamCity + MSBuild

Currently when you go to install MahTweets, you’re greeted with this less than reassuring dialog:

Unknown publisher? Well, you should know it’s from the MahTweets team, but you can&rsqu ...

AuTechHeads Blogs | Reply

Add comment


(Will show your Gravatar icon)

  Country flag

biuquote
  • Comment
  • Preview
Loading



About

Laurent Kempé

Laurent Kempé is the editor, founder, and primary contributor of Tech Head Brothers, a French portal about Microsoft .NET technologies.

He is currently employed by Innoveo Solutions since 10/2007 as a Senior Solution Architect and certified Scrum Master.

Founder, owner and Managing Partner of Jobping, which provides a unique and efficient platform for connecting Microsoft skilled job seekers with employers using Microsoft technologies.

Laurent is awarded by Microsoft since Avril 2002: Most Valuable Professional (MVP).

Badges

MVP
Certified ScrumMaster
JetBrains Academy Member

Contact

View Laurent Kempé's profile on LinkedIn

XING

My status

twitter

facebook

Page List