PRTG Network Monitor: SSL certificate via ACME
Paessler PRTG uses its own PEM file format for the web server instead of the Windows Certificate Store. simple-acme and FairSSL\'s ImportPRTG script automate the whole process: issuance, conversion to PRTG\'s format, backup of the previous files and a restart of PRTG Core Service.
Setup
Step 1: Install simple-acme
Grab FairSSL\'s simple-acme build
(pre-configured with the right ACME settings and ships ImportPRTG.ps1 in the Scripts folder).
Extract to C:\simple-acme on the PRTG Core Server. No separate management host needed -
the PRTG server runs simple-acme itself.
Step 2: Prepare the environment
- Domain is set up for FairSSL AutoDNS.
- Users open PRTG via the DNS name on the certificate (not a local IP).
- Run the command prompt as administrator on the PRTG Core Server.
- ImportPRTG auto-detects the PRTG program directory via the service, the registry and default paths.
Step 3: Issue the certificate and install
Run the command from C:\simple-acme as administrator. simple-acme issues the certificate via
FairSSL AutoDNS, stores the PEM files, runs ImportPRTG, backs up the existing PRTG files, writes
prtg.crt, prtg.key and root.pem and restarts PRTG Core Service.
wacs.exe --verbose --baseuri "https://fairssl.dk/acme" `
--eab-key-identifier YOUR_EAB_KID --eab-key YOUR_EAB_HMAC --accepttos `
--source manual --host "prtg.example.com" --validation none `
--store pemfiles --pemfilespath "C:\simple-acme\Certificates" `
--pemfilesname "prtg-example-com" --friendlyname "fairssl-prtg-cert" `
--installation script --script ".\Scripts\ImportPRTG.ps1" `
--scriptparameters "C:\simple-acme\Certificates prtg-example-com" Step 4: Custom PRTG install path (optional)
If PRTG is on a non-standard path and auto-detection cannot find the cert folder, supply it as the third script parameter:
--scriptparameters "C:\simple-acme\Certificates prtg-example-com \"D:\PRTG Network Monitor\cert\"" Step 5: Verify
- Open the PRTG web interface in a browser and check that the new certificate is served.
- Confirm the PRTG cert folder contains
prtg.crt,prtg.keyandroot.pem. - If remote probes need the web server certificate, copy the same three files into their cert folders.
- Verify publicly with FairSSL\'s SSL scanner.
Troubleshooting
Browser still shows the old certificate
PRTG caches the web server certificate until Core Service restarts. ImportPRTG restarts PRTG Core Service automatically, but if the script ran under an account without service-restart rights, do it manually: Restart-Service PRTGCoreService.
Script aborts: "source key appears encrypted"
PRTG cannot handle passphrase-protected keys. Run simple-acme without --pemfiles-password or remove the encryption before upload. simple-acme writes unencrypted PEM by default, so you only hit this if you actively added a password parameter.
ImportPRTG cannot find the PRTG program directory
Default location is C:\Program Files (x86)\PRTG Network Monitor. If PRTG runs from another folder, pass the path to the cert subfolder as the third script parameter (see Step 4). Also confirm PRTGCoreService is running so the script can look up ImagePath.
Frequently asked questions
Find answers to the most common questions about SSL certificates and FairSSL.
prtg.crt (the certificate), prtg.key (unencrypted private key) and root.pem (CA chain). Our ImportPRTG script writes exactly those three files, backs up the old ones and restarts PRTG Core Service.D:\PRTG Network Monitor), pass the cert folder as the third script parameter to skip auto-detection.Ready to automate PRTG certificates?
Create a free account and issue your first certificate in under 10 minutes.