Created
April 4, 2020 16:16
-
-
Save sitsh/45e8e5a3a9b3b9b0aa2591c24c4bd84e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Certify The Web 复制请求成功的证书 pfx 文件 到指定目录的 ps 脚本 | |
param($result) # required to access the $result parameter | |
# object containing all information Certify has about the saved Site | |
$result.ManagedItem | |
# the path to the created/renewed certificate PFX file | |
#$result.ManagedItem.CertificatePath # ex: "C:\ProgramData\Certify\certes\assets\pfx\00f9e07e-83ca-4029-a173-4b704ee78996.pfx" | |
# | |
Copy-Item $result.ManagedItem.CertificatePath -Destination "D:\Certificate" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment