Skip to content

Instantly share code, notes, and snippets.

@vadim-kovalyov
Created May 18, 2016 14:19
Show Gist options
  • Save vadim-kovalyov/271507b8250d70ad2ad4c2511081942e to your computer and use it in GitHub Desktop.
Save vadim-kovalyov/271507b8250d70ad2ad4c2511081942e to your computer and use it in GitHub Desktop.
This script creates development CA and Cert for using with IIS.
REM !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
REM This script must be run as Administrator
REM !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
REM Create a CA Certificate and place it into Trusted Root Certificate authorities storage on local machine.
makecert -n "CN=Development Root CA" -r -pe -a sha512 -len 4096 -cy authority -sr localmachine -ss Root -sk "Development Root CA"
REM Create a dev Certificate and place it into Personal certificates on local machine.
makecert -pe -n "CN=*.dev.local" -a sha512 -len 2048 -sky exchange -eku 1.3.6.1.5.5.7.3.1 -ir localmachine -is Root -in "Development Root CA" -sp "Microsoft RSA SChannel Cryptographic Provider" -sy 12 -sr localmachine -ss My -sk "*.dev.local"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment