update ca server and removed new line as it wasn't needed
This commit is contained in:
6
csr.ps1
6
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
|
||||
|
||||
Reference in New Issue
Block a user