security/acme-client: fix path for pf config files

This commit is contained in:
Frank Wall
2021-12-08 00:47:14 +01:00
parent 2af67affad
commit f3169f5f9d
2 changed files with 4 additions and 1 deletions
+1
View File
@@ -18,6 +18,7 @@ Added:
Fixed:
* fix SFTP upload (#2671)
* fix PHP error when acme.sh deploy hook returns an error (#2674)
* fix path for storing pf config files when using HTTP-01
3.5
@@ -1,7 +1,7 @@
<?php
/*
* Copyright (C) 2020 Frank Wall
* Copyright (C) 2020-2021 Frank Wall
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -42,6 +42,8 @@ class HttpOpnsense extends Base implements LeValidationInterface
{
public function prepare()
{
$configdir = (string)sprintf(self::ACME_CONFIG_DIR, $this->cert_id);
// Get configured HTTP port for local lighttpd server.
$configObj = Config::getInstance()->object();
$local_http_port = $configObj->OPNsense->AcmeClient->settings->challengePort;