mirror of
https://github.com/opnsense/plugins.git
synced 2026-05-28 04:34:15 -04:00
net/haproxy: fix ssl certificates on maintenance page
This commit is contained in:
parent
a999d59f57
commit
6594d14d9a
2 changed files with 5 additions and 2 deletions
|
|
@ -28,6 +28,9 @@ Added:
|
|||
* add support for SSL SNI expression to servers (#3756)
|
||||
* add column "mode" to servers overview (#4632)
|
||||
|
||||
Fixed:
|
||||
* Maintenance tab "SSL Certificates" not working with only one cert
|
||||
|
||||
Changed:
|
||||
* upgrade to HAProxy 3.2 release series (#5147)
|
||||
* refactor http/tcp rules to make extensions easier
|
||||
|
|
|
|||
|
|
@ -8,14 +8,14 @@
|
|||
{# ################## #}
|
||||
{% macro getCA(refId) -%}
|
||||
{% set result = '{}' %}
|
||||
{% for data in helpers.getNodeByTag('ca') if data.refid == refId %}
|
||||
{% for data in helpers.toList('ca') if data.refid == refId %}
|
||||
{{ data.crt -}}
|
||||
{% else %}
|
||||
{{ "{}" }}
|
||||
{% endfor %}
|
||||
{%- endmacro %}
|
||||
{% macro getCert(refId, indent=4) -%}
|
||||
{% for data in helpers.getNodeByTag('cert') if data.refid == refId %}
|
||||
{% for data in helpers.toList('cert') if data.refid == refId %}
|
||||
{% if data.caref %}
|
||||
{% do data.update({'ca': getCA(data.caref)}) %}
|
||||
{% else %}
|
||||
|
|
|
|||
Loading…
Reference in a new issue