diff --git a/csr.ps1 b/csr.ps1 index 81b7a23..b174b22 100644 --- a/csr.ps1 +++ b/csr.ps1 @@ -16,7 +16,7 @@ if ($hostnames -eq $null) { } $domain = "home.johnhgaunt.com" -$subCA = "`n-----BEGIN CERTIFICATE----- +$subCA = "-----BEGIN CERTIFICATE----- MIIDITCCAqegAwIBAgITZwAAAAPeVCG43Kcf6QAAAAAAAzAKBggqhkjOPQQDBDAc MRowGAYDVQQDExFHQVVOVE9GRkxJTkVDQS1DQTAgFw0yMDA4MTMxMzAyNTdaGA8y MDUwMDgxMzAzMDEyNlowYjETMBEGCgmSJomT8ixkARkWA2NvbTEaMBgGCgmSJomT @@ -86,7 +86,7 @@ foreach ($hostname in $hostnames) { openssl req -new -key $keyFile -nodes -out $csrFile -config $configFile # submit the created CSR - certreq -submit -config "GauntDC01.home.johnhgaunt.com\GAUNTDC01-CA" -attrib "CertificateTemplate:ServerandClient(RSA)" $csrFile $crtFile + certreq -submit -config "gauntonlineca.home.johnhgaunt.com\GauntOnlineCA-CA" -attrib "CertificateTemplate:ServerandClient(RSA)" $csrFile $crtFile } else { # create the ec params @@ -99,7 +99,7 @@ foreach ($hostname in $hostnames) { openssl req -new -key $keyFile -nodes -out $csrFile -config $configFile # submit the created CSR - certreq -submit -config "GauntDC01.home.johnhgaunt.com\GAUNTDC01-CA" -attrib "CertificateTemplate:ServerandClient(ECC)" $csrFile $crtFile + certreq -submit -config "gauntonlineca.home.johnhgaunt.com\GauntOnlineCA-CA" -attrib "CertificateTemplate:ServerandClient(ECC)" $csrFile $crtFile } # add the sub CA to the end of the cert