This is a collection of scripts to automatically install a Let's Encrypt certificate for PRTG.
Post request script to install a Let's Encrypt certificate obtained with Certify the Web in PRTG.
- PowerShell 5.0
- You should already have Windows PowerShell 5.1 if you're running Windows 10 Anniversary Update or Windows Server 2016.
- PSPKI module that is availabe in the PowerShell Gallery.
- Tested/Verfied with Certify the Web version 4.1.6.0.
- Tested/Verfied on Server 2012 R2 with PowerShell 5.
- Open PowerShell as an administrator and run Install-Module PSPKI
- Save the script to a directory (Example: E:\Scripts\Certify-PRTG\Certify-PRTG.ps1)
- Verify that $PRTGCertRoot variable matches your PRTG installation.
The script must be configured as a Deployment Task in the Certify GUI.
- Configure obtaining your certificate in Certify.
- Deployment Mode: Certificate Store Only is the only option I've tested.
- Under Deployment Tasks, add a Run Powershell Script task.
- Only trigger script on success.
- Use a security principal with appropiate permissions for your environment.
- Pass Result as First Argument must be checked.
- Request/Renew certificate as normal. If successful, cert will be added to PRTG and PRTG will be restarted.
A script for WACS is on my todo list. https://github.com/PKISharp/win-acme