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

How to run command in the process which is executed with admin rights?

I want to create a self signed certificate and install it using through c# program. I use makecert to make certificate i run it as administrator and i pass command in the ProcessStartInfo.argument but the command doesn't executes what is the problem…
purvang
  • 339
  • 4
  • 6
  • 15
0
votes
1 answer

How can use a X.509 certificate created on another computer?

I need to encrypt an XML file with a x509 certificate on one computer and be able to decrypt it with the same certificate on another computer. It doesn't seem to work for me like Microsoft suggests:…
Vikey
  • 1
0
votes
2 answers

makecert tool issue

I am confused about the following concepts in makecert tool. Especially about what means location (-sr parameter) and store (-ss parameter). I read and get my confusion from this link, I tried to find tutorials about what means "location" and…
George2
  • 44,761
  • 110
  • 317
  • 455
0
votes
1 answer

Upgrading from makecert.exe to CertEnroll - issues with certificate trust

I have an app that up until now used makecert.exe to generate self certificates. However as makecert does't have the ability to add a SubjectAltName field, I am needing to migrate the code to certenroll.dll This is the original makecert code: public…
James
  • 656
  • 2
  • 10
  • 24
0
votes
1 answer

Create x509 Certificate issued by CA from command Prompt

I want to generate a X509 cert which should be issued by Root Certificate Authority from command prompt. I tried tools like makecert, selfssl7 but all they are doing is generating a self signed cert. How can we generate a cert that is issued by root…
bluwater2001
  • 7,829
  • 5
  • 24
  • 21
0
votes
1 answer

makecert and DSA, DH

Is it possible to create a X.509V3 certificate that contains Diffie-Hellman public key and sign it using DSA or ECDSA algorithm ? I hope doing this using makecert Thank you a lot
Mely
  • 317
  • 2
  • 4
  • 16
0
votes
0 answers

How to install self signed certificate that was created by Makecert.exe in windows for IIS Express?

I'm trying to add https to my local development environment in IIS express for a custom domain. I first created new certificate using the following command in a elevated developer command prompt Makecert -r -pe -n CN="mycustomdomain.com" -a sha512…
Luis Averhoff
  • 887
  • 2
  • 11
  • 22
0
votes
0 answers

Fiddler generated certificate has invalid digital signature

Fiddler: v5.0.20182.28034 for .NET 4.6.1 Cert Generator: Tried both CertEnroll & MakeCert Machine: Windows 10 Browser: Chrome I have tried installing fresh fiddler also but no success. I even installed and reinstalled Fiddler Root Cert.
coder
  • 65
  • 2
  • 8
0
votes
1 answer

Visual studio not accepting makecert certificate for Xamarin UWP app

I have a Xamarin application that I also want to deploy on windows UWP. I tried to create a self-signed certificate with makecert.exe but Visual studio won't accept it. I followed this guide from microsoft. This is my command: makecert.exe -n…
findusl
  • 2,454
  • 8
  • 32
  • 51
0
votes
0 answers

How to use Self Created Certificate in Visual Studio

So as in the Titel said, my Problem is that i cant use my self Signed Cert to sign the app via Visual Studio. I created 2 Certificates, one via MakeCert.exe and one in Powershell via SelfSignedCertificates as Described in here MSDocs(Example 7). I…
0
votes
0 answers

x509 Certificate for localhost in windows for using AuthenticateAsServer()

hi I want to Create X509Certificate To Use in SslStream.AuthenticateAsServer() on windows 10 loopbak. I try to Create Certificate with OpenSsl and Makecert Script but certificates not work. please help me. my Code : X509Store store = new…
ali mahdavi
  • 1
  • 1
  • 4
0
votes
1 answer

MAKECERT and duplicate Public Keys

I hope this question makes sense. But let's say I create a Certificate with MAKECERT.EXE like this: makecert -r -sr LocalMachine -ss my -a sha256 -sky exchange -n "CN=Hello World" Now let's say I run this on two different (Windows) machines.…
Neil Weicher
  • 2,370
  • 6
  • 34
  • 56
0
votes
1 answer

Driver signing: how to get MakeCert test certificates to work on x64

I'm trying to load a kernel driver that's been signed with a certificate generated by MakeCert.exe. I followed the instructions given in the Windows Driver Kit documentation: Sign the driver with MakeCert.exe Verify the signature with SignTool…
Hydrargyrum
  • 3,378
  • 4
  • 27
  • 41
0
votes
0 answers

recreate a certificate with the same credentials with makecert

I have a question, I have created my own certificate with this command : 1) makecert -r -pe -n "CN=MyTest" -sky exchange -sv MyTest.pvk MyTest.cer 2) pvk2pfx -pvk MyTest.pvk -spc MyTest.cer -pfx MyTest.pfx So I have created a simple console…
Angelo
  • 101
  • 1
  • 9
0
votes
1 answer

Generate certificate with custom encoding algorythm

MakeCert.exe certificate generation utility (https://msdn.microsoft.com/en-us/library/bfsktky3(VS.100).aspx) has -a (algorithm) parameter using for specifying the signature algorithm. Algorithm must be md5, sha1 (the default), sha256, sha384, or…
1 2 3
8 9