switching from java RSAKeys to bouncycastle ones