This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#.Synopsis | |
# Generate a self-signed root certificate and then generate an SSL certificate signed by it. | |
#.Description | |
# Generates a self-signed root certificate and an SSL certificate signed by it. | |
# Puts the root public key in a .pem file for adding to PHP's CAcert.pem | |
param( | |
# Used as the CN for the Root certificate | |
$RootName = "NO LIABILITY ACCEPTED - Test Root $(get-date -f "yyyy-MM-dd")", | |
# Used as the CN for the SSL certificate | |
$Subject = "${Env:ComputerName}.${Env:UserDnsDomain}", |