security: fix bug in BasicIdentityStorage::getCertificate: need a new Data object.