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

Create key pair for BizTalk AS2 connection

I need to create an AS2 connection in BizTalk Server 2006 R2 to communicate with a business partner. I've worked with BizTalk AS2 config before and the BizTalk docs have pretty good walkthroughs about how to configure everything, but they don't talk…
nlawalker
  • 6,364
  • 6
  • 29
  • 46
2
votes
1 answer

How to import a certificate with private key on Certificate Management Tool

By now the only way i'm able to import a certificate on Certificate Management Tool is by having a .pfx file. I'm using Makecert.exe utility to generate certificates. First Step - I generate a Certification Authority by using the following…
bruno.bologna
  • 475
  • 4
  • 14
2
votes
2 answers

Why does makecert not make a *valid* certificate?

I want to create an X509 certificate for testing purposes. This certificate has to be shared by 3 developers on their local machines (i.e. all share the same certificate so we can use the same thumbprint). So the private key in this certificate has…
willem
  • 25,977
  • 22
  • 75
  • 115
2
votes
1 answer

Using MakeCert to Create a Valid Production Client Certificate to Authenticate WCF

I purchased a real SSL certificate to authenticate my computer and the domain I am hosting some WCF services under. How can I use MakeCert to create a client certificate signed by this authentic certificate to use on client computers to authenticate…
test
  • 2,589
  • 2
  • 24
  • 52
1
vote
1 answer

Make exportable private key with makecert

I need to generate a cerificate for my service given a trusted root certificate. I tried to generate a certificate with private key: makecert -pe -sk Esb -iv root.pvk -n "CN=localhost" -ic root.cer -sky exchange -ss my serviceCert.cer This installs…
javros
  • 825
  • 10
  • 31
1
vote
0 answers

Sign a certificate with key from SmartCard on Windows

I have a [root] certificate with private key stored on a smart card. I want to create another certificate signed with the root essentially becoming a ca. I found several ways to do something similar, however, all the examples have root certificate…
Alex Gdalevich
  • 685
  • 7
  • 15
1
vote
1 answer

How do I code makecert "-sky exchange" and "-sky signature" in C#

I need to programatically create the equivalant keys in a .NET application... makecert -r -pe -a sha1 -n "CN=MyName" -ss my -sr CurrentUser -sky exchange makecert -r -pe -a sha1 -n "CN=MyName" -ss my -sr CurrentUser -sky signature The output will…
makerofthings7
  • 60,103
  • 53
  • 215
  • 448
1
vote
1 answer

Makecert and the asymmetrics keys

Is it possible to use makecert in order to generate ECRSA, Diffie-Hellman, EC Diffie-Hellman asymmetric public keys and DSA, ECDSA for the private keys.
Mely
  • 317
  • 2
  • 4
  • 16
1
vote
2 answers

The certificate 'CN=ds.com' must have a private key. The process must have access rights for the private key

After searching a lot and trying other's answers, every solution - still without success Short preface : response request from my machine to itself - does work with certificate. From another computer to my machine - it doesn't. In my machine-…
Royi Namir
  • 144,742
  • 138
  • 468
  • 792
1
vote
1 answer

Adding a strong name key (.pfx) file to a project programmatically

I am able to create a self signed certificate and generate a .pfx file from code using makecert and pvk2pfx. I can edit the project file programmatically (using regex, although an xmlreader implementation might also work and perhaps be safer) to…
NullError
  • 71
  • 2
  • 11
1
vote
1 answer

Invalid CN error when trying to enroll device using IoT Hub Device Provisioning Service

I am trying to register a fake device with Azure IoT DPS. This is my first attempt using the DPS. I have added X.509 self signed certificates for the following and got them verified by Azure using 'proof of possession' technique. The IoT Hub The…
samiksc
  • 167
  • 10
1
vote
0 answers

How do I re-sign .exe application? Need steps to generate .xml and certificate

I have customising my version of the Ammyy Admin executable (AA_V3.exe) available from http://ammyy.com. I have bought a license that allows me to customise this file which I have successfully done. I am still getting an unsigned application window…
user1222302
  • 31
  • 2
  • 7
1
vote
1 answer

How to allow commas in makecert.exe when creating a certificate?

I try to use makecert.exe to create a certificate but it shows like this: C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\Bin>makecert -ss TESTCOM -n CN="TESTCOM FOR Co.,Ltd." -sv E:\markcab\TEST.pvk -r E:\markcab\TEST.cer…
Zoe.D
  • 15
  • 4
1
vote
3 answers

Create and sign certificate

I'm developing an API server that will take input from user for following information "CN=ABC123,O=DEF,L=XYZ,S=CA,C=US,E=info@abc.com" and create a signed developer's certificate using our root certificate. For making certificates using…
riksof-zeeshan
  • 531
  • 9
  • 27
1
vote
1 answer

Makecert: a certificate basic constraints extension has not been observed

I'm trying to create a self sign certificate by makecert Here is what I do: makecert -n "CN=TuyenTk CA, C=VN, ST=Hanoi, L=Hoan Kiem" -cy authority -h 1 -a sha1 -sv "D:\TuyenTk CA.pvk" -r "D:\TuyenTk CA.cer" makecert -n "CN=TuyenTk" -ic "D:\TuyenTk…
NoName
  • 7,940
  • 13
  • 56
  • 108
1 2 3
8 9