added 'certbot' one-liners
- signed-off-by: trimstray <trimstray@gmail.com>
This commit is contained in:
parent
1c282ee720
commit
fd10e017ac
25
README.md
25
README.md
@ -972,6 +972,7 @@ Linux Security Expert</b></a> - trainings, howtos, checklists, security tools an
|
|||||||
* [rsync](#tool-rsync)
|
* [rsync](#tool-rsync)
|
||||||
* [host](#tool-host)
|
* [host](#tool-host)
|
||||||
* [dig](#tool-dig)
|
* [dig](#tool-dig)
|
||||||
|
* [certbot](#tool-certbot)
|
||||||
* [network-other](#tool-network-other)
|
* [network-other](#tool-network-other)
|
||||||
- **[Programming](#programming)**
|
- **[Programming](#programming)**
|
||||||
* [awk](#tool-awk)
|
* [awk](#tool-awk)
|
||||||
@ -1241,7 +1242,7 @@ find </path/to/dir> -xdev -samefile filename
|
|||||||
find . -type f -exec stat --format '%Y :%y %n' "{}" \; | sort -nr | cut -d: -f2- | head
|
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
|
```bash
|
||||||
find . -not -path '*/\.git*' -type f -print0 | xargs -0 sed -i 's/foo/bar/g'
|
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)
|
##### Tool: [network-other](https://github.com/trimstray/the-book-of-secret-knowledge#tool-network-other)
|
||||||
|
|
||||||
###### Get all subnets for specific AS (Autonomous system)
|
###### Get all subnets for specific AS (Autonomous system)
|
||||||
|
Loading…
Reference in New Issue
Block a user