Generate Cloudflare DNS certificate commands and Nginx certificate configuration locally.
Run steps 1–4 in order in the same shell on your server with acme.sh installed and Cloudflare DNS configured. The reload command assumes Nginx is managed by systemd.
1 · Cloudflare token
Read-only template with one leading space before export. Fill in your token in the terminal before running.
export CF_Token=""2 · Issue certificate
acme.sh --issue \
--dns dns_cf \
-d example.com \
--keylength ec-2563 · Create directory
mkdir -p /etc/nginx/ssl/example.com4 · Install certificate
acme.sh --install-cert -d example.com --ecc \
--key-file /etc/nginx/ssl/example.com/privkey.pem \
--fullchain-file /etc/nginx/ssl/example.com/fullchain.pem \
--reloadcmd "systemctl reload nginx"Nginx certificate configuration
ssl_certificate /etc/nginx/ssl/example.com/fullchain.pem;
ssl_certificate_key /etc/nginx/ssl/example.com/privkey.pem;Common paths & commands
Certificate paths follow your inputs. Common Linux paths may differ by installation. Run commands on your server with the required permissions.
Optional: DH parameters are for DHE ciphers, not required for ECDHE. Generate the file before adding ssl_dhparam; generation may take time. The command skips an existing file.
Private key
/etc/nginx/ssl/example.com/privkey.pemCertificate and intermediate chain
/etc/nginx/ssl/example.com/fullchain.pemDH parameters
/etc/nginx/ssl/dhparam.pemGenerate DH parameters (2048 bits)
mkdir -p /etc/nginx/ssl/ && if [ ! -e /etc/nginx/ssl/dhparam.pem ]; then
openssl dhparam -out /etc/nginx/ssl/dhparam.pem 2048
fiNginx DH parameter directive
ssl_dhparam /etc/nginx/ssl/dhparam.pem;Inspect certificate subject, issuer and dates
openssl x509 -in /etc/nginx/ssl/example.com/fullchain.pem -noout -subject -issuer -datesCheck whether certificate expires within 30 days
openssl x509 -in /etc/nginx/ssl/example.com/fullchain.pem -noout -checkend 2592000Nginx main configuration (common path)
/etc/nginx/nginx.confacme.sh working directory (default)
~/.acme.sh/Test Nginx configuration
nginx -tTest and reload Nginx (systemd)
nginx -t && systemctl reload nginxRelated · Developer
Keep working with nearby tools
Shortcuts to tools that fit the same workflow.
SSH Config Generator
Build OpenSSH client config templates locally, with paths, commands, and file references.
UUID Generator
Generate random v4 and time-ordered v7 UUIDs in bulk
Session Secret
Generate lowercase hex secrets equivalent to openssl rand -hex 32 or 64
Timestamp Converter
Convert Unix timestamps and ISO dates to local and UTC time
CSV Viewer
Parse CSV text and preview it as a table
Cron Expression Parser
Build cron expressions from schedule controls