Generate the RSA key pair using: Private key (keep it secret!): openssl genrsa -out authservice.key 2048 Extract the public key (publish it): openssl rsa -in authservice.pem -outform PEM -pubout -out authservice.pub