This guide explains how to generate RSA key pairs for your fineract-cn-* service using the org.apache.fineract.cn.provisioner service
Step-by-step guide to generate RSA Keys
- Go to your application.yml file create the following properties
system.publicKey:
modulus:exponent:
timestamp:
system.privateKey:
modulus:
exponent:system:
initialclientid: sillyRabbit // this is the default clientid - From your Service package, go to the test>java>org.apache.fineract.cn.provisioner > GenerateRsaKeyPair run the Unit Test and
- Console both public and private key Modulus and Exponent
- The timestamp should be current unix timestamp
Copy the values from step 3 above to replace the properties created in step 1.
You can as well do this at run time https://github.com/apache/fineract-cn-provisioner/compare/develop...Anh3h:develop
check the changes above for how to have configuration at run time.
The issue with this approach is that its not scalable