updated keystore handling for example keystore
fixed handling of RSA private keys as these are loaded as KeyPair