From fd10e017ac6b9b25abdced48435527fd56ed4347 Mon Sep 17 00:00:00 2001 From: trimstray Date: Tue, 12 Feb 2019 19:07:47 +0100 Subject: [PATCH] added 'certbot' one-liners - signed-off-by: trimstray --- README.md | 25 ++++++++++++++++++++++++- 1 file changed, 24 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 52f85b6..6a0320b 100644 --- a/README.md +++ b/README.md @@ -972,6 +972,7 @@ Linux Security Expert - trainings, howtos, checklists, security tools an * [rsync](#tool-rsync) * [host](#tool-host) * [dig](#tool-dig) + * [certbot](#tool-certbot) * [network-other](#tool-network-other) - **[Programming](#programming)** * [awk](#tool-awk) @@ -1241,7 +1242,7 @@ find -xdev -samefile filename find . -type f -exec stat --format '%Y :%y %n' "{}" \; | sort -nr | cut -d: -f2- | head ``` -###### Recursively find/replace of a string with awk or sed +###### Recursively find/replace of a string with sed ```bash find . -not -path '*/\.git*' -type f -print0 | xargs -0 sed -i 's/foo/bar/g' @@ -2595,6 +2596,28 @@ dig -x 172.217.16.14 +short ___ +##### Tool: [certbot](https://certbot.eff.org/) + +###### Generate multidomain certificate + +```bash +certbot certonly -d example.com -d www.example.com +``` + +###### Generate wildcard certificate + +```bash +certbot certonly --manual --preferred-challenges=dns -d example.com -d *.example.com +``` + +###### Generate certificate with 4096 bit private key + +```bash +certbot certonly -d example.com -d www.example.com --rsa-key-size 4096 +``` + +___ + ##### Tool: [network-other](https://github.com/trimstray/the-book-of-secret-knowledge#tool-network-other) ###### Get all subnets for specific AS (Autonomous system)