-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
35 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,36 @@ | ||
# most-used-openssl-commands | ||
# Most used OpenSSL Commands | ||
|
||
A list of most used Openssl Commands | ||
|
||
## Information | ||
|
||
#### Get OpenSSL Version | ||
`openssl version` | ||
|
||
## Generating | ||
|
||
#### Generate a new private key and public key | ||
|
||
Generate private key: | ||
|
||
```shellscript | ||
$> openssl genrsa -out private-key.pem 4096 | ||
``` | ||
|
||
Generate encrypted private key with Password: | ||
```shellscript | ||
$> openssl genrsa -aes256 -out private-key.pem 4096` | ||
``` | ||
|
||
Generate the corresponding public key: | ||
```shellscript | ||
$> openssl rsa -in private-key.pem -pubout -out public-key.pem` | ||
``` | ||
#### Generate a new private key and CSR | ||
|
||
|
||
## Converting | ||
|
||
|
||
## Validating | ||
openssl req -out CSR.csr -pubkey -new -keyout privateKey.key -config .shareopenssl.cmf |