Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8931845
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T09:12:12+00:00 2026-06-15T09:12:12+00:00

Let’s get this out of the way… I : use Visual Studio 2012 develop

  • 0

Let’s get this out of the way… I :

  • use Visual Studio 2012

  • develop VB.NET applications – mostly .NET framework 3.5, some 2.0.

  • use Windows 7 for development (users are also using Windows 7. There are a small number of internal users (less than 40).

I am also going to state that I am new at this and don’t fully understand this process. I do understand the underlying concepts of encryption/hashing/keys etc., but I can’t tell you why you might need a .cer file and not a .pfx file.

Now then…

We have an application that uses a certificate to sign its manifest that has worked for three (or so) years. We recently upgraded from Visual Studio 2008 to Visual Studio 2012, having basically skipped Visual Studio 2010. Somewhere in that process the certificate is now invalid or corrupted.

The proposed solution: Make a new one with makecert.exe “just like we did last time”. No sense paying for a certificate when all we need it for is our own small set of users and the small convenience of not seeing that “do you trust this publisher?” message (I think?).

When trying to publish, the exact error is:

Cannot publish because a project failed to build.

An error occurred while signing: Failed to sign
bin\Release\app.publish\setup.exe. SignTool Error: The signer’s
certificate is not valid for signing. SignTool Error: An error
occurred while attempting to sign: bin\Release\app.publish\setup.exe

Now, the article Support Certificates In Your Applications With The .NET Framework 2.0 says:

for desktop applications, you typically install certificates in the
user store.

So when I look at the user store (via MMC with certificate snap-in) I see:

Enter image description here

Where the red line is is the OLD/INVALID certificate. One other one is still unexpired, with my username on it (2013-06-20).

When I go to select from the store, I see this:

Enter image description here

Enter image description here

And in case you are curious, the other intuitive place to put one of these looks like this:

Enter image description here

So how do I add another one where the old/bad one is?

Here is what I have tried:

Following these instructions, I executed

makecert -n "CN=TempCA" -r -sv TempCA.pvk TempCA.cer

Now I have a .pvk file, and a .cer file. Then I followed the instructions in Pvk2Pfx (Windows Drivers) and ran

pvk2pfx.exe -pvk TempCA.pvk -spc TempCA.cer -pfx TempCA.pfx

Now I have a .pfx file… (is this what I need?), but when trying to import to the certificate store using MMC, the password I used is supposedly wrong no matter what – even if I copy and paste it in. (It sounds like a bug in the import program… I can reproduce this.)

Trying another route, after importing the .cer file, it will not show up in the “select from store” window in Visual Studio, so that’s useless.

I’ve spent a day on this and am ready to give up, but I can’t. What do I need to do?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T09:12:13+00:00Added an answer on June 15, 2026 at 9:12 am

    The article Using Makecert to Create Certificates for Development helped about 90% of the way…

    The rest was understanding that I could do one of two things (both of these options require the certificate must be in a “trusted root” area like “Trusted Root Certification Authority”, or must be signed by one that is there):

    1. In Visual Studio, under the “signing” tab I could just use “Select from file” and use the .cer file.
    2. If I just put my .cer file in the “personal” folder, it will appear as an option from the “select from store” button (I may need to restart the computer or Visual Studio).
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Let's say I have a C++ Visual Studio 2010 solution with 2 projects: one
Let's say I can call a method like this: core::get() . What is the
Let's say I have a sortable list like this: $(.song-list).sortable({ handle : '.pos_handle', axis
Let's say I have a string like this: var str = /abcd/efgh/ijkl/xxx-1/xxx-2; How do
I have a string like this: La Torre Eiffel paragonata all’Everest What PHP function
Let's say I have this code: <p dataname=description> Hello this is a description. <a
Let's say I have some text as follows: do this, do that, then this,
Let's say, I have a .NET 2 installed. Can I programmatically install version 4
Let's suppose that we have multi-site CMS and every website in this CMS having
Let's say I create an object like this: Person: NSString *name; NSString *phone; NSString

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.