mirror of
https://github.com/acmesh-official/acme.sh.git
synced 2024-12-26 01:00:10 +08:00
Page:
How to use on Solaris based operating sytsems
Pages
Blogs and tutorials
BuyPass.com CA
CA
Change default CA to ZeroSSL
Code of conduct
DNS API Dev Guide
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 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
如何安装
说明
1
How to use on Solaris based operating sytsems
jadrevenge edited this page 2017-09-20 10:47:56 +01:00
I ran this on Illumos, with Apache22
1. get acme.sh
2. Make sure you have wget and GNU sed installed
pkg install gnu-sed wget
3. Set up your environment
- your path needs to include GNU sed before "Sun" sed, and include the path to "apachectl"
- you need to set "ACME_DIR" to be somewhere at least chmod 755 readable by the Apache web server (i.e. don't use /root/acme because the /root directory is not read/exec by "other". The default ACME_DIR is set to be the automounted "/home/.acme" directory. (Neil suggests possibly using /tmp/.acme)
export PATH ; PATH=/usr/gnu/bin:/usr/bin:/usr/sbin:/sbin:/usr/apache2/2.2/bin
export ACME_DIR ; ACME_DIR=/tmp/.acme
4. Run the acme.sh
- Please don't specify the "-w" option, this will only cause confusion
- if you are using Proxy forwarding, like I was, or any other similar configuration; you will need to modify the Apache configuration to allow "/.well-known" to pass through
- I never had any luck with curl, so I force the use of wget. YMMV
- if you are going to play with this a lot, you will want to add "--test" to the command, which will use the "staging area" of letencrypt.com, and/or --debug to check that it is working. If you do use the "staging area"; when you come to do this for real you will need to add "--force" to the command
./acme.sh --issue --apache -d online.domain.com --use-wget
5. adding to cron
the simple command to add this to cron is:
./acme.sh --install-cronjob
however you might well need to copy/move the "acme.sh" command into ~/.acme.sh for this to pick up the location correctly.
Buy me a beer, Donate to acme.sh if it saves your time. Your donation makes acme.sh better: https://donate.acme.sh/
如果 acme.sh 帮你节省了时间,请考虑赏我一杯啤酒🍺, 捐助: https://donate.acme.sh/ 你的支持将会使得 acme.sh 越来越好. 感谢