Пример #1
0
 /**
  * Retrieves the absolute URL called by the CA.
  *
  * @param AuthorizationChallenge $authorizationChallenge
  *
  * @return string
  */
 public function getCheckUrl(AuthorizationChallenge $authorizationChallenge)
 {
     return sprintf('http://%s/.well-known/acme-challenge/%s', $authorizationChallenge->getDomain(), $authorizationChallenge->getToken());
 }
Пример #2
0
 /**
  * Retrieves the name of the TXT record to register.
  *
  * @param AuthorizationChallenge $authorizationChallenge
  *
  * @return string
  */
 public function getRecordName(AuthorizationChallenge $authorizationChallenge)
 {
     return sprintf('_acme-challenge.%s.', $authorizationChallenge->getDomain());
 }