Moved Cert::setFromChain to CertFactory::getCertFromChain