Windows Develop Bookmark and Share   
 index > ClickOnce and Setup & Deployment Projects > How to add a friendly name to a certificate
 

How to add a friendly name to a certificate

Hi,

I am trying to create a certificate for installing a VSTO Excel Addin. I am able to create the certificate successfully and install it using the following command

certmgr.exe -add MyCert.cer -s -r localMachine root

I then made this command as a part of my install so that i can install this certificate on the client machine.

But now when i wanted to uninstall the certificate, it is checking for a friendly name. Can someone please tell me how to add the friendly name while creating a certificate.

Thanks,
Shail
Shailendra_G  Monday, August 24, 2009 7:43 PM
Hi Shailendra_G,

According to your post, I think you are using Certificate Manager Tool (Certmgr.exe) to install the .cer. Do you use Certificate Creation Tool (Makecert.exe) to create your .cer file?

Based on my research, I don't see there is any option for MakeCert.exe to add friendly name. But when I come to Certmgr.exe , I see one option "/n commonName String ", it specifies the common name of the certificate to add, delete, or save. Does it what the friendly name you mean?

Here is the detail information about it.
http://msdn.microsoft.com/en-us/library/e78byta0%28VS.80%29.aspx

Hope this can offer you some useful information. If I misunderstood you, please feel free to tell me.

Sincerely,
Kira Qian
Please mark the replies as answers if they help and unmark if they don't.
Kira Qian  Thursday, August 27, 2009 3:08 AM
Hi Shailendra_G,

According to your post, I think you are using Certificate Manager Tool (Certmgr.exe) to install the .cer. Do you use Certificate Creation Tool (Makecert.exe) to create your .cer file?

Based on my research, I don't see there is any option for MakeCert.exe to add friendly name. But when I come to Certmgr.exe , I see one option "/n commonName String ", it specifies the common name of the certificate to add, delete, or save. Does it what the friendly name you mean?

Here is the detail information about it.
http://msdn.microsoft.com/en-us/library/e78byta0%28VS.80%29.aspx

Hope this can offer you some useful information. If I misunderstood you, please feel free to tell me.

Sincerely,
Kira Qian
Please mark the replies as answers if they help and unmark if they don't.
Kira Qian  Thursday, August 27, 2009 3:08 AM

You can use google to search for other answers

Custom Search

More Threads

• ClickOnce package file deletion
• Deployment Project - Multiple User Specified Installation Directories
• ClickOnce/MageUI Deployment Error - Using MageUI to add other assemblies to the install.
• should access database under application files?
• how do i disabled the next button
• Removable files in a VS.NET deployment project
• Smart Client Deployment
• This error comes in win 2000 but not in Xp!!
• Setup and Deployment acts differently in VS 2008
• What happens when I modify my database structure and put out an update?