strato-acme
This repository contains
- Python API for acccess to DNS system for a domain hosted at strato.de
- Docker container for ready-to-go usage
Setup
Create strato-acme-config.json:
{
"location": "de", // Supports de and nl
"credentials": {
"username": "<username>",
"password": "<password>"
}
}
Make sure to make this file only readable for the user in the container:
sudo chmod 0400 strato-acme-config.json
Two-Factor Authentification
To be able to authenticate two-factor, device name and TOTP secret must be entered into the JSON. If it is not used, it can either be empty strings or the entries can be removed completely (see above).
{
"location": "de",
"credentials": {
"username": "<username>",
"password": "<password>",
"totp_secret": "<secret>",
"totp_devicename": "<devicename>"
}
}
Usage
Python API
When the package strato-dns-api is installed you can run it via
python3 -m strato_dns_api --config strato-acme-config.json get-records --domain example.com
This will return the current CNAME/TXT records available on this domain. For more commands, see the CLI help.
Docker
The repository also contains a ready-to-go docker container/image that wraps the acme.sh script and the python API for access to strato DNS. This allows for automatic certificate generation/renewals with wildcard support on domains hosted at Strato.
To build the image locally, run ./docker/build.sh --load to build the image for all supported platforms in the current version and load it into your local docker images
Requirements
- You need to create directory
configand place a file calledstrato-acme-config.jsoninside which is filled with your strato API config (see above)
This config folder should be mapped into the container under/strato-acme/configand will also then contain the acme.sh settings - You need to create a directory or a docker volume which should be mounted under
/strato-acme/certsto be able to persist and share certificates with other containers (e.g. traefik) - If you also want to persist logs, mount a folder under
/strato-acme/logs
For a reference, see docker-compose.yml
Create certificates
When the container is running in the background (e.g. via docker compose up -d ...) use the following command to trigger certificate generation:
docker exec strato_acme create-new-wildcard-cert.sh --domain <YOUR_DOMAIN> --email <YOUR_EMAIL> [optional acme.sh options]
This will then try to generate a wildcard certificate for <YOUR_DOMAIN> and *.<YOUR_DOMAIN>.
If generation was successfull, there will also be a cron job created to automatically renew the certificate before expiration (see official acme.sh docs).
If generation failed or you want to test, it is recommended to use the --staging option, so you dont get blocked by the rate limits of LE.
docker exec strato_acme create-new-wildcard-cert.sh --domain <YOUR_DOMAIN> --email <YOUR_EMAIL> --staging
Metadata
Release files for strato-dns-api 0.7.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| strato_dns_api-0.7.0.tar.gz | 11.1 kB | With provenance | Details for strato_dns_api-0.7.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| strato_dns_api-0.7.0-py3-none-any.whl | Python 3 | none | any | Details for strato_dns_api-0.7.0-py3-none-any.whl |
Total release size: 21.4 kB
Release files / strato_dns_api-0.7.0.tar.gz
| Download URL | strato_dns_api-0.7.0.tar.gz |
|---|---|
| Size | 11.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
4630f93d0f90c1936f0d2fe906a789ac79c7f8c96c9a2b1e82b88db0821ef3cb
|
|
BLAKE2b-256 checksum How to use checksums |
ab6757154943f1bf265dacd27e1257213da7935d20b12b7e1c0da25c75a4aafb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Aug 10, 2026.
Transparency logRelease files / strato_dns_api-0.7.0-py3-none-any.whl
| Download URL | strato_dns_api-0.7.0-py3-none-any.whl |
|---|---|
| Size | 10.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
92b2001f80bfd7e3b13bdda5e3f2ffb6b7e37172d6c5a1369e48e501d4678dbb
|
|
BLAKE2b-256 checksum How to use checksums |
f4b8140a7f33aa7384b16b476445bdd94dd0507c0f4646bc15af21e2d7273785
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Aug 10, 2026.
Transparency logSecurity for strato-dns-api 0.7.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for strato_dns_api-0.7.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Aug 10, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.