Nginx Proxy Guard

Features

SSL certificates

NPG manages the certificates used by proxy hosts, redirect hosts and stream hosts with TLS termination. It issues Let's Encrypt certificates and renews them before they expire, and it can also create self-signed certificates or take certificates you already have. If you are turning HTTPS on for the first time, Turning on HTTPS is the quicker start.

Where it is

Certificates in the top menu has four sub-tabs.

TabContents
CertificatesCertificate list, new certificate, renew, update, download, delete
Issuance/Renewal HistoryRecords of issuance, renewal, expiry and errors, with operation logs
DNS ProvidersDNS service accounts used for DNS-01 issuance and DDNS
DDNSDynamic DNS records (DDNS)
Certificate list: domains, status, provider, expiry
Certificate list: domains, status, provider, expiry

The list can be searched by domain, filtered by status (Issued, Pending, Expired, Error) and provider, and sorted by expiry among others. Opening a certificate shows its issue date, expiry date, DNS provider and the hosts that use it (Linked Hosts).

Certificate types

New Certificate opens a dialog where you choose the certificate provider. The dialog opens with Self-signed selected, so choose Let's Encrypt for a public site.

New certificate: Let's Encrypt, DNS-01, DNS provider
New certificate: Let's Encrypt, DNS-01, DNS provider
ProviderUse
Let's EncryptFree publicly trusted certificates, renewed automatically.
Self-signedFor development and testing; browsers do not trust them. Validity is chosen between 30 days and 5 years, 1 year by default.
Custom UploadA certificate you already have: Certificate (PEM), Private Key (PEM) and, if a chain is needed, the Issuer Certificate (PEM).

Enter domain names one per line or separated by commas.

Let's Encrypt issuance

FieldMeaningDefault
Verification MethodHTTP-01 (Port 80): the domain must reach this server on port 80. DNS-01 (API): a TXT record is created through the DNS provider's API.HTTP-01
DNS ProviderThe DNS provider used for DNS-01the provider set as default
Key typeRSA 2048, ECDSA P-256, ECDSA P-384. Renewals keep the type you chose.RSA 2048
Auto Renew before expirationRenews the certificate automatically as expiry approaches.on
  • Wildcard certificates (*.example.com) can only be issued with DNS-01. A wildcard request without a DNS provider is refused.
  • If port 80 cannot be opened to the internet, use DNS-01. If Cloudflare is in front, see Running behind Cloudflare.
  • Issuance runs in the background and the progress dialog shows a live log. On installs that run without Valkey this live log stays empty; check the result under Issuance/Renewal History.
  • Choosing Create New Certificate on a proxy host's SSL/TLS tab issues the certificate the same way when the host is saved.

What to check when issuance fails is collected in When a certificate won't issue.

Automatic renewal

Every 6 hours NPG checks for certificates with auto-renew on that expire within 30 days and renews them. Let's Encrypt certificates are issued again, and self-signed certificates are recreated with the same validity. After a renewal, the proxy hosts and redirect hosts using the certificate are regenerated and applied. The Renew button in the list renews a certificate right away.

A failed renewal shows Renewal Failed in the list. If the last attempt failed less than 24 hours ago and more than 7 days remain before expiry, that cycle does not retry. Uploaded certificates (Custom Upload) are not renewed automatically.

Update, download, delete

  • Update exists only for uploaded certificates (Custom Upload). New PEM data regenerates the configuration of the hosts that use the certificate.
  • Download gives you the certificate files.
  • A certificate used by a host (redirect hosts included) cannot be deleted. Check Linked Hosts in the certificate detail and unassign it there first.
  • Delete All Error Certificates removes every certificate in the error state at once.

DNS providers

Register DNS service accounts under Certificates → DNS Providers.

DNS provider list and add dialog
DNS provider list and add dialog
ProviderValues neededDNS-01DDNS
CloudflareAPI token (recommended, with Zone:DNS:Edit and Zone:Read) or API key and email; a Zone ID if neededyesyes
AWS Route 53Access Key ID, Secret Access Key and region, or "Use AWS default credentials (no access key)"yesno
DuckDNSTokenyesyes
DynuAPI keyyesyes
IONOSAPI key prefix and secret keyyesno
OVHcloudAPI endpoint, application key, application secret, consumer keyyesno
Infomaniak (DynDNS)DynDNS username and passwordnoyes (IPv4)

A provider marked Set as Default is preselected when you create a certificate. A provider that a certificate uses cannot be deleted.

Global TLS settings

TLS details apply to all hosts, not per host.

Settings → SSL / ACME

FieldMeaningDefault
ACME EmailThe email of the Let's Encrypt account, used for expiry notices and account recovery.empty
Use Staging Server (Test)Issues from the Let's Encrypt staging server. Turn it on only while testing, to spare the rate limits; browsers do not trust staging certificates.off

Settings → Global Settings → SSL/TLS

FieldDefault
ssl_protocolsTLSv1.2 TLSv1.3
ssl_ciphersECDHE-based AES-GCM and CHACHA20-POLY1305 list
ssl_ecdh_curveX25519MLKEM768:X25519:secp256r1:secp384r1
ssl_session_cacheshared:SSL:10m
ssl_session_timeout1d

The default ssl_ecdh_curve offers the post-quantum hybrid key exchange (X25519MLKEM768) first; clients without it connect with X25519 or the others. Hosts whose certificate has no OCSP address (recent Let's Encrypt certificates) have OCSP stapling turned off.

Interaction with other features

  • /.well-known/acme-challenge/ is exempt from geo blocking, cloud blocking, the bot filter and Block Exploits, so HTTP-01 issuance works on hosts with those protections on.
  • Stream hosts with TLS termination use the same certificates (TCP/UDP streams).

Limits

  • Only Let's Encrypt is issued automatically; other ACME certificate authorities cannot be chosen in the interface.
  • Uploaded certificates (Custom Upload) are not renewed automatically. Put in a new certificate with Update before it expires.
  • The Infomaniak provider is DDNS-only and cannot be used to issue certificates.