mirror of
https://github.com/trimstray/the-book-of-secret-knowledge.git
synced 2024-10-01 01:26:00 -04:00
#34 - security of 3des for openssl
- signed-off-by: trimstray <trimstray@gmail.com>
This commit is contained in:
parent
48ef1ba1dd
commit
23a2bc228b
@ -1289,8 +1289,9 @@ openssl s_client -cipher 'AES128-SHA' -connect google.com:443
|
|||||||
###### Generate private key
|
###### Generate private key
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
# _ciph: des3, aes
|
# _ciph: des3, aes128, aes256
|
||||||
( _ciph="des3" ; _fd="private.key" ; _len="2048" ; \
|
# _len: 2048, 4096
|
||||||
|
( _ciph="aes128" ; _fd="private.key" ; _len="4096" ; \
|
||||||
openssl genrsa -${_ciph} -out ${_fd} ${_len} )
|
openssl genrsa -${_ciph} -out ${_fd} ${_len} )
|
||||||
```
|
```
|
||||||
|
|
||||||
@ -1311,7 +1312,7 @@ openssl rsa -pubout -in ${_fd} -out ${_fd_pub} )
|
|||||||
###### Generate private key + csr
|
###### Generate private key + csr
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
( _fd="private.key" ; _fd_csr="request.csr" ; _len="2048" ; \
|
( _fd="private.key" ; _fd_csr="request.csr" ; _len="4096" ; \
|
||||||
openssl req -out ${_fd_csr} -new -newkey rsa:${_len} -nodes -keyout ${_fd} )
|
openssl req -out ${_fd_csr} -new -newkey rsa:${_len} -nodes -keyout ${_fd} )
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user