{# Generate a keypair for a user #} {% extends "index.html" %} {% load i18n %} {% block menu %} {% with "users" as current_category %} {{ block.super }} {% endwith %} {% endblock %} {% block content %}

{% blocktrans %} This method is not recommended! Please let the user generate their keys themselves using software like "ssh-keygen" or PuTTYgen and let them keep the private key safe. {% endblocktrans %}

{% blocktrans %} You should at least use this method only over a SSL-encrypted transport! {% endblocktrans %}

{% if mode == "generate" %} {% if generation_status == "success" %}
{% trans "Public key" %}
{{ public_key }}
{% trans "Private key" %}
{{ private_key }}
{% endif %} {% endif %}

{% blocktrans %} This form sets up a new private/public key pair for a user and optionally adds the key to the skd database. The private key can be optionally (and which is recommended) encrypted by a passphrase. The private key can then be downloaded and supplied to the user. {% endblocktrans %}

{% csrf_token %}
{% include "skd/keygen.html" %}
{% endblock %}