hasDomainKeyPair() public method

Check if there is a key pair associated to the given domain in the repository.
public hasDomainKeyPair ( string $domain ) : boolean
$domain string
return boolean
Example #1
0
 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;
 }