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
13
votes
2 answers

How to create certificate authority certificate with makecert?

I'm trying to create a website which uses SSL with a self-signed certificate. Here's what I do: Create authority certificate: makecert -n "CN=root signing authority" -r -sv root.pvk root.cer Create target certificate makecert -r -pe -n…
Arsen Zahray
  • 24,367
  • 48
  • 131
  • 224
12
votes
2 answers

MakeCert - is it possible to change the key size?

When I generate a certificate using MakeCert.exe, I want to change the key size from 1024 to 2048. Is this possible? Or do I need to setup a certificate authority (CA)?
Rohan West
  • 9,262
  • 3
  • 37
  • 64
11
votes
0 answers

File not found error comes when trying to run pvk2pfx.exe file

I am trying to create simple client side certificate and for that I following below link... How to create client certificate I have installed SDK on machine, and I have successfully run below two commands. makecert.exe -r -n "CN=My Personal CA" -pe…
9
votes
2 answers

How to run makecert.exe without a GUI?

I recently came across a problem generating self-signed certificates in an automated fashion. Anytime I run makecert.exe I get a pop-up window for a password for the certificate. However, these certificates will never be distributed, so I don't need…
Earlz
  • 62,085
  • 98
  • 303
  • 499
8
votes
1 answer

How to use makecert to create a X509 certificate accepted by WCF

Can anyone provide me with an example on how to create a self signed certificate, which would be accepted by the following code: ServiceHost svh = new ServiceHost(typeof(MyClass)); var tcpbinding = new…
Arsen Zahray
  • 24,367
  • 48
  • 131
  • 224
8
votes
2 answers

certificates with SDK tools (makecert, pvk2pfx)

I need to make two certificates: CA sert and Server cert. I use this commands. makecert -r -pe -n "CN=CACert" -a sha1 -sky signature -cy authority -sv CACert.pvk CACert.cer certutil -addstore Root TGCA.cer makecert -pe -n "CN=ServerCert" -a sha1…
8
votes
4 answers

Can't create a key of the Subject <'MyCAContainerName'>

using makecert i have written the commade: makecert -pe -n "CN=Myauthority" -sr localmachine -ss Root -a sha256 -cy authority -r -sk MyCAContainerName -sky exchange -sp "Microsoft RSA Schannel Cryptographic Provider " -sy 12 -len 2048…
Mely
  • 317
  • 2
  • 4
  • 16
8
votes
2 answers

How configure SSL for an IIS Express site that uses multiple hostnames?

My web application project encompasses multiple web sites served under the umbrella of a single IIS Express site. I succeeded in following Scott Hanselman's excellent blog post, and IIS Express successfully serves both http://foo.local and…
Bryan
  • 1,431
  • 1
  • 17
  • 22
8
votes
1 answer

Can I create a self-signed SSL certificate for Windows Azure using only makecert.exe?

Background: I need to test an https endpoint for a WebRole on Windows Azure. For that I need to upload a self-signed certificate, add the certificate's thumbprint to the WebRole's configuration and finally associate the endpoint with that…
Michiel van Oosterhout
  • 22,839
  • 15
  • 90
  • 132
7
votes
1 answer

makecert error: Can't access the key of the subject

I have a powershell script that I want to run on 2 different stand-alone machines. On Windows 8.1 with the SDK installed, I issue the command: makecert -r -pe -n "CN=My Root Authority" -ss CA -sr CurrentUser ^ -a sha1 -sky signature -cy…
Geoff Schultz
  • 141
  • 1
  • 10
7
votes
0 answers

makecert - create a certificate with issuer name

I am trying to create a certificate using the MakeCert so that the "Issued By Name" and "Issued To Name" show up in the "Issued by" column and "Issued To" columns respectively in the certificate manager. makecert -ss My -n "CN=Issued By Name" -cy…
6
votes
2 answers

Import Signing Certificate is Failing

I am attempting to create a certificate with a private key (.pfx) that I can use within my application to create and verify digital signatures. I want to install this certificate into the certificate store (Windows). I am having issues importing the…
6
votes
1 answer

Makecert.exe error

I am trying to use Makecert.exe to create a signing certificate that I can use with our internal VS.NET applications, to be deployed using Clickonce on our local network I have been following the MSDN guide MSDN: Certificate Expiration in ClickOnce…
5
votes
2 answers

Create x509 certificate with openssl/makecert tool

I'm creating a x509 certificate using makecert with the following parameters: makecert -r -pe -n "CN=Client" -ss MyApp I want to use this certificate to encrypt and decrypt data with RSA algoritm. I look to generated certificate in windows…
Zé Carlos
  • 3,627
  • 5
  • 43
  • 51
5
votes
1 answer

makecert requesting password

Given the following powershell function: function CreateRootCertificate($certificateName, $path, $certificatePassword){ makecert -r -pe -n "CN=$certificateName" -sky exchange $path\$certificateName.cer -sv $path\$certificateName.pvk …
Mick Walker
  • 3,862
  • 6
  • 47
  • 72
1
2
3
8 9