protected function validateDomainInput(InputInterface $input)
{
$this->domainName = $input->getArgument('name');
if (!$this->validDomain($this->domainName)) {
$this->stdErr->writeln("You must specify a <error>valid domain name</error>");
return false;
}
$this->certPath = $input->getOption('cert');
$this->keyPath = $input->getOption('key');
$this->chainPaths = $input->getOption('chain');
if ($this->certPath || $this->keyPath || $this->chainPaths) {
if (!isset($this->certPath, $this->keyPath)) {
$this->stdErr->writeln("Both the --cert and the --key are required for SSL certificates");
return false;
}
return $this->validateSslOptions();
}
return true;
}