mirror of
https://github.com/opnsense/plugins.git
synced 2026-06-09 00:42:34 -04:00
security/acme-client: fix for DNS alias mode, refs #1490
This commit is contained in:
parent
5edc3cfd1d
commit
7e8e52ecc2
1 changed files with 2 additions and 2 deletions
|
|
@ -896,7 +896,7 @@ function run_acme_validation($certObj, $valObj, $acctObj)
|
|||
// Main domain: Use DNS alias mode for domain validation?
|
||||
// https://github.com/Neilpang/acme.sh/wiki/DNS-alias-mode
|
||||
if ($val_method == 'dns01') {
|
||||
switch ((string)$valObj->aliasmode) {
|
||||
switch ((string)$certObj->aliasmode) {
|
||||
case 'automatic':
|
||||
$name = "_acme-challenge." . ltrim((string)$certObj->name, '*.');
|
||||
if ($dst = dns_get_record($name, DNS_CNAME )) {
|
||||
|
|
@ -920,7 +920,7 @@ function run_acme_validation($certObj, $valObj, $acctObj)
|
|||
// altNames: Use DNS alias mode for domain validation?
|
||||
// https://github.com/Neilpang/acme.sh/wiki/DNS-alias-mode
|
||||
if ($val_method == 'dns01') {
|
||||
switch ((string)$valObj->aliasmode) {
|
||||
switch ((string)$certObj->aliasmode) {
|
||||
case 'automatic':
|
||||
$name = "_acme-challenge." . ltrim($altname, '*.');
|
||||
if ($dst = dns_get_record($name, DNS_CNAME )) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue