#!/bin/bash

# Creates a private/public key pair that can be used to generate and sign a JWT.
#
# PLEASE NOTE that the private key should be kept secret, and should in no 
# circumstances be sent to anyone else.
#
# The public key, however, is not secret, and can be sent via unsecure channels,
# and is the one used by Avida to verify the signed JWT.

openssl genrsa -out avida-key.pem 4096
openssl rsa -in avida-key.pem -pubout -out avida-key-public.pem

