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

Certificate issuer key size error?

I want to create an certificate, and i have this error: How i can change the Issuer key size? Code: makecert.exe ^ -n "CN=MyName"^ -r ^ -pe ^ -a sha512 ^ -$ individual ^ -len 4096 ^ -cy authority ^ -sv MyName.pvk…
user7923477
0
votes
1 answer

How to make a certificate that simulates a smart card for IIS site requiring client authentication

I have a project that is a website authenticated with a smart card (DoD CAC). I need to make multiple test certificates that the site can use for client authenticating the session. It seems possible to have a non-smartcard-based certificate that a…
JustSomeGuy
  • 163
  • 2
  • 5
0
votes
1 answer

How to Create a Certificate using MakeCert.exe with existing CA

I need a Certificate for my local development purpose, the certificate should have a valid Issuer. I tried the following blog to create a Certificate. In the blog I found a tool MakeCert.exe to create a Certificate but I can't able to bind any…
B.Balamanigandan
  • 4,713
  • 11
  • 68
  • 130
0
votes
1 answer

system.security.cryptography.x509certificates can not verify

Facing a really strange issue X509Certificate2.Verify() returning false for a valid certificate. Maybe some has already faced this strange scenario before and can shine some light on it. I am using makecert to generate client certificates for…
code
  • 177
  • 1
  • 15
0
votes
1 answer

How to set the "Not After" of validity period when I create the X.509 certificate using makecert.exe

I create a X.509 certificate using makecert.exe. And then I find the validity period of the certificate is from 2016/11/1 to 2040/01/01. How to set the end of the validity period?
Zoe.D
  • 15
  • 4
0
votes
3 answers

WCF Message Level Security using Certificate (X.509) Message Signed and Encrypted

I have a common use case to implement a web service (WCF) and a web client which is consuming this web service. Both Client and Service are sending and receiving Signed and Encrypted messages (Message Level Security). I can have multiple clients…
sezanawa
  • 85
  • 1
  • 7
0
votes
0 answers

Understanding X.509 certificate and the makecert.exe command

I've used the makecert.exe to create a certificate, but I'm not sure what exactly is happening, or what some of the commands mean. This is my command: makecert -r -pe -n "CN=Test certificate" -b 10/22/2015 -e 10/22/2016 -ss my -len 2048 To make…
Detilium
  • 2,868
  • 9
  • 30
  • 65
0
votes
1 answer

Unable to create a .pfx file

I have created the .pvk and .cer files using the makecert.exe (on commandline) as per - https://msdn.microsoft.com/en-in/library/ff699202.aspx In my folder the .pvk and .cer files are available. However, when I run the pvk2pfx utility, the .pfx is…
bsrcube
  • 83
  • 1
  • 7
0
votes
0 answers

makecert.exe - WS2012 fail to acquire a security provide from the issuer's certificate - Failed

I'm trying to create a new sel certificate in order to specify a duration different than the one created by default from an application. Using the command: makecert.exe -b 10/10/2015 -m 36 -n "CN=MYSERVER.domain.com" -sk "MYSERVER.domain.com" -sky…
Luca
  • 131
  • 3
  • 15
0
votes
1 answer

Powershell executing makecert with variables giving Too many parameters error

The following command worked in powershell: $currentDirectory = Split-Path $Script:MyInvocation.MyCommand.Path & "$currentDirectory\Makecert\makecert.exe" –sv actualCnName.pvk -n "cn=actualCnName" actualCnName.cer -r -eku 1.3.6.1.5.5.7.3.1 But I…
Romonov
  • 8,145
  • 14
  • 43
  • 55
0
votes
0 answers

error trying to sign a file in java using a MakeCert.exe generated DSA private key

I need to sign a large file in java, using a MakeCert.exe (from from the Windows SDK 8.) generated DSA private key. makecert.exe -sy 13 -sv C:\SignFile3\dsasign.pvk -pe -r -n "CN=LGS CA" C:\SignFile3\dsasign.crt The pvk is the private key I want to…
Bertrand_Szoghy
  • 880
  • 1
  • 11
  • 26
0
votes
1 answer

Signing Credentials - X509 Certificate with Private Key - SAML2

I know hardly anything about certificates, with regards that there's a CA, public and private key, and I'm learning as I go. I am creating an SSO login using SAML 2, which I have working with the excecption of adding the
Rob Scott
  • 7,921
  • 5
  • 38
  • 63
0
votes
2 answers

Nodejs errors out with unable_to_verify_leaf_signature for some certificates

I am trying to work with nodejs which sends some data to other servers. Nodejs is communicating with the other servers on https and nodejs verifies the other servers' certificates with the root certificates available. The requirement is the nodejs…
Surender Panuganti
  • 333
  • 1
  • 5
  • 14
0
votes
1 answer

SDK is installed and still get 'The term 'makecert' is not recognized' error

Running win8.1 rtm (MSDN). I've downloaded the sdk to 'C:\Users\foo\Downloads\Windows Kits\8.1\StandaloneSDK'. No errors the first time I ran it ... attempting to re-run tells me all features are uptodate. I've re-booted. Attempting to execute…
justSteve
  • 5,444
  • 19
  • 72
  • 137
0
votes
1 answer

SSL with WCF not working! How to Debug

I am dabbling with WCF and SSL and have hit a bit of a problem. I have a self-hosted WCF service and a basic client which connects to request a token. I have it set up on my development machine it appears to communicating over SSL just fine. But…
PaulMcCaffery
  • 145
  • 1
  • 9
1 2 3
8
9