PowerShell: Export and import an SSL certificate
Several years ago, I used certutil.exe in a script run through SCCM to import a certificate.
More recently, while setting up ADFS and WAP servers, I needed to export and import a certificate with its private key many times. Automating the process helped keep the servers and services aligned on the same certificate. I used remote PowerShell sessions to speed up the work.
Export the certificate
| |
Import the certificate
| |
The current script does not copy the exported PFX file to the remote server's C:\ volume. That file still needs to be copied, although this step could also be automated with PowerShell.
1 comment
Comments from the original WordPress site, kept read-only.
thank you verry much all