AcmePhp\Cli\Command\RequestCommand::hasValidCertificate PHP Method

hasValidCertificate() private method

private hasValidCertificate ( $domain, array $alternativeNames )
$alternativeNames array
    private function hasValidCertificate($domain, array $alternativeNames)
    {
        if (!$this->repository->hasDomainCertificate($domain)) {
            return false;
        }
        if (!$this->repository->hasDomainKeyPair($domain)) {
            return false;
        }
        if (!$this->repository->hasDomainDistinguishedName($domain)) {
            return false;
        }
        if ($this->repository->loadDomainDistinguishedName($domain)->getSubjectAlternativeNames() != $alternativeNames) {
            return false;
        }
        return true;
    }