{% extends "pretixcontrol/organizers/base.html" %} {% load i18n %} {% load bootstrap3 %} {% block title %}{% trans "Digital signature" %}{% endblock %} {% block inner %}

{% trans "Digital signature of certificates of attendance" %}

{% blocktrans trimmed %} Every certificate of attendance of this organizer can be signed with a certificate of your organization. PDF readers then show whether the document really comes from you and whether it has been modified since. The signature is invisible; readers display it in their signature panel. {% endblocktrans %}

{% if current %}

{% trans "Current certificate" %}

{% trans "Signer" %}
{{ info.subject }}
{% trans "Valid from" %}
{{ info.not_before|date:"SHORT_DATETIME_FORMAT" }}
{% trans "Valid until" %}
{{ info.not_after|date:"SHORT_DATETIME_FORMAT" }} {% if info.expired %} {% trans "expired" %} {% endif %}
{% trans "SHA-256 fingerprint" %}
{{ info.fingerprint }}
{% trans "Embedded CA chain" %}
{% for c in chain %} {{ c.subject }}
{{ c.fingerprint }}{% if not forloop.last %}
{% endif %} {% empty %} {% trans "none" %} {% endfor %}

{% trans "Download public certificate" %}

{% blocktrans trimmed %} Publish the public certificate (e.g. on your website, together with the fingerprint) so recipients can add it to their PDF reader's trusted certificates and verify your signature. Without that, readers show the signer as "unknown", but still detect later modifications. CA certificates contained in an imported file are embedded in every signed PDF; readers offer to trust them, but recipients should compare the fingerprint with the one you published. {% endblocktrans %}

{% if info.expired %}
{% trans "This certificate has expired. Replace it below." %}
{% endif %}
{% csrf_token %} {% bootstrap_form settings_form layout="control" %}
{% else %}
{% trans "No certificate is configured. Certificates of attendance are not signed." %}
{% endif %}

{% trans "Create a self-signed certificate" %}

{% if current %}
{% trans "This replaces the current certificate. Signatures of already sent documents stay valid, but you need to publish the new public certificate." %}
{% endif %}
{% csrf_token %} {% bootstrap_form generate_form layout="control" %}

{% trans "Import an existing certificate" %}

{% csrf_token %} {% bootstrap_form import_form layout="control" %}
{% if current %}
{% csrf_token %}
{% endif %}

{% blocktrans trimmed %} The private key is stored in the pretix database and never leaves the server. Back up your database accordingly. {% endblocktrans %}

{% endblock %}