mirror of
https://github.com/trimstray/the-book-of-secret-knowledge
synced 2024-12-26 09:58:40 +01:00
update openssl one-liners
- signed-off-by: trimstray <trimstray@gmail.com>
This commit is contained in:
parent
6454d20d31
commit
c8a4d7fa59
1 changed files with 9 additions and 2 deletions
11
README.md
11
README.md
|
@ -2385,10 +2385,17 @@ openssl x509 -signkey ${_fd} -nodes \
|
||||||
-in ${_fd_csr} -req -days ${_days} -out ${_fd_out} )
|
-in ${_fd_csr} -req -days ${_days} -out ${_fd_out} )
|
||||||
```
|
```
|
||||||
|
|
||||||
###### Generate DH Param key
|
###### Generate DH public parameters
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
openssl dhparam -out /etc/nginx/ssl/dhparam_4096.pem 4096
|
( _dh_size="2048" ; \
|
||||||
|
openssl dhparam -out /etc/nginx/ssl/dhparam_${_dh_size}.pem "$_dh_size" )
|
||||||
|
```
|
||||||
|
|
||||||
|
###### Display DH public parameters
|
||||||
|
|
||||||
|
```bash
|
||||||
|
openssl pkeyparam -in dhparam.pem -text
|
||||||
```
|
```
|
||||||
|
|
||||||
###### Extract private key from pfx
|
###### Extract private key from pfx
|
||||||
|
|
Loading…
Reference in a new issue