Skip to content

Post request script to install a Let's Encrypt certificate obtained with Certify the Web in PRTG.

License

Notifications You must be signed in to change notification settings

astrugatch/LetsEncrypt-PRTG

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Let's Encrypt PRTG

This is a collection of scripts to automatically install a Let's Encrypt certificate for PRTG.

Certify the Web: Certify-PRTG.ps1

Post request script to install a Let's Encrypt certificate obtained with Certify the Web in PRTG.

Requirments

  • 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.

Installation

  1. Open PowerShell as an administrator and run Install-Module PSPKI
  2. Save the script to a directory (Example: E:\Scripts\Certify-PRTG\Certify-PRTG.ps1)
  3. Verify that $PRTGCertRoot variable matches your PRTG installation.

Running Certify-PRTG.ps1

The script must be configured as a Deployment Task in the Certify GUI.

  1. Configure obtaining your certificate in Certify.
  2. Deployment Mode: Certificate Store Only is the only option I've tested. Certify Deployment Mode
  3. Under Deployment Tasks, add a Run Powershell Script task. Select Run Powershell Script
  4. Only trigger script on success. Task General Settings
  5. Use a security principal with appropiate permissions for your environment.
  6. Pass Result as First Argument must be checked.
  7. Request/Renew certificate as normal. If successful, cert will be added to PRTG and PRTG will be restarted. Task Parameters

Windows ACME Simple (WACS)

A script for WACS is on my todo list. https://github.com/PKISharp/win-acme

About

Post request script to install a Let's Encrypt certificate obtained with Certify the Web in PRTG.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PowerShell 100.0%