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 ## Getting ACME.SH
```sh ```sh
$ git clone https://github.com/acmesh-official/acme.sh.git git clone https://github.com/acmesh-official/acme.sh.git
$ cd ./acme.sh cd ./acme.sh
$ ./acme.sh --install -m my@example.com ./acme.sh --install -m my@example.com
``` ```
## First time ZeroSSL registration ## First time ZeroSSL registration
`$ (path to)/acme.sh --register-account -m (email)` ```sh
(path to)/acme.sh --register-account -m (email)
```
## Issue new certificate ## Issue new certificate
Needs root to start a server on port 80 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 ## Issue new certificate with DNS API
@ -28,9 +33,13 @@ Needs root to start a server on port 80
### Gandi ### 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 ## Install certificate
@ -77,5 +86,8 @@ Persistent=true
WantedBy=timers.target WantedBy=timers.target
``` ```
Enable timer Enable timer
`systemctl enable --now acme-sh.timer`
```sh
systemctl enable --now acme-sh.timer
```