Free ACME scripts for certificate renewal
FairSSL's own installation scripts for certificates from any ACME CA: one script per server, under the Apache-2.0 licence. Each page has the file, its SHA-256 and the setup with your ACME client.
The scripts are made for simple-acme and lego, which FairSSL, the company behind sslbrain, sponsors.
Windows (PowerShell, with simple-acme)
- AD FS WAP adfs-wap-1.2.ps1
Install / enable an ACME certificate on Microsoft AD FS or Microsoft Web Application Proxy (WAP) from simple-acme. Detects which of the two roles this server runs and applies the matching installation.
- Dynamics CRM dynamics-crm-1.1.ps1
Install an ACME certificate on Microsoft Dynamics CRM 2016 / Dynamics 365 Customer Engagement (on-premises) 9.x with claims-based authentication and Internet-Facing Deployment (IFD), from simple-acme.
- Dynamics NAV dynamics-nav-1.1.ps1
Deploys a simple-acme certificate to Microsoft Dynamics NAV / Business Central (on-premises) servers. Updates CustomSettings.config for every running BC instance (optionally filtered by name) and optionally restarts the affected instances.
- Exchange exchange-3.2.ps1
Install / enable an ACME certificate on Microsoft Exchange from simple-acme, automatically and on any Exchange server (Edge, Mailbox, CAS, MultiRole; 2013, 2016, 2019, Subscription Edition; domain-joined or workgroup).
- FortiADC fortiadc-1.9.ps1
Installs a simple-acme certificate on a FortiADC virtual server through its client SSL profile over REST.
- FortiGate fortigate-2.6.ps1
Installs a simple-acme certificate on FortiGate over SSH, in the background, and keeps trying until FortiGate serves it.
- FortiMail fortimail-2.5.ps1
Installs a simple-acme certificate on FortiMail over SSH, in the background, and keeps trying until FortiMail serves it.
- FortiManager fortimanager-1.8.ps1
Installs a simple-acme certificate as FortiManager's own admin HTTPS certificate over JSON-RPC.
- FortiNAC fortinac-1.9.ps1
Installs a simple-acme certificate and chain on one FortiNAC REST v2 target.
- FortiWeb fortiweb-1.7.ps1
Installs a simple-acme certificate on a FortiWeb server policy over REST v2.0.
- NetScaler netscaler-1.1.ps1
Installs a simple-acme PEM certificate on Citrix NetScaler / ADC.
- Palo Alto paloalto-1.5.ps1
Installs a simple-acme certificate on a Palo Alto firewall or Panorama over the XML API, in the background, and keeps trying until the firewall serves it.
- PRTG prtg-1.2.ps1
Deploys Simple-ACME PEM files to PRTG Network Monitor.
- RDS rds-1.2.ps1
Installs a simple-acme certificate on every Remote Desktop Services role on this server: RD Gateway, the RDP listener, RD Publishing, RD Web Access, RD Redirector, the RD Web Client and the RD Connection Broker deployment.
- Result notification result-notification-3.9.ps1
Reports the result of each simple-acme run (the certificate order and its installation) to a report address: in FairSSL's download your FairSSL control panel, so you can see status, installation errors and expiry for every server in one place and be alerted when a renewal or an installation fails.
- SQL Server sql-server-1.1.ps1
Installs a simple-acme certificate on one Microsoft SQL Server instance and restarts that instance only.
- Tomcat tomcat-1.1.ps1
FairSSL deployment script for Apache Tomcat on Windows.
- Windows Custom windows-custom-1.2.ps1
Template deployment script for custom Windows services.
- Windows Distribute windows-distribute-1.2.ps1
Install the issued certificate locally and distribute it to additional Windows servers.
Linux (bash, with lego)
- FortiGate (Linux) fortigate-linux-1.5.0.sh
Installs the certificate that lego keeps on this server on a FortiGate, over SSH, and keeps trying until it is installed. Reports every result when it has a report address.
- FortiMail (Linux) fortimail-linux-1.2.0.sh
Installs the certificate that lego keeps on this server on a FortiMail, over SSH, and keeps trying until it is installed. Reports every result when it has a report address.
Works with these ACME servers
Every script page shows how to choose each of them.
- Let's Encrypt
https://acme-v02.api.letsencrypt.org/directory - Google Trust Services
https://dv.acme-v02.api.pki.goog/directory - ZeroSSL
https://acme.zerossl.com/v2/DV90 - acme.sslbrain.com
https://acme.sslbrain.com/acme/directory
Licence and reports
The scripts are free to use, change and share under the Apache License 2.0, copyright FairSSL A/S. The Windows scripts run as installation scripts in simple-acme (formerly win-acme, Apache-2.0) and work with win-acme too; the Linux scripts run from lego's deploy hook and work with certbot and acme.sh too.
A script that can report sends nothing until you give it your own receiver's address. The report format describes what it sends.
Writing a guide or answering a question? Link to this page instead of copying the script: it always has the newest version and its SHA-256.
[Free ACME scripts for certificate renewal](https://sslbrain.com/free-acme-scripts/) <a href="https://sslbrain.com/free-acme-scripts/">Free ACME scripts for certificate renewal</a> One script per server, or sslbrain does it for all your servers without scripts.
Feedback and improvements are welcome: info@fairssl.dk