Throw exception if certificate can not be found