{% extends 'base.html' %} {% block header %}

{% block title %} {% if g.user %} Certificates for Pubkey
{{ pubkey['key_name'] }} {% else %} Certificates {% endif %} {% endblock %}

{% if g.user %} New {% endif %} {% endblock %} {% block content %} {% if g.user %} {% for certificate in certificates %}

Certificate ({{ certificate['id'] }}): {{ certificate['key_id'] }}

{% if g.user['id'] == pubkey['user_id'] %} Revoke {% endif %}

Serialnumber: {{ certificate['serial'] }}{% if pubkey['revoked'] != 0 %} - revoked {% endif %}" Validity duration: {{ certificate['valid_from'].strftime('%Y-%m-%d %H:%M') }} - {{ certificate['valid_until'].strftime('%Y-%m-%d %H:%M') }} Principals: {{ certificate['principals'] }} Valid Client IP: {{ certificate['from_ip'] }} Allowed Command: {{ certificate['commands'] }} Capabilities: {{ certificate['capabilities'] }}

created on {{ certificate['created'].strftime('%Y-%m-%d') }}

{% if not loop.last %}
{% endif %} {% endfor %} {% else %}
To view pubkeys and certificates, please log in
{% endif %} {% endblock %}