Skip to content

Commit

Permalink
ACME: Fix TLS-ALPN.
Browse files Browse the repository at this point in the history
OpenSSL on FreeBSD doesn't have -4/-6 yet, so remove the listen choice.
  • Loading branch information
jim-p committed Jan 25, 2019
1 parent 799f100 commit b7024a0
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 6 deletions.
2 changes: 1 addition & 1 deletion security/pfSense-pkg-acme/Makefile
@@ -1,7 +1,7 @@
# $FreeBSD$

PORTNAME= pfSense-pkg-acme
PORTVERSION= 0.5.2
PORTVERSION= 0.5.3
CATEGORIES= security
MASTER_SITES= # empty
DISTFILES= # empty
Expand Down
3 changes: 0 additions & 3 deletions security/pfSense-pkg-acme/files/usr/local/pkg/acme/acme.inc
Expand Up @@ -225,9 +225,6 @@ $acme_domain_validation_method['standalonetls'] = array('name' => "standalone TL
'port' => array('name'=>"port",'columnheader'=>"Port",'type'=>"textbox",'size'=>"50",
'description' =>"TLS listen port for stand-alone server. Must be 443 or have port 443 on WAN forwarded to this port. Firewall rules must also allow traffic to reach this port."
),
'ipv6' => array('name'=>"ipv6",'columnheader'=>"IPv6",'type'=>"checkbox",
'description' =>"Bind to IPv6 instead of IPv4."
)
));
$acme_domain_validation_method['dns_manual'] = array('name' => "DNS-Manual",
'fields' => array(
Expand Down
Expand Up @@ -221,8 +221,7 @@ EOF;
$domainparameters = " --standalone {$listen} --httpport " . escapeshellarg($port);
} elseif ($api == "standalonetls") {
$port = empty($envvariables['port']) ? 443 : $envvariables['port'];
$listen = ($envvariables['ipv6'] == "yes") ? "--listen-v6" : "--listen-v4";
$domainparameters = " --alpn {$listen} --tlsport " . escapeshellarg($port);
$domainparameters = " --alpn --tlsport " . escapeshellarg($port);
} else {
$domainparameters = " --webroot pfSenseacme";
}
Expand Down

0 comments on commit b7024a0

Please sign in to comment.