Here's an example: klar (11:39) ~>ssh-keygen Generating public/private rsa key pair. Instead, you use it to sign a certificate request like this: openssl req. There are four key generation methods described below for each key type: Method 1: OpenSSL Method 2: jose_jwk:generate_key/1 or JOSE. In this example, I have used a key length of 3072 bits. To create a private key: In the Policy Manager, go to Tasks > Certificates, Keys and Secrets > Manage Private Keys. Generate Keys for JWT algs 'HS256','HS384', 'HS512'(HMAC using SHA-256 / 384 / 512 hash alg): It's a symmetric key algorithm. Your private key will be saved in the current working directory. key AES-256 expects a key of 256 bit, 32 byte. Contents of this file is shown in Listing 3:
Openssl generate hs256 key openssl req -new -key device2.