Featured image of post Guide to Automatically Configure SSL Certificates with ACME on DNSPod

Guide to Automatically Configure SSL Certificates with ACME on DNSPod

This guide explains how to automate SSL certificate deployment on DNSPod using ACME protocol, including DNS-based domain validation procedures.

This article was published 917 days ago, some content may be outdated. If you have any questions, please leave a comment.

Deploy acme.sh with Docker

docker-compose.yml, replace the actual values of DNSPod API ID and Key.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
services:
  acme-sh:
    image: neilpang/acme.sh:latest
    container_name: acme
    restart: always
    command: daemon
    environment:
      - TZ=Asia/Shanghai
      - DP_Id=******            # DNSPod API ID
      - DP_Key=**************** # DNSPod API Key
    volumes:
      - ./certs/:/acme.sh/

Configure acme.sh

1
2
3
docker compose up -d
docker compose exec -it acme sh
acme.sh --set-default-ca --server letsencrypt

Apply for a certificate

Generate a certificate, replace www.example.com with the actual domain name. The certificate will be mounted to the ./certs/ directory.

1
acme.sh --issue --dns dns_dp -d www.example.com
Facing the sea with spring blossoms.
Built with Hugo
Theme Stack designed by Jimmy