Loading src/main/resources/RsaSignaturePriv.key.template +21 −0 Original line number Diff line number Diff line Loading @@ -2,4 +2,25 @@ The key can be generated using core/cadc-util/src/main/java/ca/nrc/cadc/util/RsaSignatureGenerator.java check comments online. Usage example: cd my_dir git clone https://github.com/opencadc/core export JAVA_HOME=/usr/lib/jvm/java-openjdk cd core/cadc-util gradle build cd ../cadc-log gradle build $] export CLASSPATH=/root/lib/cadc-util.jar:/root/lib/log4j-1.2.17.jar $] mkdir my_key_dir $] java ca.nrc.cadc.util.RsaSignatureGenerator my_key_dir Done $] ls -al my_key_dir/ total 16 drwxr-xr-x 2 root root 59 Feb 1 13:08 . dr-xr-x---. 34 root root 4096 Feb 1 13:08 .. -rw-r--r-- 1 root root 914 Feb 1 13:08 RsaSignaturePriv.key -rw-r--r-- 1 root root 271 Feb 1 13:08 RsaSignaturePub.key -----END PRIVATE KEY----- src/main/resources/RsaSignaturePub.key.template +21 −0 Original line number Diff line number Diff line Loading @@ -2,4 +2,25 @@ The key can be generated using core/cadc-util/src/main/java/ca/nrc/cadc/util/RsaSignatureGenerator.java check comments online. Usage example: cd my_dir git clone https://github.com/opencadc/core export JAVA_HOME=/usr/lib/jvm/java-openjdk cd core/cadc-util gradle build cd ../cadc-log gradle build $] export CLASSPATH=/root/lib/cadc-util.jar:/root/lib/log4j-1.2.17.jar $] mkdir my_key_dir $] java ca.nrc.cadc.util.RsaSignatureGenerator my_key_dir Done $] ls -al my_key_dir/ total 16 drwxr-xr-x 2 root root 59 Feb 1 13:08 . dr-xr-x---. 34 root root 4096 Feb 1 13:08 .. -rw-r--r-- 1 root root 914 Feb 1 13:08 RsaSignaturePriv.key -rw-r--r-- 1 root root 271 Feb 1 13:08 RsaSignaturePub.key -----END PUBLIC KEY----- Loading
src/main/resources/RsaSignaturePriv.key.template +21 −0 Original line number Diff line number Diff line Loading @@ -2,4 +2,25 @@ The key can be generated using core/cadc-util/src/main/java/ca/nrc/cadc/util/RsaSignatureGenerator.java check comments online. Usage example: cd my_dir git clone https://github.com/opencadc/core export JAVA_HOME=/usr/lib/jvm/java-openjdk cd core/cadc-util gradle build cd ../cadc-log gradle build $] export CLASSPATH=/root/lib/cadc-util.jar:/root/lib/log4j-1.2.17.jar $] mkdir my_key_dir $] java ca.nrc.cadc.util.RsaSignatureGenerator my_key_dir Done $] ls -al my_key_dir/ total 16 drwxr-xr-x 2 root root 59 Feb 1 13:08 . dr-xr-x---. 34 root root 4096 Feb 1 13:08 .. -rw-r--r-- 1 root root 914 Feb 1 13:08 RsaSignaturePriv.key -rw-r--r-- 1 root root 271 Feb 1 13:08 RsaSignaturePub.key -----END PRIVATE KEY-----
src/main/resources/RsaSignaturePub.key.template +21 −0 Original line number Diff line number Diff line Loading @@ -2,4 +2,25 @@ The key can be generated using core/cadc-util/src/main/java/ca/nrc/cadc/util/RsaSignatureGenerator.java check comments online. Usage example: cd my_dir git clone https://github.com/opencadc/core export JAVA_HOME=/usr/lib/jvm/java-openjdk cd core/cadc-util gradle build cd ../cadc-log gradle build $] export CLASSPATH=/root/lib/cadc-util.jar:/root/lib/log4j-1.2.17.jar $] mkdir my_key_dir $] java ca.nrc.cadc.util.RsaSignatureGenerator my_key_dir Done $] ls -al my_key_dir/ total 16 drwxr-xr-x 2 root root 59 Feb 1 13:08 . dr-xr-x---. 34 root root 4096 Feb 1 13:08 .. -rw-r--r-- 1 root root 914 Feb 1 13:08 RsaSignaturePriv.key -rw-r--r-- 1 root root 271 Feb 1 13:08 RsaSignaturePub.key -----END PUBLIC KEY-----