Browse Source

Added full chain, with client cert first

master
Uncled1023 1 year ago
parent
commit
657be80d58
1 changed files with 1 additions and 0 deletions
  1. 1
    0
      Powershell/exportLetsEncryptCerts.ps1

+ 1
- 0
Powershell/exportLetsEncryptCerts.ps1 View File

@@ -15,6 +15,7 @@ if ($result.IsSuccess) {

#Extract the public key
& $openssl pkcs12 -in $pfxFile -out $pemFile -password pass:$pfxPass -nokeys -clcerts
& $openssl pkcs12 -in $pfxFile -password pass:$pfxPass -nokeys -cacerts -chain | Out-File -filepath $pemFile -Append -Encoding ASCII
#Get full PEM with keys
& $openssl pkcs12 -in $pfxFile -out $encKeyFile -password pass:$pfxPass -nocerts -nodes

Loading…
Cancel
Save