Zenki
Zenki Home Toggle Dark/Light/Auto mode Toggle Dark/Light/Auto mode Toggle Dark/Light/Auto mode Back to homepage

Create your keys

To generate an RSA public and private key pair in PKCS #8 format perform the following steps in this guide.

  • Required tools

Verify that you have OpenSSL installed on your system, open a terminal and type the following command:

1
 OpenSSL version

You should see output like below:

1
OpenSSL 1.1.1f  31 Mar 2020

Otherwise, see our article on Install OpenSSL.

  • Generating your keys

  1. Generate your Private / Public RSA keypair:
1
openssl genrsa -out keypair.pem 4096
  1. Extract the private part (this is your private key to use for signed data):
1
openssl pkcs8 -topk8 -inform PEM -outform PEM -nocrypt -in keypair.pem -out private.key

3.Extract the public part:

1
openssl rsa -in keypair.pem -pubout -out publickey.pub

Notes:

  • Save your private key file on a secure storage device. Do not store it on shared or public file storage media.
  • The public key you must upload to the system must be of the public key certificate (X.509).

You can continue with your preparations for your integration.