CERTBOT(1)
π CERTBOT(1) β the manual page, bestie edition π
okay so. This is the CERTBOT(1) manual page, from the Certbot corner of your man pages. Sit down, grab a strawberry π, and let me tell you about the tool that's gonna make HTTPS just... happen for you.
β¨ NAME β¨
certbot β Automatically configure HTTPS using Let's Encrypt π
π SYNOPSIS π
The whole point, the entire mission statement, the vibe, is this: Certbot, Let's Encrypt, and the ACME protocol (that's Automated Certificate Management Environment, say it with your chest) exist so that you can set up an HTTPS server and have it automatically obtain a browser-trusted certificate β with zero human intervention. No clicking. No drama. No 2am certificate panic. β¨
The way this works is you run a certificate management agent on your web server. That's the whole trick. π§
And this agent is used to:
- Automatically prove to the Let's Encrypt CA that you control the website π
- Obtain a browser-trusted certificate and set it up on your web server π
- Keep track of when your certificate is going to expire, and renew it β°
- Help you revoke the certificate if that ever becomes necessary π
πΈ OPTIONS πΈ
Here's the usage, exactly as it is, no cap:
usage:
certbot [SUBCOMMAND] [options] [-d DOMAIN] [-d DOMAIN] ...
So like β certbot can obtain and install HTTPS/TLS/SSL certificates. And by default? It will attempt to use a webserver both for obtaining and for installing the certificate. Two jobs, one agent, main character energy. π
The most common SUBCOMMANDS and flags are:
π obtain, install, and renew certificates
run(the default) β Obtain & install a certificate in your current webserver π«Άcertonlyβ Obtain or renew a certificate, but do not install itrenewβ Renew all previously obtained certificates that are near expiry β³enhanceβ Add security enhancements to your existing configuration β¨-d DOMAINSβ Comma-separated list of domains to obtain a certificate for--apacheβ Use the Apache plugin for authentication & installation--standaloneβ Run a standalone webserver for authentication--nginxβ Use the Nginx plugin for authentication & installation--webrootβ Place files in a server's webroot folder for authentication--manualβ Obtain certificates interactively, or using shell script hooks-nβ Run non-interactively π€«--test-certβ Obtain a test certificate from a staging server--dry-runβ Test"renew"or"certonly"without saving any certificates to disk
π manage certificates
certificatesβ Display information about certificates you have from Certbotrevokeβ Revoke a certificate (supply--cert-nameor--cert-path)deleteβ Delete a certificate (supply--cert-name)reconfigureβ Update a certificate's configuration (supply--cert-name)
π manage your account
registerβ Create an ACME accountunregisterβ Deactivate an ACME accountupdate_accountβ Update an ACME accountshow_accountβ Display account details--agree-tosβ Agree to the ACME server's Subscriber Agreement-m EMAILβ Email address for important account notifications π§-h,--helpβ the og. shows this help message and exits. that's it, that's the whole thing π-c,--configCONFIG_FILE β the path to your config file. (default:/etc/letsencrypt/cli.iniand~/.config/letsencrypt/cli.ini) β yes bestie, both, it peeks at both of them.-v,--verboseβ stack it like it's a limited edition π use this flag multiple times to incrementally increase the verbosity of output, e.g.-vvv. (default:0)--max-log-backupsMAX_LOG_BACKUPS β specifies the maximum number of backup logs that should be kept by Certbot's built in log rotation. setting this flag to0disables log rotation entirely, which makes Certbot always append to the same log file. (default:1000) β so zero is a vibe, but it's a chaotic one π-n,--non-interactive,--noninteractiveβ run without ever asking for user input. this may require additional command line flags, and the client will try to explain which ones are required if it finds one missing. (default:False) β it's giving "no talking, just vibes" β¨--force-interactiveβ force Certbot to be interactive even if it detects it's not being run in a terminal. this flag cannot be used with therenewsubcommand. (default:False)-d,--domains,--domainDOMAIN β domain names to include. for multiple domains you can use multiple-dflags or enter a comma separated list of domains as a parameter. all domains will be included as Subject Alternative Names on the certificate. the first domain will be used as the certificate name, unless otherwise specified or if you already have a certificate with the same name. in the case of a name conflict, a number like-0001will be appended to the certificate name. (default: Ask) β the first one is basically the main character π--ip-addressIP_ADDRESSES β IP addresses to include. for multiple IP addresses you can use multiple--ip-addressflags. all IP addresses will be included as Subject Alternative Names on the certificate. (default:[])--eab-kidEAB_KID β Key Identifier for External Account Binding. (default:None)--eab-hmac-keyEAB_HMAC_KEY β HMAC key for External Account Binding. (default:None)--eab-hmac-algEAB_HMAC_ALG β HMAC algorithm for External Account Binding. (default:HS256)--cert-nameCERTNAME β certificate name to apply. this name is used by Certbot for housekeeping and in file paths; it doesn't affect the content of the certificate itself. certificate name cannot contain filepath separators (i.e./or\, depending on the platform). to see certificate names, runcertbot certificates. when creating a new certificate, specifies the new certificate's name. (default: the first provided domain or the name of an existing certificate on your system for the same domains) β pure backstage-pass energy, fr fr π«Ά--dry-runβ perform a test run against the Let's Encrypt staging server, obtaining test (invalid) certificates but not saving them to disk. this can only be used with thecertonlyandrenewsubcommands. it may trigger webserver reloads to temporarily modify & roll back configuration files.--pre-hookand--post-hookcommands run by default.--deploy-hookcommands do not run, unless enabled by--run-deploy-hooks. the test server may be overridden with--server. (default:False) β the ultimate dress rehearsal π§--debug-challengesβ after setting up challenges, wait for user input before submitting to CA. when used in combination with the-voption, the challenge URLs or FQDNs and their expected return values are shown. (default:False)--required-profileREQUIRED_PROFILE β request the given profile name from the ACME server. if the ACME server returns an error, issuance (or renewal) will fail. for long-term reliability, settingpreferred_profileinstead may be preferable because it allows fallback to a default. use this setting when renewal failure is preferable to fallback. (default:None) β highkey a "no plan b" moment π--preferred-profilePREFERRED_PROFILE β request the given profile name from the ACME server, or fallback to default. if the given profile name exists in the ACME directory, use it to request a certificate. otherwise, fall back to requesting a certificate without a profile (which means the CA will use its default profile). this allows renewals to succeed even if the CA deprecates and removes a given profile. (default:None) β the resilient queen we stan π--preferred-chainPREFERRED_CHAIN β set the preferred certificate chain. if the CA offers multiple certificate chains, prefer the chain whose topmost certificate was issued from this Subject Common Name. if no match, the default offered chain will be used. (default:None)--preferred-challengesPREF_CHALLS β a sorted, comma delimited list of the preferred challenge to use during authorization, with the most preferred challenge listed first (Eg,"dns"or"http,dns"). not all plugins support all challenges. seehttps://certbot.eff.org/docs/using.html#pluginsfor details. ACME Challenges are versioned, but if you pick"http"rather than"http-01", Certbot will select the latest version automatically. (default:[]) β first one on the list gets first dibs π--issuance-timeoutISSUANCE_TIMEOUT β this option specifies how long (in seconds) Certbot will wait for the server to issue a certificate. (default:90) β the patience meter β³--user-agentUSER_AGENT β set a custom user agent string for the client. user agent strings allow the CA to collect high level statistics about success rates by OS, plugin and use case, and to know when to deprecate support for past Python versions and flags. if you wish to hide this information from the Let's Encrypt server, set this to"". (default:CertbotACMEClient/5.5.0 (certbot; OS_NAME OS_VERSION) Authenticator/XXX Installer/YYY (SUBCOMMAND; flags: FLAGS) Py/major.minor.patchlevel). the flags encoded in the user agent are:--duplicate,--force-renew,--allow-subset-of-names,-n, and whether any hooks are set.--user-agent-commentUSER_AGENT_COMMENT β add a comment to the default user agent string. may be used when repackaging Certbot or calling it from another tool to allow additional statistical data to be collected. ignored if--user-agentis set. (Example:Foo-Wrapper/1.0) (default:None) β literally a little signature on your work βοΈ
βοΈ automation π¦
Flags for automating execution & other tweaks
--keep-until-expiring,--keep,--reinstallβ if the cert you're asking for matches one you've already got, just hold onto the existing one until it's actually due for renewal, no drama. (for therunsubcommand this basically means reinstall the existing certificate.) (default: Ask)--expandβ if your existing cert is a strict subset of the names you're requesting, go ahead and expand it, replacing it with all the extra names. glow up β¨ (default: Ask)--versionβ shows the program's version number and dips. classic. (default: none)--force-renewal,--renew-by-defaultβ if a cert already exists for the domains you asked for, renew it right now, no matter how far from expiry it is. (ngl--keep-until-expiringis often the more appropriate move here). also implies--expand. (default: False)--renew-with-new-domainsβ if a cert already exists for the requested certificate name but it doesn't match the domains you're asking for, renew it right now, regardless of whether it's near expiry. (default: False)--reuse-keyβ when renewing, keep using the same private key as the existing cert. (default: False)--no-reuse-keyβ when renewing, do not reuse that private key. heads up bestie: not reusing private keys is already the default behavior of Certbot, so this option exists to unset--reuse-keyon a cert that already has it on. (default: False)--new-keyβ when renewing or replacing a cert, generate a fresh private key, even if--reuse-keyis set on the existing one. combining--new-keyand--reuse-keymeans the private key gets replaced now and then reused in future renewals. (default: False)--allow-subset-of-namesβ during domain validation, don't call it a failure just because authorizations couldn't be obtained for a strict subset of the requested domains. lowkey useful when you want renewals for a bunch of domains to succeed even if some of them don't point at this system anymore. π this option cannot be used with--csr. (default: False)--agree-tosβ agree to the ACME Subscriber Agreement. (default: Ask)--duplicateβ lets you make a certificate lineage that duplicates an existing one (both can be renewed in parallel, twin vibes π«Ά). (default: False)-q,--quietβ silences literally all output except errors. perfect for automation via cron. implies--non-interactive. (default: False)
π security
security parameters & server settings π
--rsa-key-size Nβ size of the RSA key. (default: 2048)--key-type {rsa,ecdsa}β type of generated private key. only ONE per invocation can be provided at this time, so pick your fighter. (default:ecdsa)--elliptic-curve Nβ the SECG elliptic curve name to use. please see RFC 8446 for supported values. (default:secp256r1)--must-stapleβ adds the OCSP Must-Staple extension to the certificate. autoconfigures OCSP Stapling for supported setups (Apache version >= 2.3.3). (default: False)--redirectβ automatically redirect all HTTP traffic to HTTPS for the newly authenticated vhost. (default: redirect enabled forinstallandrun, disabled forenhance)--no-redirectβ do not automatically redirect all HTTP traffic to HTTPS for the newly authenticated vhost. (default: redirect enabled forinstallandrun, disabled forenhance)--hstsβ adds the Strict-Transport-Security header to every HTTP response, forcing the browser to always use SSL for the domain. defends against SSL Stripping, periodt. π‘οΈ (default: False)--uirβ adds the"Content-Security-Policy: upgrade-insecure-requests"header to every HTTP response, forcing the browser to usehttps://for everyhttp://resource. (default: False)--staple-ocspβ enables OCSP Stapling. a valid OCSP response gets stapled to the certificate that the server offers during TLS. (default: False)--strict-permissionsβ requires that all configuration files are owned by the current user. only needed if your config is somewhere unsafe like/tmp/. (default: False)--auto-hstsβ gradually increasing max-age value for the HTTP Strict Transport Security security header. (default: False)
π§ͺ testing
the following flags are meant for testing and integration purposes only. like, do not be out here using these in prod, bestie. π
--run-deploy-hooksβ when performing a test run using--dry-runorreconfigure, run any applicable deploy hooks. this includes hooks set on the command line, saved in the certificate's renewal configuration file, or present in the renewal-hooks directory. to exclude directory hooks, use--no-directory-hooks. the hook(s) will only be run if the dry run succeeds, and will use the current active certificate, not the temporary test certificate acquired during the dry run. this flag is recommended when modifying the deploy hook usingreconfigure. (default: False)--test-cert,--stagingβ use the Let's Encrypt staging server to obtain or revoke test (invalid) certificates; equivalent to--server https://acme-staging-v02.api.letsencrypt.org/directory. (default: False)--debugβ shows tracebacks in case of errors. (default: False)--no-verify-sslβ disables verification of the ACME server's certificate. the root certificates trusted by Certbot can be overridden by setting theREQUESTS_CA_BUNDLEenvironment variable. (default: False)--http-01-port HTTP01_PORTβ port used in the http-01 challenge. this only affects the port Certbot listens on. a conforming ACME server will still attempt to connect on port 80. (default: 80)--http-01-address HTTP01_ADDRESSβ the address the server listens to during the http-01 challenge. (default:)--https-port HTTPS_PORTβ port used to serve HTTPS. this affects which port Nginx will listen on after an LE certificate is installed. (default: 443)--break-my-certsβ be willing to replace or renew valid certificates with invalid (testing/staging) certificates. yes this is as chaotic as it sounds. β οΈ (default: False)
π paths
flags for changing execution paths & servers
--cert-path CERT_PATHβ path to where the certificate is saved (withcertonly --csr), installed from, or revoked. (default: None)--key-path KEY_PATHβ path to private key for certificate installation or revocation (if account key is missing). (default: None)--fullchain-path FULLCHAIN_PATHβ accompanying path to a full certificate chain (certificate plus chain). (default: None)--chain-path CHAIN_PATHβ accompanying path to a certificate chain. (default: None)--config-dir CONFIG_DIRβ configuration directory. (default:/etc/letsencrypt)--work-dir WORK_DIRβ working directory. (default:/var/lib/letsencrypt)--logs-dir LOGS_DIRβ logs directory. (default:/var/log/letsencrypt)--server SERVERβ ACME Directory Resource URI. (default:https://acme-v02.api.letsencrypt.org/directory)
ποΈ manage
various subcommands and flags are available for managing your certificates, so you can be the main character of your own PKI π
certificatesβ list certificates managed by Certbotdeleteβ clean up all files related to a certificaterenewβ renew all certificates (or one specified with--cert-name)revokeβ revoke a certificate specified with--cert-pathor--cert-namereconfigureβ update renewal configuration for a certificate specified by--cert-name
π run
options for obtaining & installing certificates
π― certonly
options for modifying how a certificate is obtained
--deploy-hook DEPLOY_HOOKβ a command that gets run in a shell, once, for every certificate that got issued successfully β and yes, also on all the renewals after that π. Unless you're using--disable-hook-validation, the first word of that command has to be the absolute pathname of an executable, or something you can find through thePATHenvironment variable. For this command, the shell variable$RENEWED_LINEAGEpoints at the config live subdirectory (like, for example,"/etc/letsencrypt/live/example.com") that's holding the shiny new certs and keys β¨, and the shell variable$RENEWED_DOMAINSis a space-delimited list of renewed cert domains (for example,"example.com www.example.com"). (default: None)--csr CSRβ path to a Certificate Signing Request (CSR), in DER or PEM format. Heads up bestie: right now--csronly works with thecertonlysubcommand. (default: None)
β¨ renew β¨
The renew subcommand will attempt to renew any certificates you previously obtained if they're close to expiring, then prints a summary of the results π. By default, renew reuses the plugins and options that were used to obtain β or most recently renew β each certificate. You can vibe-check whether future renewals will actually succeed with --dry-run π§ͺ. Individual certificates can be renewed with the --cert-name option. There are hooks you can run before and after renewal; see https://certbot.eff.org/docs/using.html#renewal for more on these π.
--pre-hook PRE_HOOKβ a command that runs in a shell before obtaining any certificates. Unless--disable-hook-validationis used, the first word of the command has to be the absolute pathname of an executable, or one found via thePATHenvironment variable. It's mainly meant for renewal, where you can use it to temporarily shut down a webserver that might beef with the standalone plugin π. It only gets called if a certificate is actually about to be obtained/renewed. When you're renewing several certificates that have identical pre-hooks, only the first one runs. (default: None)--post-hook POST_HOOKβ a command that runs in a shell after attempting to obtain/renew certificates. Unless--disable-hook-validationis used, the first word of the command has to be the absolute pathname of an executable, or one found via thePATHenvironment variable. You can use it to deploy renewed certificates, or to restart any servers that got stopped by--pre-hookπ. It only runs if an attempt was made to obtain/renew a certificate. If multiple renewed certificates have identical post-hooks, only one gets run. (default: None)--disable-hook-validationβ normally, the commands you specify for--pre-hook/--post-hook/--deploy-hookget checked for validity, so we can see if the programs being run are in the$PATHβ that way mistakes get caught early, even when the hooks aren't running yet π. The problem is the validation is kinda simplistic and fails if you use more advanced shell constructs, so you can use this switch to turn it off. (default: False)--no-directory-hooksβ disables running executables found in Certbot's hook directories. (default: False)--disable-renew-updatesβ disables the automatic updates to your server configuration that the selected installer plugin would otherwise do, and that get triggered when the user runs"certbot renew", regardless of whether the certificate is renewed. Ngl this setting doesn't apply to important TLS configuration updates. (default: False)--no-autorenewβ disables auto renewal of certificates. (default: False)
πΈ certificates πΈ
List certificates managed by Certbot π
π delete π
Options for deleting a certificate
π revoke π
Options for revocation of certificates
--reason {unspecified,keycompromise,affiliationchanged,superseded,cessationofoperation}β specifies the reason for revoking a certificate. (default: unspecified)--delete-after-revokeβ deletes certificates after revoking them, along with all previous and later versions of those certificates. (default: Ask)--no-delete-after-revokeβ does not delete certificates after revoking them. Bestie, use this one with caution π¨ because therenewsubcommand will attempt to renew undeleted revoked certificates. (default: Ask)
π¦ register π¦
Options for account registration
-m,--email EMAILβ email used for registration and recovery contact. Use a comma to register multiple emails, ex:u1@example.com,u2@example.com. (default: Ask).--eff-emailβ share your e-mail address with EFF. (default: Ask)--no-eff-emailβ don't share your e-mail address with EFF. (default: Ask)
β¨ update_account β¨
Options for account modification
π unregister π
Options for account deactivation.
--account ACCOUNT_IDβ account ID to use. (default: None)
π install π
Options for modifying how a certificate is deployed
β rollback β
Options for rolling back server configuration changes
--checkpoints Nβ revert configurationNnumber of checkpoints. (default: 1)
π§ plugins π§
Options for the "plugins" subcommand
--initβ initialize plugins. (default: False)--prepareβ initialize and prepare plugins. (default: False)--authenticatorsβ limit to authenticator plugins only. (default: None)--installersβ limit to installer plugins only. (default: None)
π enhance π
Helps to harden the TLS configuration by adding security enhancements to already existing configuration. We love a glow-up πβ¨
π show_account π
Options useful for the "show_account" subcommand:
π«Ά reconfigure π«Ά
Common options that may be updated with the "reconfigure" subcommand:
π plugins π
Plugin Selection: the Certbot client supports an extensible plugins architecture π§©. See 'certbot plugins' for a list of all installed plugins and their names. You can force a particular plugin by setting the options provided below. Running --help <plugin_name> will list flags specific to that plugin.
--configurator CONFIGURATORβ name of the plugin that's both an authenticator and an installer. Should not be used together with--authenticatoror--installer. (default: Ask)-a,--authenticator AUTHENTICATORβ authenticator plugin name. (default: None)-i,--installer INSTALLERβ installer plugin name (also used to find domains). (default: None)--apacheβ obtain and install certificates using Apache. (default: False)--nginxβ obtain and install certificates using Nginx. (default: False)--standaloneβ obtain certificates using a"standalone"webserver. (default: False)--manualβ provide laborious manual instructions for obtaining a certificate. (default: False)--webrootβ obtain certificates by placing files in a webroot directory. (default: False)--dns-cloudflareβ obtain certificates using a DNS TXT record (if you're using Cloudflare for DNS). (default: False)--dns-digitaloceanβ obtain certificates using a DNS TXT record (if you're using DigitalOcean for DNS). (default: False)--dns-dnsimpleβ obtain certificates using a DNS TXT record (if you're using DNSimple for DNS). (default: False)--dns-dnsmadeeasyβ obtain certificates using a DNS TXT record (if you're using DNS Made Easy for DNS). (default: False)--dns-gehirnβ obtain certificates using a DNS TXT record (if you're using Gehirn Infrastructure Service for DNS). (default: False)--dns-googleβ obtain certificates using a DNS TXT record (if you're using Google Cloud DNS). (default: False)--dns-linodeβ obtain certificates using a DNS TXT record (if you're using Linode for DNS). (default: False)--dns-luadnsβ obtain certificates using a DNS TXT record (if you're using LuaDNS for DNS). (default: False)--dns-nsoneβ obtain certificates using a DNS TXT record (if you're using NS1 for DNS). (default: False)--dns-ovhβ obtain certificates using a DNS TXT record (if you're using OVH for DNS). (default: False)--dns-rfc2136β obtain certificates using a DNS TXT record (if you're using BIND for DNS). (default: False)--dns-route53β obtain certificates using a DNS TXT record (if you're using Route53 for DNS). (default: False)--dns-sakuracloudβ obtain certificates using a DNS TXT record (if you're using Sakura Cloud for DNS). (default: False)
π¦ apache:
Apache Web Server plugin β and heads up bestie, the default values of the Apache plugin options change depending on the operating system Certbot is run on. So don't come for me if your defaults look different. π
--apache-enmodAPACHE_ENMOD β path to the Apachea2enmodbinary (default: None)--apache-dismodAPACHE_DISMOD β path to the Apachea2dismodbinary (default: None)--apache-le-vhost-extAPACHE_LE_VHOST_EXT β SSL vhost configuration extension (default:-le-ssl.conf)--apache-server-rootAPACHE_SERVER_ROOT β Apache server root directory (default:/etc/apache2)--apache-vhost-rootAPACHE_VHOST_ROOT β Apache server VirtualHost configuration root (default: None)--apache-logs-rootAPACHE_LOGS_ROOT β Apache server logs directory (default:/var/log/apache2)--apache-challenge-locationAPACHE_CHALLENGE_LOCATION β directory path for challenge configuration (default:/etc/apache2)--apache-handle-modulesAPACHE_HANDLE_MODULES β let the installer handle enabling required modules for you (Only Ubuntu/Debian currently) (default: False)--apache-handle-sitesAPACHE_HANDLE_SITES β let the installer handle enabling sites for you (Only Ubuntu/Debian currently) (default: False)--apache-ctlAPACHE_CTL β full path to Apache control script (default:apache2ctl)--apache-binAPACHE_BIN β full path toapache2/httpdbinary (default: None)
βοΈ dns-cloudflare:
Obtain certificates using a DNS TXT record (if you are using Cloudflare for DNS). Cloudflare girlies, this one's for you π«Ά
--dns-cloudflare-propagation-secondsDNS_CLOUDFLARE_PROPAGATION_SECONDS β the number of seconds to wait for DNS to propagate before asking the ACME server to verify the DNS record. (default: 10)--dns-cloudflare-credentialsDNS_CLOUDFLARE_CREDENTIALS β Cloudflare credentials INI file. (default: None)
π dns-digitalocean:
Obtain certificates using a DNS TXT record (if you are using DigitalOcean for DNS).
--dns-digitalocean-propagation-secondsDNS_DIGITALOCEAN_PROPAGATION_SECONDS β the number of seconds to wait for DNS to propagate before asking the ACME server to verify the DNS record. (default: 10)--dns-digitalocean-credentialsDNS_DIGITALOCEAN_CREDENTIALS β DigitalOcean credentials INI file. (default: None)
π dns-dnsimple:
Obtain certificates using a DNS TXT record (if you are using DNSimple for DNS).
--dns-dnsimple-propagation-secondsDNS_DNSIMPLE_PROPAGATION_SECONDS β the number of seconds to wait for DNS to propagate before asking the ACME server to verify the DNS record. (default: 30)--dns-dnsimple-credentialsDNS_DNSIMPLE_CREDENTIALS β DNSimple credentials INI file. (default: None)
π dns-dnsmadeeasy:
Obtain certificates using a DNS TXT record (if you are using DNS Made Easy for DNS).
--dns-dnsmadeeasy-propagation-secondsDNS_DNSMADEEASY_PROPAGATION_SECONDS β the number of seconds to wait for DNS to propagate before asking the ACME server to verify the DNS record. (default: 60)--dns-dnsmadeeasy-credentialsDNS_DNSMADEEASY_CREDENTIALS β DNS Made Easy credentials INI file. (default: None)
πΈ dns-gehirn:
Obtain certificates using a DNS TXT record (if you are using Gehirn Infrastructure Service for DNS).
--dns-gehirn-propagation-secondsDNS_GEHIRN_PROPAGATION_SECONDS β the number of seconds to wait for DNS to propagate before asking the ACME server to verify the DNS record. (default: 30)--dns-gehirn-credentialsDNS_GEHIRN_CREDENTIALS β Gehirn Infrastructure Service credentials file. (default: None)
π dns-google:
Obtain certificates using a DNS TXT record (if you are using Google Cloud DNS for DNS).
--dns-google-propagation-secondsDNS_GOOGLE_PROPAGATION_SECONDS β the number of seconds to wait for DNS to propagate before asking the ACME server to verify the DNS record. (default: 60)--dns-google-credentialsDNS_GOOGLE_CREDENTIALS β path to Google Cloud DNS service account JSON file to use instead of relying on Application Default Credentials (ADC). (Seehttps://cloud.google.com/docs/authentication/application-default-credentialsfor information about ADC,https://developers.google.com/identity/protocols/OAuth2ServiceAccount#creatinganaccountfor information about creating a service account, andhttps://cloud.google.com/dns/access-control#permissions_and_rolesfor information about the permissions required to modify Cloud DNS records.) (default: None)--dns-google-projectDNS_GOOGLE_PROJECT β the ID of the Google Cloud project that the Google Cloud DNS managed zone(s) reside in. This will be determined automatically if not specified. (default: None)
ngl bestie the auto-detect on that project one is so convenient, you literally don't have to lift a finger π
π§ dns-linode:
Obtain certificates using a DNS TXT record (if you are using Linode for DNS).
--dns-linode-propagation-secondsDNS_LINODE_PROPAGATION_SECONDS β the number of seconds to wait for DNS to propagate before asking the ACME server to verify the DNS record. (default: 120)--dns-linode-credentialsDNS_LINODE_CREDENTIALS β Linode credentials INI file. (default: None)
π dns-luadns:
Obtain certificates using a DNS TXT record (if you are using LuaDNS for DNS).
--dns-luadns-propagation-secondsDNS_LUADNS_PROPAGATION_SECONDS β the number of seconds to wait for DNS to propagate before asking the ACME server to verify the DNS record. (default: 30)--dns-luadns-credentialsDNS_LUADNS_CREDENTIALS β LuaDNS credentials INI file. (default: None)
β dns-nsone:
Obtain certificates using a DNS TXT record (if you are using NS1 for DNS).
--dns-nsone-propagation-secondsDNS_NSONE_PROPAGATION_SECONDS β the number of seconds to wait for DNS to propagate before asking the ACME server to verify the DNS record. (default: 30)--dns-nsone-credentialsDNS_NSONE_CREDENTIALS β NS1 credentials file. (default: None)
π¦ dns-ovh:
Obtain certificates using a DNS TXT record (if you are using OVH for DNS).
--dns-ovh-propagation-secondsDNS_OVH_PROPAGATION_SECONDS β the number of seconds to wait for DNS to propagate before asking the ACME server to verify the DNS record. (default: 120)--dns-ovh-credentialsDNS_OVH_CREDENTIALS β OVH credentials INI file. (default: None)
π₯ dns-rfc2136:
Obtain certificates using a DNS TXT record (if you are using BIND for DNS).
--dns-rfc2136-propagation-secondsDNS_RFC2136_PROPAGATION_SECONDS β the number of seconds to wait for DNS to propagate before asking the ACME server to verify the DNS record. (default: 60)--dns-rfc2136-credentialsDNS_RFC2136_CREDENTIALS β RFC 2136 credentials INI file. (default: None)
π dns-route53:
Obtain certificates using a DNS TXT record (if you are using AWS Route53 for DNS).
not a single option to configure here β Route53 really said "I got this myself" and honestly? iconic. It just picks up your AWS credentials the normal way β¨
π dns-sakuracloud:
Obtain certificates using a DNS TXT record (if you are using Sakura Cloud for DNS).
--dns-sakuracloud-propagation-secondsDNS_SAKURACLOUD_PROPAGATION_SECONDS β the number of seconds to wait for DNS to propagate before asking the ACME server to verify the DNS record. (default: 90)--dns-sakuracloud-credentialsDNS_SAKURACLOUD_CREDENTIALS β Sakura Cloud credentials file. (default: None)
π«Ά manual:
Authenticate through manual configuration or custom shell scripts. When using shell scripts, an authenticator script must be provided. The environment variables available to this script depend on the type of challenge. $CERTBOT_IDENTIFIER will always contain the domain or IP address being authenticated. For HTTP-01 and DNS-01, $CERTBOT_VALIDATION is the validation string, and $CERTBOT_TOKEN is the filename of the resource requested when performing an HTTP-01 challenge. An additional cleanup script can also be provided and can use the additional variable $CERTBOT_AUTH_OUTPUT which contains the stdout output from the auth script. For both authenticator and cleanup script, on HTTP-01 and DNS-01 challenges, $CERTBOT_REMAINING_CHALLENGES will be equal to the number of challenges that remain after the current one, and $CERTBOT_ALL_IDENTIFIERS contains a comma-separated list of all identifiers that are challenged for the current certificate.
--manual-auth-hookMANUAL_AUTH_HOOK β path or command to execute for the authentication script (default: None)--manual-cleanup-hookMANUAL_CLEANUP_HOOK β path or command to execute for the cleanup script (default: None)
okay so this is the "you're on your own, bestie, but we'll hand you the env vars" mode π if you're writing custom scripts, read those variables carefully β they're your whole personality here π
πΈ nginx:
Nginx Web Server plugin
--nginx-server-root NGINX_SERVER_ROOTβ where nginx keeps its root directory. (default:/etc/nginxor/usr/local/etc/nginx, depending on your install π )--nginx-ctl NGINX_CTLβ the path to thenginxbinary, and yes bestie we use it forconfigtestand for peeking at the nginx version number π (default:nginx)--nginx-sleep-seconds NGINX_SLEEP_SECONDSβ how many seconds we just sit here patiently waiting for your nginx config changes to actually apply when we reload. (default:1)
π«οΈ null
Null Installer. That's it, that's the whole vibe β it does nothing. Sometimes the move is to not make a move π
π§ standalone
Runs an HTTP server locally that serves up the necessary validation files under the /.well-known/acme-challenge/ request path. Perfect fit if there's no HTTP server already running on the box.
Not me about to say this twice: HTTP challenge only β wildcards are not supported. π€
π webroot
Saves the necessary validation files into a .well-known/acme-challenge/ directory inside the webroot path you nominate. Heads up though: a separate HTTP server has to actually be running and serving files from that webroot path β this plugin is not the one doing the serving, it's just dropping files off π«Ά
Again, for the people in the back: HTTP challenge only β wildcards are not supported. π
--webroot-path,-w WEBROOT_PATHβ thepublic_html/ webroot path. You can pass this multiple times to handle different identifiers, and each identifier gets the webroot path that came right before it. So like:
-w /var/www/example -d example.com -d www.example.com -w /var/www/thing -d thing.net -d m.thing.net
(default: Ask)
--webroot-map WEBROOT_MAPβ a JSON dictionary mapping identifiers to webroot paths. Sneaky detail: this implies-dor--ip-addressfor each entry. Your shell may be dramatic about it, so you might need to escape it. For example:
--webroot-map '{"eg1.is,m.eg1.is":"/www/eg1/", "eg2.is":"/www/eg2"}'
This option is merged with, but takes precedence over, your -w / -d entries. And rn, if you put webroot-map in a config file, it has to live on a single line, like:
webroot-map = {"example.com":"/var/www"}
(default: {})
π«Ά AUTHOR
Certbot. The whole thing, authored by Certbot. Iconic of them honestly π
βοΈ COPYRIGHT
2014-2018 - The Certbot software and documentation are licensed under the Apache 2.0 license as described at https://eff.org/cb-license.
okay bestie that's a wrap on the whole page π you made it to the end, I'm so proud of you fr fr β¨ this was version 5.5, dated Jul 25, 2026, and it's giving CERTBOT(1) β periodt π go get those certs, and remember: no cap, your TLS is gonna be so valid ππ
π¦ where this page comes from
- ubuntu stonking: certbot 5.5.0-2 Β· LetsEncrypt
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms