update ca server and removed new line as it wasn't needed

This commit is contained in:
2020-08-13 19:12:25 -04:00
parent b8478e615e
commit be3e7fe3be

View File

@@ -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