Skip to content

Instantly share code, notes, and snippets.

@sitsh
Created April 4, 2020 16:16
Show Gist options
  • Save sitsh/45e8e5a3a9b3b9b0aa2591c24c4bd84e to your computer and use it in GitHub Desktop.
Save sitsh/45e8e5a3a9b3b9b0aa2591c24c4bd84e to your computer and use it in GitHub Desktop.
#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