security: In BasicIdentityStorage, make addKey add the identity if needed, and don't set it as the default. Added addCertificate and getCertificate.
unit_tests: In test_identity_methods, need to call setDefaultKeyForIdentity after adding a key.
unit_tests: In TestIdentityManager.generateRSAKeyPair, pass KeyType.RSA.