Use OpenSSL to generate RSA keys
Install OpenSSL
Linux(Ubuntu)
sudo apt-get install openssl
Windows
Donwload from Official website Downloads
macOS
brew reinstall openssl
Generation of RSA key pair
Linux / macOS
openssl genrsa -out pay_rsa_private_key.pem 1024
openssl pkcs8 -topk8 -inform PEM -in pay_rsa_private_key.pem -outform PEM -nocrypt
openssl rsa -in pay_rsa_private_key.pem -pubout -out pay_rsa_public_key.pemWindows in CMD
C:\OpenSSL-Win32\bin>openssl.exe
OpenSSL> genrsa -out pay_rsa_private_key.pem 1024
OpenSSL> pkcs8 -topk8 -inform PEM -in pay_rsa_private_key.pem -outform PEM -nocrypt
OpenSSL> rsa -in pay_rsa_private_key.pem -pubout -out pay_rsa_public_key.pem
OpenSSL> exitMethod
The RSA key pair generation will result in two files: pay_rsa_private_key.pem (private key) and pay_rsa_public_key.pem (public key) in the current directory. The former is to be kept secure by the merchant for signing critical interfaces, while the latter's uncommented content should be uploaded via the interface. EchoooPay's backend portal will then verify the interface using the provided public key.
PKCS8 Formatted Annotated Private Key File
Public Key
Information for the Uploaded Public Key File
Last updated