security: In BasicIdentityStorage, implement more methods up to doesCertificateExist.