- add doc/global_settings.md - docker_database.md - update dependency.md - extrack hlaeja from development-compose.yml to hlaeja-compose.yml - rename compose.yml to development-compose.yml - extract text from readme.md - databases to doc/docker_database.md - hlaeja service to doc/docker_hlaeja.md - move and rename structure.md to doc/dependency.md - move and rename identity.md to doc/rsa_key.mk - move and rename certificate.md to doc/keystore.md
17 lines
611 B
Markdown
17 lines
611 B
Markdown
# Generate Private and Public RSA Key
|
|
|
|
OpenSSL Project is dedicated to providing a simple installation of OpenSSL for Microsoft Windows.
|
|
[Download](https://slproweb.com/products/Win32OpenSSL.html)
|
|
|
|
Generate an RSA private key, of size 2048, and output it to a file named `identity_private_key.pem` in to `./cert`
|
|
|
|
```shell
|
|
openssl genrsa -out identity_private_key.pem 2048
|
|
```
|
|
|
|
Extract the public key from `identity_private_key.pem` from `./cert`, and output it to a file named `identity_public_key.pem` in to `./cert`
|
|
|
|
```shell
|
|
openssl rsa -in identity_private_key.pem -pubout -out identity_public_key.pem
|
|
```
|