From 9d7060f531c7553ba4caafd946f917f2dcbb6fc4 Mon Sep 17 00:00:00 2001 From: RealStickman Date: Sun, 19 Feb 2023 15:15:17 +0100 Subject: [PATCH] Reformat page --- pages/02.linux/acme-sh/default.en.md | 32 +++++++++++++++++++--------- 1 file changed, 22 insertions(+), 10 deletions(-) diff --git a/pages/02.linux/acme-sh/default.en.md b/pages/02.linux/acme-sh/default.en.md index 994772b..6bbc45b 100644 --- a/pages/02.linux/acme-sh/default.en.md +++ b/pages/02.linux/acme-sh/default.en.md @@ -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)` +Needs root to start a server on port 80 + +```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 @@ -77,5 +86,8 @@ Persistent=true WantedBy=timers.target ``` -Enable timer -`systemctl enable --now acme-sh.timer` +Enable timer + +```sh +systemctl enable --now acme-sh.timer +```