mirror of
https://github.com/fluencelabs/rust-libp2p
synced 2025-05-20 14:41:21 +00:00
11 lines
294 B
Markdown
11 lines
294 B
Markdown
# How the keys were generated
|
|
|
|
The keys used in the examples were generated like this:
|
|
|
|
```sh
|
|
openssl genrsa -out private.pem 2048
|
|
openssl rsa -in private.pem -outform DER -pubout -out public.der
|
|
openssl pkcs8 -in private.pem -topk8 -nocrypt -out private.pk8
|
|
rm private.pem # optional
|
|
```
|