From be3e7fe3bed72b61c1751c37b4975b45eee66d7d Mon Sep 17 00:00:00 2001 From: jgaunt Date: Thu, 13 Aug 2020 19:12:25 -0400 Subject: [PATCH] update ca server and removed new line as it wasn't needed --- csr.ps1 | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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