security: Change IdentityStorage.getCertificate to return Certificate instead of Data.