We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent dcc7fdd commit 6003a0fCopy full SHA for 6003a0f
1 file changed
dockertls/generate-certs.ps1
@@ -42,7 +42,7 @@ function createCerts($serverCertsPath, $serverName, $ipAddresses, $clientCertsPa
42
& openssl req -subj "/CN=$serverName/" -sha256 -new -key server-key.pem -out server.csr
43
44
Write-Host "`n=== Signing Server request"
45
- "subjectAltName = " + (($ipAddresses.Split(',') | ForEach-Object { "IP:$_" }) -join ',') + ",DNS.1: $serverName" | Out-File extfile.cnf -Encoding Ascii
+ "subjectAltName = " + (($ipAddresses.Split(',') | ForEach-Object { "IP:$_" }) -join ',') + ",DNS.1:$serverName" | Out-File extfile.cnf -Encoding Ascii
46
cat extfile.cnf
47
& openssl x509 -req -days 365 -sha256 -in server.csr -CA $Global:caPublicKeyFile -passin $Global:caPrivateKeyPass -CAkey $Global:caPrivateKeyFile `
48
-CAcreateserial -out server-cert.pem -extfile extfile.cnf
0 commit comments