How to use makecert.exe to create a self-signed test certificate that can be used with .NET

by alex 6. September 2011 09:50

Problem: Special options must be specified with makecert.exe, to create a self-signed certificate that can be used with .NET.

Solution: The following command can be used to create and import a self-signed SSL test certificate: makecert -r -pe -n "CN=www.yourserver.com" -b 01/01/2000 -e 01/01/2036 -eku 1.3.6.1.5.5.7.3.1 -ss my -sr localMachine -sky exchange -sp "Microsoft RSA SChannel Cryptographic Provider" -sy 12

Tags:

Development

Comments are closed

About the author

Alexander Schmidt. Software engineer working on cutting-edge project.

Month List

Blogroll

Download OPML file OPML