Questions tagged [makecert]

makecert.exe is a command line X.509 digital certificate creation tool included with Microsoft Visual Studio. The certificates created are for testing purposes only. It is already deprecated, so don't use it.

The options for makecert can be found at

https://learn.microsoft.com/en-us/windows/desktop/seccrypto/makecert.

Microsoft now recommends users to switch to PowerShell

https://learn.microsoft.com/en-us/powershell/module/pkiclient/new-selfsignedcertificate?view=win10-ps

123 questions
60
votes
4 answers

How can I install a certificate into the local machine store programmatically using c#?

I have a certificate generated via MakeCert. I want to use this certificate for WCF message security using PeerTrust. How can I programmatically install the certificate into the "trusted people" local machine certificate store using c# or .NET? I…
J Davis
  • 730
  • 1
  • 6
  • 9
55
votes
2 answers

Using makecert for Development SSL

Here's my situation: I'm trying to create a SSL certificate that will be installed on all developer's machine's, along with two internal servers (everything is non-production). What do I need to do to create a certificate that can be installed in…
John
  • 17,163
  • 16
  • 65
  • 83
51
votes
4 answers

Makecert missing from Windows 10 and Visual Studio 2015 install?

I did a clean install of windows 10 and visual studio 2015 and did not find makecert.exe anywhere. Does some other software need to be installed to get this program back? I looked in all the folders under "C:\Program Files (x86)\Microsoft…
Brian McCarthy
  • 757
  • 1
  • 6
  • 11
40
votes
4 answers

Where can I find makecert.exe? Visual Studio Ultimate 2012

Attempting to use a makecert UI tool to make it easier to generate a self-signed code certificates I'm trying to find the DIR location of makecert.exe I followed this previous answer and all the command line switches worked without error. - However…
Samuel Nicholson
  • 3,587
  • 3
  • 20
  • 37
37
votes
6 answers

How to pass multiple arguments in processStartInfo?

I want to run some cmd command from c#code. I followed some blogs and tutorial and got the answer, but I am in little bit confused i.e how should I pass multiple arguments? I use follow code: System.Diagnostics.Process process = new…
Amit Pal
  • 10,604
  • 26
  • 80
  • 160
36
votes
12 answers

fiddler2 unable to generate certificate

I'm using Fiddler2 (or trying) to capture SSL traffic for a windows desktop gadget hitting an https web service. It used to work, and then it stopped a couple days ago, always with this error: --------------------------- Unable to Generate…
Ben Collins
  • 20,538
  • 18
  • 127
  • 187
35
votes
3 answers

add or create 'Subject Alternative Name' field to self-signed certificate using makecert

How can I create a certificate using makecert with a 'Subject Alternative Name' field ? You can add some fields eg, 'Enhanced Key Usage' with the -eku option and I've tried the -san option but makecert doesn't like it. This is a self-signed…
wal
  • 17,409
  • 8
  • 74
  • 109
25
votes
10 answers

makecert.exe missing in windows 7, how to get it and use it

I am using Windows 7. I don't have the makecert.exe, which I came to know when I tried to run commands to generate certificates like makecert -sk XYZ -n "CN=XYZ Company" testXYZ.cer I get error : 'makecert' is not recognised as an internal or…
pravin
  • 247
  • 2
  • 4
  • 4
20
votes
4 answers

Setting Key Usage attributes with Makecert

Is it possible to set Key Usage attributes using makecert, or any other tool I can use to generate my own test certificates? The reason I'm interested is that certificates used for BizTalk Server AS2 transport require a key usage of Digital…
nlawalker
  • 6,364
  • 6
  • 29
  • 46
20
votes
6 answers

How do I identify my server name for server authentication by client in c#

I have recently been trying to make a SSL encrypted Server/Client in C#. I have followed this tutorial on MSDN, however, it required a certificate to be created for the server and client usage using makecert.exe so I found an example and it created…
David Kroukamp
  • 36,155
  • 13
  • 81
  • 138
18
votes
6 answers

makecert.exe missing in windows 10, how to get it and use it

I am using Windows 10. I don't have the makecert.exe, which I came to know when I tried to run commands to generate certificates like makecert.exe I get error : 'makecert' is not recognised as an internal or external command, operable program or…
Te7a
  • 193
  • 1
  • 1
  • 5
17
votes
5 answers

'makecert' is not recognized as an internal or external command in command prompt

For creating certificate run this command: makecert -r -pe -n "CN=effectLabs Server" -b 01/01/2011 -e 01/01/2020 -sky exchange C:\myCerts\ELServer.cer -sv C:\myCerts\ELServer.pvk Following error occurred in command prompt: 'makecert' is not…
Jatin Gadhiya
  • 706
  • 2
  • 7
  • 24
17
votes
5 answers

Missing makecert.exe

For some reason I am missing makecert.exe on my system. I searched the whole hard drive and it's not there. In particular, it's not in C:\Program Files\Microsoft SDKs\Windows\v6.0A\bin where I believe it's supposed to be. I haven't found any…
user194986
  • 171
  • 1
  • 1
  • 3
14
votes
3 answers

Automate makecert password

I am using the following command to generate a certificate: makecert.exe" –sv cnName.pvk -n "cn=cnName" cnName.cer -r -eku 1.3.6.1.5.5.7.3.1 pvk2pfx -pvk cnName.pvk -spc cnName.cer -pfx cnName.pfx -po Both these commands pop up a…
Romonov
  • 8,145
  • 14
  • 43
  • 55
13
votes
5 answers

Where do you download signcode.exe and other tools

If you decide to sign your code, you'll need: signcode.exe makecert.exe cert2spc.exe pvk2pfx.exe What's the best place to download these tools? Is there a way to do this without downloading large quantities of the Microsoft Windows SDK?
Stephane Grenier
  • 15,527
  • 38
  • 117
  • 192
1
2 3
8 9