Add convenicence method to print out RSA keys.
diff --git a/README.md b/README.md
index 0d097d2..a4f6501 100644
--- a/README.md
+++ b/README.md
@@ -22,3 +22,11 @@
 
 ## License
 See [LICENSE](LICENSE) file.
+
+## Usage
+
+### Generate and print RSA keys
+
+You can use this library to generate and print RSA keys. You need to add path to spring-core (see second -cp parameter in the following example).
+
+`java -cp lang-0.1.0-BUILD-SNAPSHOT.jar:spring-core-4.3.3.RELEASE.jar  org.apache.fineract.cn.lang.security.RsaKeyPairFactory`
diff --git a/src/main/java/org/apache/fineract/cn/lang/security/RsaKeyPairFactory.java b/src/main/java/org/apache/fineract/cn/lang/security/RsaKeyPairFactory.java
index 4b816ed..8b8e742 100644
--- a/src/main/java/org/apache/fineract/cn/lang/security/RsaKeyPairFactory.java
+++ b/src/main/java/org/apache/fineract/cn/lang/security/RsaKeyPairFactory.java
@@ -39,6 +39,15 @@
   private RsaKeyPairFactory() {
   }
 
+  public static void main(String[] args) {
+    KeyPairHolder keyPair = RsaKeyPairFactory.createKeyPair();
+    System.out.println("system.publicKey.exponent=" + keyPair.getPublicKeyExp());
+    System.out.println("system.publicKey.modulus=" + keyPair.getPublicKeyMod());
+    System.out.println("system.publicKey.timestamp=" + keyPair.getTimestamp());
+    System.out.println("system.privateKey.modulus=" + keyPair.getPrivateKeyMod());
+    System.out.println("system.privateKey.exponent=" + keyPair.getPrivateKeyExp());
+  }
+
   public static KeyPairHolder createKeyPair() {
     try {
       final KeyFactory keyFactory = KeyFactory.getInstance("RSA");
@@ -116,4 +125,4 @@
       return privateKey.getPrivateExponent();
     }
   }
-}
\ No newline at end of file
+}
diff --git a/src/test/java/org/apache/fineract/cn/lang/security/RsaKeyPairFactoryTest.java b/src/test/java/org/apache/fineract/cn/lang/security/RsaKeyPairFactoryTest.java
index 3d104c7..d342449 100644
--- a/src/test/java/org/apache/fineract/cn/lang/security/RsaKeyPairFactoryTest.java
+++ b/src/test/java/org/apache/fineract/cn/lang/security/RsaKeyPairFactoryTest.java
@@ -36,4 +36,10 @@
     Assert.assertNotNull(keyPairHolder.publicKey());
     Assert.assertNotNull(keyPairHolder.privateKey());
   }
+
+  @Test
+  public void shouldHaveMainMethod() throws Exception {
+    RsaKeyPairFactory.main(new String[]{});
+  }
+
 }