Setting up IONOS SSL certificates on servers using the ACME protocol
Please use the “Print” function at the bottom of the page to create a PDF.
Valid for: VPS, Cloud Servers, and Dedicated Servers running Linux or Windows
The ACME (Automatic Certificate Management Environment) protocol is used for the automatic issuance and management of SSL/TLS certificates. This article shows you how to set up SSL certificates on your server with the IONOS ACME server: on Linux servers with Certbot and on Windows servers with win-acme.
Note
The IONOS ACME server currently supports Domain Validation (DV) certificates only. OV and EV certificates cannot be issued via ACME.
Requirements
To use the IONOS ACME server, the following requirements must be met:
You have root or sudo privileges on your Linux server, or administrator access to your Windows server (for example, via RDP).
Your domain uses the IONOS name servers.
Your IONOS account contains an available DV certificate. This can be a free or a paid DV certificate.
The domain for which the certificate is to be issued points to the public IP address of your server via an A or AAAA record.
The server can be reached from the internet.
If you use Certbot with the Nginx or Apache plugin, the web server is installed and configured correctly.
If you use win-acme with IIS, an IIS website or IIS binding already exists for the domain.
Step 1: Generate an External Account Binding (EAB)
Before you can issue a certificate via the IONOS ACME server, you must first create the access credentials in your IONOS account.
- Open SSL certificate management in your IONOS account.
- In the Portfolio section on the right, click ACME External Account Bindings.
- Click Create Account.
- Enter a name of your choice in the Account Name field and click Continue.
- Note down the Key ID and the HMAC Key that are displayed.
- Tick the I have copied the HMAC Key checkbox and click Got it!.
Please Note
For security reasons, the HMAC Key is only displayed once, when it is generated. Store the Key ID and the HMAC Key in a safe place. Do not disclose them to third parties, and do not store them unprotected in scripts or publicly accessible files.
Step 2: Install the client and obtain a certificate
Note
If your domain currently uses a manually installed certificate and you want to switch to ACME, have the certificate issued again once via your ACME client. We strongly recommend that you back up your current web server configuration beforehand.
The next steps depend on the operating system of your server:
- Linux: Option A (Certbot)
- Windows: Option B (win-acme)
Option A: Setting up Certbot on Linux servers
Log in to your Linux server via SSH.
Install Certbot and the plugin for your web server as described in the official Certbot instructions.
In the following commands, replace example.com with your domain, and $eab_kid and $eab_key with the Key ID and the HMAC Key from Step 1.
Note
The -m "" parameter specifies an email address. The IONOS ACME server does not use it, so you can leave it empty.
Example for Nginx
certbot --nginx \
--server https://acme.ionos.com/directory \
-m "" \
-d example.com \
--eab-kid $eab_kid \
--eab-hmac-key $eab_key
Example for Apache
certbot --apache \
--server https://acme.ionos.com/directory \
-m "" \
-d example.com \
--eab-kid $eab_kid \
--eab-hmac-key $eab_key
Standalone mode
Use this mode if you only want to obtain the certificate without Certbot changing your web server configuration.
certbot certonly --standalone \
--server https://acme.ionos.com/directory \
-m "" \
-d example.com \
--eab-kid $eab_kid \
--eab-hmac-key $eab_key
After the certificate has been issued, you will usually find the certificate files in the following directory:
/etc/letsencrypt/live/example.com/
The most important files are:
fullchain.pem
privkey.pem
If you use standalone mode, you then need to add these files to your web server configuration manually.
Option B: Setting up win-acme on Windows servers
On Windows servers, you can use win-acme. With IIS, win-acme can request and install certificates and update the IIS bindings automatically.
- Download win-acme from the official website: https://www.win-acme.com/
- Extract the archive on your Windows server.
Interactive setup
- Open PowerShell as an administrator.
- Go to the directory that contains wacs.exe.
To start win-acme in interactive mode with the IONOS ACME server, run the following command:
.\wacs.exe --baseuri https://acme.ionos.com
- In the win-acme menu, select N: Create certificate (default settings).
- Select your website or the IIS binding you want.
- When win-acme asks for the Key identifier and the Key (base64url encoded), enter the Key ID and the HMAC Key from Step 1.
win-acme then requests the certificate, installs it, and updates the IIS binding automatically.
Alternative: Setting up with a PowerShell command
You can also request the certificate directly with a PowerShell command:
.\wacs.exe --source iis --installation iis `
--baseuri https://acme.ionos.com/ `
--host example.com `
--eab-key-identifier YOUR_KEY_ID `
--eab-key YOUR_HMAC_KEY `
--emailaddress ""
Note
The --emailaddress "" parameter specifies an email address. The IONOS ACME server does not use it, so you can leave it empty.
Checking the certificate
Once the certificate has been issued, it is marked with ACME in the SSL certificate overview of your IONOS account.
Testing on Linux
You can use Certbot to view the managed certificates:
certbot certificates
Then open your website in your browser:
https://example.com
Alternatively, you can check the certificate using OpenSSL:
openssl s_client -connect example.com:443 -servername example.com
Checking automatic renewal
A key advantage of ACME is the automatic renewal of certificates. Certbot can manage certificates, monitor their expiry dates, and renew them.
Automatic renewal on Linux
Depending on the installation method, Certbot sets up either a systemd timer or a cron job.
On distributions that use systemd, you can check whether a Certbot timer exists:
systemctl list-timers | grep -i certbot
To test the renewal, run the following command:
certbot renew --dry-run
Automatic renewal on Windows
win-acme creates a task in the Windows Task Scheduler that carries out the renewal automatically. This task runs win-acme with the --renew parameter.
To display the existing renewals, run the following command:
.\wacs.exe --list --baseuri https://acme.ionos.com
In the Windows Task Scheduler, also check that the win-acme renewal task exists and is enabled.
Additional information
You can find more information in the official documentation for Certbot and win-acme:
- Certbot website: https://certbot.eff.org/
- Certbot documentation: https://eff-certbot.readthedocs.io/en/stable/index.html
- win-acme website: https://www.win-acme.com/