12

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)?

Peter Mortensen
  • 30,738
  • 21
  • 105
  • 131
Rohan West
  • 9,262
  • 3
  • 37
  • 64
  • See [my answer](http://stackoverflow.com/a/12108020/886319) to an other topic which allow you to ask for a 2048 bits certificate to a third-party CA using certreq. – gyzpunk Aug 24 '12 at 11:01

2 Answers2

12

Here the following syntax is used:

makecert -pe -ss MY -$ individual -n "CN=your name here" -len 2048 -r

Sorry I cannot test it, since I don't have Makecert.

Peter Mortensen
  • 30,738
  • 21
  • 105
  • 131
RSabet
  • 6,130
  • 3
  • 27
  • 26
  • I was able to use makecert from VS2010 to specify `-len 2048` param – Eugene S. Dec 07 '11 at 15:53
  • 3
    The claim in another answer is that "-len 2048" only works if your CRYPTO\RSA keys folder does not already have a 1024bit key cached from a previous copy of the certificate; manual deletion of the key is required. This matches my observations. – EricLaw Mar 26 '14 at 16:28
1

A description of Makecert options can be found at MSDN, but I didn't see an explicit one for setting the key length.

Peter Mortensen
  • 30,738
  • 21
  • 105
  • 131
ISW
  • 11,110
  • 3
  • 25
  • 27