I would like to store my RSA private key, which app uses to sign its data before sending to the server, somewhere safely, so that it would be much harder to steal the key than just copy it from app folder.
I know that Java KeyStore
could be used to store keys and load them by runtime, but how can I load the key from KeyStore
without a password for a signed jar?
For example, I've loaded a key "mykey" into KeyStore, and I signed App.jar. I want to load the key in runtime from KeyStore
automaticly, without specifying a password to KeyStore
, if the app which requested it is signed.
Perhaps, I don't understand the principles of the KeyStore
correctly. But the task is to sign data which is sent to server and store the key safely. (The app is a POS application, so it should be loaded automaticly, without any password given by startup).