ACME.SH(1)
π ACME.SH π
okay bestie, sit down, hydrate, because this is acme.sh β User Commands, manual section 1, and she is an icon. π
β¨ NAME β¨
acme.sh β literally just acme.sh. that's the name. that's the whole name. iconic behaviour, no notes. π
πΈ SYNOPSIS πΈ
acme.sh <command> ... [parameters ...]
π DESCRIPTION π
the source of truth lives at https://github.com/acmesh-official/acme.sh and this is version v3.1.4. β¨
π¦ Commands: π¦
-h,--helpβ show this help message.-v,--versionβ show version info.--installβ installacme.shonto your system.--uninstallβ uninstallacme.sh, and uninstall the cron job too. bye bestie π«Ά--upgradeβ upgradeacme.shto the latest code fromhttps://github.com/acmesh-official/acme.sh.--issueβ issue a cert.--deployβ deploy the cert to your server.-i,--install-certβ install the issued cert to Apache/nginx or literally any other server.-r,--renewβ renew a cert.--renew-allβ renew all the certs. all of them. yes really. π₯--revokeβ revoke a cert.--removeβ remove the cert from the list of certs known toacme.sh.--listβ list all the certs.--infoβ show theacme.shconfigs, or the configs for a domain with the[-d domain]parameter.--to-pkcs12β export the certificate and key to a pfx file.--to-pkcs8β convert to pkcs8 format.--sign-csrβ issue a cert from an existing csr.--show-csrβ show the content of a csr.-ccr,--create-csrβ create CSR, professional use.--create-domain-keyβ create an domain private key, professional use.--update-accountβ update account info.--update-account-keyβ rotate account key.--register-accountβ register account key.--deactivate-accountβ deactivate the account.--make-dns-persist-valueβ print the DNS TXT record(s) to enable persistent DNS validation (draft-ietf-acme-dns-persist-01). use with-d <domain>.--create-account-keyβ create an account private key, professional use.--install-cronjobβ install the cron job to renew certs, you don't need to call this. theinstallcommand can automatically install the cron job.--uninstall-cronjobβ uninstall the cron job. theuninstallcommand can do this automatically.--cronβ run cron job to renew all the certs.--set-notifyβ set the cron notification hook, level or mode.--deactivateβ deactivate the domain authz, professional use.--set-default-caβ used with--server, set the default CA to use. see:https://github.com/acmesh-official/acme.sh/wiki/Server--set-default-chainβ set the default preferred chain for a CA. see:https://github.com/acmesh-official/acme.sh/wiki/Preferred-Chain
π Parameters: π
-d,--domain <domain.tld>β specifies a domain, used to issue, renew or revoke etc.--challenge-alias <domain.tld>β the challenge domain alias for DNS alias mode. see:https://github.com/acmesh-official/acme.sh/wiki/DNS-alias-mode--domain-alias <domain.tld>β the domain alias for DNS alias mode. see:https://github.com/acmesh-official/acme.sh/wiki/DNS-alias-mode--preferred-chain <chain>β if the CA offers multiple certificate chains, prefer the chain with an issuer matching this Subject Common Name. if there's no match, the default offered chain will be used. (default: empty) see:https://github.com/acmesh-official/acme.sh/wiki/Preferred-Chain--cert-profile,--certificate-profile <profile>β if the CA offers profiles, select the desired profile. see:https://github.com/acmesh-official/acme.sh/wiki/Profile-selection--valid-to <date-time>β request the NotAfter field of the cert. see:https://github.com/acmesh-official/acme.sh/wiki/Validity--valid-from <date-time>β request the NotBefore field of the cert. see:https://github.com/acmesh-official/acme.sh/wiki/Validity-f,--forceβ force install, force cert renewal or override sudo restrictions.--staging,--testβ use staging server, for testing.--debug [0|1|2|3]β output debug info. defaults to2if the argument is omitted.--output-insecureβ output all the sensitive messages. by default all the credentials/sensitive messages are hidden from the output/debug/log for security. π-w,--webroot <directory>β specifies the web root folder for web root mode.--standaloneβ use standalone mode.--alpnβ use standalone alpn mode.--statelessβ use stateless mode. see:https://github.com/acmesh-official/acme.sh/wiki/Stateless-Mode--apacheβ use Apache mode.--dns [dns_hook]β use dns manual mode or dns api. defaults to manual mode when the argument is omitted. see:https://github.com/acmesh-official/acme.sh/wiki/dnsapi--dns-persistβ use dns-persist-01 validation (draft-ietf-acme-dns-persist-01). requires the persistent_validation-persistTXT record to already exist. use--make-dns-persist-valueto print the value to add.--dnssleep <seconds>β the time in seconds to wait for all the txt records to propagate in dns api mode. it's not necessary to use this by default,acme.shpolls dns status by DOH automatically. β¨-k,--keylength <bits>β specifies the domain key length:2048,3072,4096,8192orec-256(default),ec-384,ec-521.-ak,--accountkeylength <bits>β specifies the account key length:2048,3072,4096,8192orec-256(default),ec-384,ec-521.--log [file]β specifies the log file. defaults to"~/.acme.sh/acme.sh.log"if the argument is omitted.--log-level <1|2>β specifies the log level, default is2.--syslog <0|3|6|7>β syslog level,0: disable syslog,3: error,6: info,7: debug.--eab-kid <eab_key_id>β Key Identifier for External Account Binding.--eab-hmac-key <eab_hmac_key>β HMAC key for External Account Binding.--dns-persist-wildcardβ used with--make-dns-persist-value. addspolicy=wildcardto the generated TXT record so the issuer is also authorized for wildcards and subdomains (draft-ietf-acme-dns-persist-01).--dns-persist-ca-name <name>β used with--make-dns-persist-value. use the given CA identity domain (e.g.ssl.com) as the issuer-domain-name in the TXT record. if omitted, the identities are read from the ACME directory'scaaIdentitiesfield and one record is printed per identity.--dns-persist-days <N>β used with--make-dns-persist-value. add apersistUntilfield to the TXT record so the record self-expires N days from now (the CA will refuse new validations against the record after that time). if omitted, the record has no expiry.
these parameters are to install the cert to nginx/Apache or any other server after issue/renew a cert:
--cert-file <file>β path to copy the cert file to after issue/renew.--key-file <file>β path to copy the key file to after issue/renew.--ca-file <file>β path to copy the intermediate cert file to after issue/renew.--fullchain-file <file>β path to copy the fullchain cert file to after issue/renew.--reloadcmd <command>β command to execute after issue/renew to reload the server.--server <server_uri>β ACME Directory Resource URI. (default:https://acme.zerossl.com/v2/DV90) see:https://github.com/acmesh-official/acme.sh/wiki/Server--accountconf <file>β specifies a customized account config file.--home <directory>β specifies the home dir foracme.sh.--cert-home <directory>β specifies the home dir to save all the certs.--config-home <directory>β specifies the home dir to save all the configurations.--useragent <string>β specifies the user agent string. it will be saved for future use too.-m,--email <email>β specifies the account email, only valid for the--installand--update-accountcommand. multiple emails can be given as a comma-separated list:a@example.com,b@example.com--accountkey <file>β specifies the account key path, only valid for the--installcommand.--days <ndays>β specifies the days to renew the cert when using the--issuecommand. the default value is30days. a negative value renews that many days before the cert expiry. negative values could be used to specify a number of days relative to the expiration date of the certificate.--httpport <port>β specifies the standalone listening port. only valid if the server is behind a reverse proxy or load balancer.--tlsport <port>β specifies the standalone tls listening port. only valid if the server is behind a reverse proxy or load balancer.--local-address <ip>β specifies the standalone/tls server listening address, in case you have multiple ip addresses.--listrawβ only used for the--listcommand, list the certs in raw format.-se,--stop-renew-on-errorβ only valid for the--renew-allcommand. stop if one cert has error in renewal.--treat-skip-as-successβ only valid for the--renew-allcommand. treat skipped certs as success, return0instead of2.--insecureβ do not check the server certificate, in some devices, the api server's certificate may not be trusted.--ca-bundle <file>β specifies the path to the CA certificate bundle to verify api server's certificate.--ca-path <directory>β specifies directory containing CA certificates in PEM format, used by wget or curl.--no-cronβ only valid for the--installcommand, which means: do not install the default cron job. in this case, the certs will not be renewed automatically. π--no-profileβ only valid for the--installcommand, which means: do not install aliases to user profile.--no-colorβ do not output color text.--force-colorβ force output of color text. useful for non-interactive use with theahatool for HTML E-Mails.--eccβ specifies use of the ECC cert. only valid for--install-cert,--renew,--remove,--revoke,--deploy,--to-pkcs8,--to-pkcs12and--create-csr.--csr <file>β specifies the input csr.--pre-hook <command>β command to be run before obtaining any certificates.--post-hook <command>β a command that gets run after we try to get or renew certs. It runs no matter what, bestie β success, failure, the whole vibe. π--renew-hook <command>β runs after each cert that renewed successfully. every single one. one at a time. slay. β¨--deploy-hook <hookname>β this is the hook file that deploys the cert. that's the whole job. π--extended-key-usage <string>β you can hand-write the CSR extended key usage value yourself instead of letting it be chosen. the default isserverAuth,clientAuth. π₯--ocsp,--ocsp-must-stapleβ generate the OCSP-Must-Staple extension. iconic behavior honestly. π--always-force-new-domain-keyβ generates a brand new domain key on renewal. and listen: if you don't pass this, the domain key is not changed by default. lowkey important. π--auto-upgrade [0|1]β only valid for the--upgradecommand, and it says whether to upgrade automatically in the future. if you leave the argument out, it defaults to1. π¦--listen-v4β forces the standalone/tls server to listen at ipv4.--listen-v6β forces the standalone/tls server to listen at ipv6. pick your fighter fr fr. π--request-v4β forces client requests to use ipv4 to connect to the CA server.--request-v6β forces client requests to use ipv6 to connect to the CA server. π€--openssl-bin <file>β lets you point at a customopensslbin location. main character openssl energy. πΈ--use-wgetβ forces it to use wget, for when you've got bothcurlandwgetinstalled and you need wget specifically. π--yes-I-know-dns-manual-mode-enough-go-ahead-pleaseβ forces use of dns manual mode. yes the flag name is a whole mood, no you cannot shorten it. see:https://github.com/acmesh-official/acme.sh/wiki/dns-manual-modeπ«Ά-b,--branch <branch>β only valid for the--upgradecommand; tells it the branch name to upgrade to. π§--notify-level <0|1|2|3>β sets the notification level. default value is2. so here's the girl math:0: disabled, no notification will be sent. not a single one. π1: send notifications only when there is an error. π2: send notifications when a cert is successfully renewed, or there is an error.3: send notifications when a cert is skipped, renewed, or error. like, everything. all of it. β
--notify-mode <0|1>β sets the notification mode. default value is0.0: Bulk mode. send all the domain's notifications in one message (mail). one big text message basically. π1: Cert mode. send a message for every single cert.
--notify-hook <hookname>β sets the notify hook. π--notify-source <server name>β sets the server name in the notification message.--revoke-reason <0-10>β the reason for revocation, and you use it alongside the--revokecommand. see:https://github.com/acmesh-official/acme.sh/wiki/revokecertπ--password <password>β adds a password to the exported pfx or pkcs8 file. use it with--to-pkcs12or--to-pkcs8. keep that password safe bestie, i'm begging. π
π SEE ALSO
The full documentation for acme.sh is maintained as a Texinfo manual. If the info and acme.sh programs are properly installed at your site, the command
info acme.sh
should give you access to the complete manual. go read it, it's giving β¨ educated β¨. π¦
and that's the whole page, babe β you officially know acme.sh. this was from acme.sh 3.1.4+~cs0.0.20260716, dated July 2026, and it's the ACME.SH(1) manual page. go renew some certs, you absolute legend π
ππΈ
π¦ where this page comes from
- ubuntu stonking: acme.sh 3.1.4+~cs0.0.20260716-2 Β· GPL-3.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms