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
1
vote
1 answer

How to implement a Https web server using SslStream and a self signed certificate?

The problem was that SslStream always read 0 bytes because the chrome web browser cannot validate the server's certificate. Refer to the msdn sample code: https://msdn.microsoft.com/en-us/library/system.net.security.sslstream(v=vs.110).aspx I…
mind1n
  • 1,196
  • 3
  • 15
  • 34
1
vote
1 answer

How to solve too many parameters error when using makecert?

I am following step 2 in this tutorial. After entering this command, makecert -r -pe -n "CN=PC-Name" -b 01/01/2000 -e 01/01/2036 -eku 1.3.6.1.5.5.7.3.1 -ss my -sr localMachine -sky exchange -sp "Microsoft RSA SChannel Cryptographic Provider" -sy…
user2217303
  • 356
  • 4
  • 16
1
vote
1 answer

Syntax error for makecert.exe tool

Did I missed anything during this? I am running a this command from command prompt in Windows 7 to create a certificate but it is showing a syntax error. Command I ran: makecert.exe "c:\1\Test.cer" -a sha1 -n "CN=AppGuid" -sr LocalMachine -ss My…
ary
  • 597
  • 3
  • 8
  • 20
1
vote
1 answer

Duplicate Fiddler.cer being inserted into certificate store

I have put together a bare-bones test case which literally does nothing but FiddlerApplication.Startup(8877, true, true); and even with this after clearing the personal store of FiddlerRoot.cer, i'm getting a bunch of random FiddlerRoot.cer…
Spark
  • 1,007
  • 1
  • 8
  • 26
1
vote
2 answers

Why does creating my self signing certificate fail?

I am trying to generate a self signing certificate but am unable to accomplish it. I am using this command to create a self signing certificate authority: makecert -n "CN=PowerShell Local Certificate Root" -a sha1 -eku 1.3.6.1.5.5.7.3.3 -r -sv…
Fuzz Evans
  • 2,893
  • 11
  • 44
  • 63
1
vote
1 answer

Makecert still what to use to self sign?

I don't have makecert anywhere on my system despite having 3 Vstudio editions and several SDK's. Can someone please tell me where I can find a copy or how else I should generate a certificate to test SSL in azure?
Nathan C. Tresch
  • 938
  • 10
  • 24
1
vote
1 answer

How to locate new certification using Certutil?

I need to create a new cert and then locate it to obtain the serial number (to use it later to get the public and private keys). If I make a new certificate with makecert utility from Microsoft SDK's like this: makecert -r -pe -a sha1 -n…
ElektroStudios
  • 19,105
  • 33
  • 200
  • 417
1
vote
0 answers

Having trouble generating test X509Certificate

I'm having problems creating a test X509Certificate in my store that I can use in WCF. All of the certificates I create have the same result when I try to use it in the WCF channel factory - "The private key is not present in the X.509…
Random
  • 1,896
  • 3
  • 21
  • 33
1
vote
2 answers

Batch file: Open cmd, run VS Command Prompt, execute Makecert

I need to do this in a batch file: Open cmd Run VS Command Prompt via cmd Execute this command "makecert -sv SignRoot.pvk -cy authority -r sha1 -a -n \"CN=Certificate\" -ss my -sr localmachine certificate.cer" So far, I've done 1 and 2, my problem…
for-each
  • 619
  • 3
  • 7
  • 21
1
vote
2 answers

cryptographic exception unhandled in creating certificate

I am creating this simple console application that will create my own certificate. Here's my code. var fi = new FileInfo("certificate.cer"); if (!fi.Exists) { var startInfo = new ProcessStartInfo(); startInfo.FileName = "makecert.exe"; …
for-each
  • 619
  • 3
  • 7
  • 21
1
vote
2 answers

makecert.exe - parameter list for -ss option?

I want to put my certificate into specific store, but I don't now the name of this store as the parameter for the -ss option of makecert.exe. Where I can find all the possible parameters for each option of this tool? Neither MSDN nor -? (help option…
user808128
  • 511
  • 1
  • 7
  • 24
1
vote
2 answers

Using HTTPS with Monotouch and WCF

we have an application running with monotouch on the iPhone. At the moment we're using BasicHttpBinding to connect to a WCF service. We're now in the process to making the connection secure, using again BasicHttpBinding with…
Kroan
  • 85
  • 5
1
vote
2 answers

Generate certificate on windows azure web or worker role using makecert.exe

We are planning to create and install self-signed certificates on azure web roles. We have a requirement to create certificate on web role itself and installing there. But we cannot find makecert.exe on azure web and worker role. We did remote…
bhavesh lad
  • 1,242
  • 1
  • 13
  • 23
0
votes
3 answers

c# proxy, generating certificate for https traffic?

I'm trying to get this code running with https: http://www.codeproject.com/Articles/93301/Implementing-a-Multithreaded-HTTP-HTTPS-Debugging It says on the bottom of the page that I need to make a new certificate with a private key to get this…
user1015551
  • 197
  • 3
  • 20
0
votes
1 answer

Windows Communication Foundation with x509 and Compact Framework 3.5 Max Keylength

I am using Windows Communication Foundation with x509 message layer security to communicate with a windows compact framework 3.5 device. I am using makecert to create the certificates. Does anyone know what is the largest size of key length I can…
Palm
  • 9
  • 3
1 2 3
8 9