mirror of
https://github.com/opnsense/plugins.git
synced 2026-06-08 16:34:18 -04:00
src: style sweep
This commit is contained in:
parent
e96c384212
commit
c4c0c2b4af
2 changed files with 12 additions and 12 deletions
|
|
@ -97,9 +97,9 @@ foreach ($configNodes as $key => $value) {
|
|||
echo "exported $type to " . $output_pem_filename . "\n";
|
||||
// Check if automatic OCSP updates are enabled.
|
||||
if (isset($configObj->OPNsense->HAProxy->general->tuning->ocspUpdateEnabled) and ($configObj->OPNsense->HAProxy->general->tuning->ocspUpdateEnabled == '1')) {
|
||||
$crtlist[] = $output_pem_filename . " ocsp-update on";
|
||||
$crtlist[] = $output_pem_filename . " ocsp-update on";
|
||||
} else {
|
||||
$crtlist[] = $output_pem_filename;
|
||||
$crtlist[] = $output_pem_filename;
|
||||
}
|
||||
} else {
|
||||
// In contrast to certificates, CA/CRL content needs to be put in a single file.
|
||||
|
|
|
|||
|
|
@ -35,13 +35,13 @@
|
|||
* Nic DNS API
|
||||
* @package OPNsense\AcmeClient
|
||||
*/
|
||||
class DnsNic extends Base implements LeValidationInterface
|
||||
{
|
||||
public function prepare()
|
||||
{
|
||||
$this->acme_env['NIC_Username'] = (string)$this->config->dns_nic_username;
|
||||
$this->acme_env['NIC_Password'] = (string)$this->config->dns_nic_password;
|
||||
$this->acme_env['NIC_ClientID'] = (string)$this->config->dns_nic_client;
|
||||
$this->acme_env['NIC_ClientSecret'] = (string)$this->config->dns_nic_secret;
|
||||
}
|
||||
}
|
||||
class DnsNic extends Base implements LeValidationInterface
|
||||
{
|
||||
public function prepare()
|
||||
{
|
||||
$this->acme_env['NIC_Username'] = (string)$this->config->dns_nic_username;
|
||||
$this->acme_env['NIC_Password'] = (string)$this->config->dns_nic_password;
|
||||
$this->acme_env['NIC_ClientID'] = (string)$this->config->dns_nic_client;
|
||||
$this->acme_env['NIC_ClientSecret'] = (string)$this->config->dns_nic_secret;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue