{% extends "meta.html" %} {% block title %} Keys - {{cfg("sr.ht", "site-name")}} meta {% endblock %} {% block content %}

SSH Keys

{% if any(current_user.ssh_keys) %}

The following SSH keys are associated with your account:

{% for key in current_user.ssh_keys %} {% endfor %}
Name Fingerprint Authorized Last Used
{{key.comment}} {{key.fingerprint}} {{key.created|date}} {{key.last_used|date}}
{{csrf_token()}}
{% endif %}
{{csrf_token()}}
A list of your SSH public keys is available to the public via {{current_user.canonical_name}}.keys {{valid.summary("ssh-key")}}
{{valid.summary()}}

PGP Keys

{% if any(current_user.pgp_keys) %}

The following PGP keys are associated with your account:

{% for key in current_user.pgp_keys %} {% if not key.expiration %} {% elif key.expiration > now %} {% else %} {% endif %} {% endfor %}
Fingerprint Authorized Expiration
{{key.fingerprint_hex}} {{key.created|date}}Does not expire{{key.expiration|date}}Expired {{key.expiration|date}}
{{csrf_token()}}
{% endif %} {% if tried_to_delete_key_in_use %}
This key is currently selected to encrypt e-mails. Please either select a different key or disable e-mail encryption in the privacy section before deleting this key.
{% endif %}
{{csrf_token()}}
You can use the following command to export your PGP key:
gpg --armor --export-options export-minimal --export {{email or current_user.email}}
A list of your PGP public keys is available to the public via {{current_user.canonical_name}}.pgp {{valid.summary("pgp-key")}}
{% endblock %}