certbot certonly --standalone -d example.com --preferred-challenges http

Category: Web Servers & Proxies

certbot certonly --standalone -d example.com --preferred-challenges http

Issue a cert using a temporary built-in web server

The standalone plugin runs its own temporary server on port 80 to answer the HTTP-01 challenge, so nothing else may be listening on that port. Stop nginx or Apache first, or the challenge fails. The temporary server shuts down once issuance completes.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.