Reformat page

This commit is contained in:
RealStickman 2023-02-19 15:15:17 +01:00
parent 8064314a68
commit 9d7060f531

View File

@ -8,19 +8,24 @@ visible: true
## Getting ACME.SH
```sh
$ git clone https://github.com/acmesh-official/acme.sh.git
$ cd ./acme.sh
$ ./acme.sh --install -m my@example.com
git clone https://github.com/acmesh-official/acme.sh.git
cd ./acme.sh
./acme.sh --install -m my@example.com
```
## First time ZeroSSL registration
`$ (path to)/acme.sh --register-account -m (email)`
```sh
(path to)/acme.sh --register-account -m (email)
```
## Issue new certificate
Needs root to start a server on port 80
`# (path to)/acme.sh --issue --standalone -d (url)`
```sh
(path to)/acme.sh --issue --standalone -d (url)
```
## Issue new certificate with DNS API
@ -28,9 +33,13 @@ Needs root to start a server on port 80
### Gandi
`export GANDI_LIVEDNS_KEY="(api key)"`
```sh
export GANDI_LIVEDNS_KEY="(api key)"
```
`(path to)/acme.sh --issue --dns dns_gandi_livedns -d (domain)`
```sh
(path to)/acme.sh --issue --dns dns_gandi_livedns -d (domain)
```
## Install certificate
@ -78,4 +87,7 @@ WantedBy=timers.target
```
Enable timer
`systemctl enable --now acme-sh.timer`
```sh
systemctl enable --now acme-sh.timer
```