mirror of
https://github.com/trimstray/the-book-of-secret-knowledge
synced 2024-12-26 09:58:40 +01:00
add new one-liners to 'openssl'
- signed-off-by: trimstray <trimstray@gmail.com>
This commit is contained in:
parent
dbd0756e30
commit
32f1f9e33f
1 changed files with 14 additions and 0 deletions
14
README.md
14
README.md
|
@ -2308,6 +2308,20 @@ openssl x509 -signkey ${_fd} -nodes \
|
|||
openssl dhparam -out /etc/nginx/ssl/dhparam_4096.pem 4096
|
||||
```
|
||||
|
||||
###### Extract private key from pfx
|
||||
|
||||
```bash
|
||||
( _fd_pfx="cert.pfx" ; _fd_key="key.pem" ; \
|
||||
openssl pkcs12 -in ${_fd_pfx} -nocerts -nodes -out ${_fd_key} )
|
||||
```
|
||||
|
||||
###### Extract private key and certs from pfx
|
||||
|
||||
```bash
|
||||
( _fd_pfx="cert.pfx" ; _fd_pem="key_certs.pem" ; \
|
||||
openssl pkcs12 -in ${_fd_pfx} -nodes -out ${_fd_pem} )
|
||||
```
|
||||
|
||||
###### Convert DER to PEM
|
||||
|
||||
```bash
|
||||
|
|
Loading…
Reference in a new issue