Browse Source

added 'certbot' one-liners

- signed-off-by: trimstray <trimstray@gmail.com>
pull/63/head
trimstray 5 years ago
parent
commit
fd10e017ac
1 changed files with 24 additions and 1 deletions
  1. +24
    -1
      README.md

+ 24
- 1
README.md View File

@@ -972,6 +972,7 @@ Linux Security Expert</b></a> - 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 </path/to/dir> -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)


Loading…
Cancel
Save