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

  1. 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
  2.  From your Service package, go to the test>java>org.apache.fineract.cn.provisioner > GenerateRsaKeyPair run the Unit Test and
  3. Console both public and private key Modulus and Exponent
  4. The timestamp should be current unix timestamp
  5. 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