{{ _('Plug & Charge – Certificates') }}

{{ _('Manage Hubject mTLS artifacts for Plug & Charge.') }}

{% if error %} {% endif %} {% if message %} {% endif %}
{{ _('Certificate overview') }}

{{ _('Current storage paths, expiration dates, and validity.') }}

{% for key, label in { 'client_cert': _('Client certificate'), 'client_key': _('Private key'), 'ca_bundle': _('CA bundle'), }.items() %} {% set cert = certs.get(key, {}) %} {% endfor %}
{{ _('Type') }} {{ _('Path') }} {{ _('Last modified') }} {{ _('Expiration') }} {{ _('Status') }}
{{ label }}
{{ cert.filename }}
{{ cert.directory }}
{% if cert.last_modified %} {{ cert.last_modified }} {% else %} – {% endif %} {% if cert.expires is string %} {{ cert.expires }} {% elif cert.expires %} {{ cert.expires }} {% else %} – {% endif %} {% if cert.error %} {{ _('Error reading file') }}
{{ cert.error }}
{% elif cert.exists and cert.readable %} {{ _('Found & readable') }} {% elif cert.exists %} {{ _('Found but not readable') }} {% else %} {{ _('Missing') }} {% endif %}
{{ _('Upload or replace certificate') }}
{{ _('max. 2 MB; PEM, CRT, CER or DER. Keys accept PEM/KEY.') }}