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

SSH 密钥

{% if any(current_user.ssh_keys) %}

以下 SSH 密钥已关联到你的账户:

{% for key in current_user.ssh_keys %} {% endfor %}
名称 指纹 添加时间 最后使用
{{key.comment}} {{key.fingerprint}} {{key.created|date}} {{key.last_used|date}}
{{csrf_token()}}
{% endif %}
{{csrf_token()}}
你的 SSH 公钥列表可通过 {{current_user.canonical_name}}.keys 公开访问 {{valid.summary("ssh-key")}}
{{valid.summary()}}

PGP 密钥

{% if any(current_user.pgp_keys) %}

以下 PGP 密钥已关联到你的账户:

{% for key in current_user.pgp_keys %} {% if not key.expiration %} {% elif key.expiration > now %} {% else %} {% endif %} {% endfor %}
指纹 添加时间 过期时间
{{key.fingerprint_hex}} {{key.created|date}}永不过期{{key.expiration|date}}已过期 {{key.expiration|date}}
{{csrf_token()}}
{% endif %} {% if tried_to_delete_key_in_use %}
此密钥当前用于邮件加密。请先在 隐私设置中选择其他密钥或禁用邮件加密, 然后再删除此密钥。
{% endif %}
{{csrf_token()}}
你可以使用以下命令导出 PGP 密钥:
gpg --armor --export-options export-minimal --export {{email or current_user.email}}
你的 PGP 公钥列表可通过 {{current_user.canonical_name}}.pgp 公开访问 {{valid.summary("pgp-key")}}
{% endblock %}