Solved

makecert crashing 2nd time I try it.  I'm not removing something it creates.

Posted on 2014-01-10
2
494 Views
Last Modified: 2014-01-12
Hi Experts,

I'm doing the following command on Visual Studio 2008 command line:
makecert.exe -sr currentuser -ss ROOT -a sha1 -n "CN=MyCompany,O=MyCompany,OU=MyUnit" -sky signature -pe -r "MyCompanyCA.cer" -sv "MyCompanyCA.pvk"

This works fine the first time.  But if I go into MMC and remove the certificate it generates and delete the generated files in the current directory (the cert and the pvk) and try the same command again, it crashes.  There's something else I need to delete somewhere - would anyone know what that something else is?

I know it's this because if I change the name of MyCompany to MyCompany2 (throughout), it works...

Thank you!
Mike
0
Comment
Question by:thready
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 63

Accepted Solution

by:
btan earned 500 total points
ID: 39773090
Pls see this which drill  Into registry for cleanup. Also it stated a gotcha It doesn’t mention one gotcha discovered by trial and error:  without specifying an -sk option, it created the key using some default key container, and attempting to export key parameters in .NET code (using ExportParameters() or ExportCspBlob()) throws an exception–apparently the key container will not allow it. Maybe os through registry easier to find the certificate in the stores deposited

http://banachowski.com/deprogramming/2011/01/deleting-unwanted-certificate-stores-from-windows/

The detailed option for makecert can be found

http://msdn.microsoft.com/en-us/library/windows/desktop/aa386968(v=vs.85).aspx
0
 
LVL 1

Author Closing Comment

by:thready
ID: 39775045
Thank you!
0

Featured Post

Resolve Critical IT Incidents Fast

If your data, services or processes become compromised, your organization can suffer damage in just minutes and how fast you communicate during a major IT incident is everything. Learn how to immediately identify incidents & best practices to resolve them quickly and effectively.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Secure log in 'box' 4 40
How to export members from Domain Local Security group ? 10 40
Mode / vector of infections and attacks 3 34
Problem to setting 16 38
Keystroke loggers have been around for a very long time. While the threat is old, some of the remedies are new!
Many of you may be aware of the recent Google Docs scam emails that have been floating around coming from various people that you know. Here's a guide on identifying How To Identify the Scam Email You will see an email from someone you’ve had co…
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

738 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question