Generating a Key Pair

To perform autonomous authentication, you will need a RSA public/private key pair with a length of at least 1024 bits. To generate these keys, you can download and run KeyGenerator.exe, which will provide you with a private-key.xml and a public-key.xml. Or you can use OpenSSL to generate these keys by running the following two commands:

openssl genrsa -out rsaprivkey.pem 2048
openssl rsa -in rsaprivkey.pem -pubout -outform PEM -out rsapubkey.pem

This will give you a public key in rsapubkey.pem and a private key in rsaprivkey.pem. It is your responsibility to keep the private key secure, since this is what gives you access to your users’ data.

Leave A Comment?