mirror of
https://github.com/acmesh-official/acme.sh.git
synced 2025-04-21 01:20:24 +08:00
Page:
How to install
Pages
Blogs and tutorials
BuyPass.com CA
CA
Change default CA to ZeroSSL
Code of conduct
DNS API Dev Guide
DNS API Structural Info description
DNS API Test
DNS alias mode
DNS manual mode
Deploy ssl certs to apache server
Deploy ssl certs to nginx
Deploy ssl to SolusVM
Donate list
Enable acme.sh log
Exit Codes
Explicitly use DOH
Google Public CA
Google Trust Services CA
Home
How to debug acme.sh
How to debug acme.sh: No such file or directory
How to install
How to issue a cert
How to run on DD WRT with lighttpd
How to run on OpenWrt
How to use Amazon Route53 API
How to use Azure DNS
How to use OVH domain api
How to use Oracle Cloud Infrastructure DNS
How to use lexicon DNS API
How to use on Solaris based operating sytsems
How to use on embedded FreeBSD
Install in China
Install preparations
Issue a cert from existing CSR
OVH Success
Options and Params
Preferred Chain
Run acme.sh in docker
SSL.com CA
Server
Simple guide to add TLS cert to cpanel
Stateless Mode
Synology NAS Guide
Synology RT1900ac and RT2600ac install guide
TLS ALPN without downtime
Usage on Tomato routers
Use DNS Exit DNS API
Using pre hook post hook renew hook reloadcmd
Using systemd units instead of cron
Utilize multiple DNS API keys
Validity
ZeroSSL.com CA
deploy to docker containers
deployhooks
dnsapi
dnsapi2
dnscheck
dnssleep
how about the private key access modes, chmod, or chown or umask
ipcert
notify
openvpn2.4.7服务端和客户端使用注意
revokecert
sudo
tlsa next key
如何安装
说明
38
How to install
NetSysFire edited this page 2025-03-01 03:11:47 +01:00
Update the Linux/BSD system with latest CA bundle and patches from System Update otherwise some issues may occur when generating your free SSL certificates. Once completed begin with the install procedure below.
- CentOs:
yum update ca-certificates
- Debian:
apt update ; apt install ca-certificates
(updates package if already installed)
also applies to Debian-based distros like Ubuntu, LinuxMint, etc.
1. Install from web: https://get.acme.sh
Install https://github.com/acmesh-official/acme.sh
curl https://get.acme.sh | sh -s email=my@example.com
or
wget -O - https://get.acme.sh | sh -s email=my@example.com
2. Or, install from GitHub:
curl https://raw.githubusercontent.com/acmesh-official/acme.sh/master/acme.sh | sh -s -- --install-online -m my@example.com
or:
wget -O - https://raw.githubusercontent.com/acmesh-official/acme.sh/master/acme.sh | sh -s -- --install-online -m my@example.com
3. Or, git clone and install:
git clone --depth 1 https://github.com/acmesh-official/acme.sh.git
cd acme.sh
./acme.sh --install -m my@example.com
4. Advanced installation
git clone --depth 1 https://github.com/acmesh-official/acme.sh.git
cd acme.sh
./acme.sh --install \
--home ~/myacme \
--config-home ~/myacme/data \
--cert-home ~/mycerts \
--accountemail "my@example.com" \
--accountkey ~/myaccount.key \
--accountconf ~/myaccount.conf \
--useragent "this is my client."
You don't need to set them all, just set those ones you care about.
Explanations :
--home
is a customized dir to installacme.sh
in. By default, it installs into~/.acme.sh
--config-home
is a writable folder, acme.sh will write all the files(including cert/keys, configs) there. By default, it's in--home
--cert-home
is a customized dir to save the certs you issue. By default, it's saved in--config-home
.--accountemail
is the email used to register an account to Let's Encrypt, you will receive a renewal notice email here.--accountkey
is the file saving your account private key. By default, it's saved in--config-home
.--useragent
is the user-agent header value used to send to Let's Encrypt.--nocron
install acme.sh without cronjob
5. Special case: Converting LE account data from certbot to acme.sh
If already using certbot, then there is the possibility to convert its LE account data to acme.sh format. See https://github.com/maddes-b/linux-stuff/tree/main/acme.sh .
If re-using the LE account created from certbot, then it is recommended not to specify -m/--email
during installation.