{% extends "simple_service.html" %} {% comment %} # # This file is part of FreedomBox. # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as # published by the Free Software Foundation, either version 3 of the # License, or (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU Affero General Public License for more details. # # You should have received a copy of the GNU Affero General Public License # along with this program. If not, see . # {% endcomment %} {% load bootstrap %} {% load i18n %} {% block page_head %} {% endblock %} {% block configuration %}

{% trans "Configuration" %}

{% if status.domains %} {% for domain, domain_status in status.domains.items %} {% endfor %}
{% trans "Domain" %} {% trans "Certificate Status" %} {% trans "Website Security" %} {% trans "Actions" %}
{% if domain == status.current_domain.name %} {{ domain }} {% else %} {{ domain }} {% endif %} {% if domain_status.certificate_available and domain_status.validity == "valid" %} {% blocktrans trimmed with expiry_date=domain_status.expiry_date %} Valid, expires on {{ expiry_date }} {% endblocktrans %} {% elif domain_status.certificate_available and not domain_status.validity == "valid" %} {% if "revoked" in domain_status.validity %} {% blocktrans trimmed %} Revoked {% endblocktrans %} {% elif "expired" in domain_status.validity %} {% blocktrans trimmed with expiry_date=domain_status.expiry_date %} Expired on {{ expiry_date }} {% endblocktrans %} {% elif "test" in domain_status.validity %} {% blocktrans trimmed %} Invalid test certificate {% endblocktrans %} {% else %} {% blocktrans trimmed with reason=domain_status.validity %} Invalid ({{ reason }}) {% endblocktrans %} {% endif %} {% else %} {% trans "No certificate" %} {% endif %} {% if domain_status.web_enabled %} {% trans "Enabled" %} {% else %} {% trans "Disabled" %} {% endif %} {% if domain_status.certificate_available %}
{% csrf_token %}
{% csrf_token %}
{% if "revoked" not in domain_status.validity %}
{% csrf_token %}
{% endif %} {% else %}
{% csrf_token %}
{% endif %}
{% include "diagnostics_button.html" with module="letsencrypt" enabled=True %}

{% trans "Certificate renewal management and use by other modules" %}

{% blocktrans trimmed %} If you have a Let's Encrypt certificate for your current domain, you may let {{ box_name }} manage its renewal process. This also enables other apps to use that certificate, so most users would not prompted with security warnings when using them. {% endblocktrans %}

{% if status.current_domain.name %}
{% csrf_token %}

{% if status.current_domain.has_cert %} {% blocktrans trimmed %} If enabled, {{ box_name }} can make sure that all apps can use the certificate as soon as it is renewed. {% endblocktrans %} {% else %} {% blocktrans trimmed %} No certificate available for the current domain. First obtain a certificate to enable its management. {% endblocktrans %} {% endif %}

{% csrf_token %}

{% url 'ejabberd:index' as ejabberd_url %} {% if 'ejabberd' in installed_modules and 'enabled' in status.current_domain.manage_hooks_status %} {% blocktrans trimmed %} If enabled, the app ejabberd will also use the Let's Encrypt certificate. This will reduce warnings about self-signed certificates in client applications, and enable more wide-spread federation with other XMPP servers in the Internet. {% endblocktrans %} {% elif 'ejabberd' not in installed_modules %} {% blocktrans trimmed %} This feature only makes sense if you are using the ejabberd chat server app. {% endblocktrans %} {% else %} {% blocktrans trimmed %} To use a Let's Encrypt certificate for ejabberd chat server app, you must first enable certificate renewal of the current domain. {% endblocktrans %} {% endif %}

{% else %} {% blocktrans trimmed %} No current domain is configured. First configure a domain to enable management of its certificates. {% endblocktrans %} {% endif %} {% else %} {% blocktrans trimmed %} No domains have been configured. Configure domains to be able to obtain certificates for them. {% endblocktrans %} {% endif %} {% endblock %}