Creating an RSA Key
Last updated
Last updated
### Generate key
# BonusPay_key.pem Key file name
# 2048 Key size, at least 2048
openssl genrsa -out BonusPay_key.pem 2048
### Export public key
# BonusPay_key.pem Key file generated in the previous step
# BonusPay_key_public.pem Exported public key file name
openssl rsa -in BonusPay_key.pem -out BonusPay_key_public.pem -pubout
### Export Java-compatible private key
# BonusPay_key.pem Key file generated in the first step
# BonusPay_key_Private.pem
openssl pkcs8 -in BonusPay_key.pem -topk8 -nocrypt -out BonusPay_key_private.pem