security: Implement certificate checking in KeyChain::verifyData.