{% extends "base.html" %} {% block title %}{{ cert.common_name }} - 证书详情{% endblock %} {% block content %}

证书详情: {{ cert.common_name }}

路径: {{ cert.cert_path|to_pinyin }}
{% if cert.status == 'active' %} 吊销证书 {% endif %} 续期 导出 删除
基本信息
通用名
{{ cert.common_name }}
颁发CA
{{ ca.name }}
组织
{{ cert.organization }}
组织单位
{{ cert.organizational_unit or 'N/A' }}
国家
{{ cert.country }}
州/省
{{ cert.state or 'N/A' }}
城市
{{ cert.locality or 'N/A' }}
技术信息
密钥长度
{{ cert.key_size }}位
有效期
{{ cert.days_valid }}天 (至 {{ cert.expires_at.strftime('%Y-%m-%d') }})
状态
{% if cert.status == 'active' %} 有效 {% elif cert.status == 'revoked' %} 已吊销 {% else %} 已过期 {% endif %}
{% if cert.status == 'revoked' %}
吊销原因
{{ cert.revocation_reason or '未指定' }}
吊销时间
{{ cert.revoked_at.strftime('%Y-%m-%d %H:%M') }}
{% endif %}
创建者
{{ get_username(cert.created_by) }}
创建时间
{{ cert.created_at.strftime('%Y-%m-%d %H:%M') }}
SAN扩展
{% if cert.san_dns or cert.san_ip %} {% if cert.san_dns %}
DNS名称:
    {% for dns in cert.san_dns.split(',') %}
  • {{ dns }}
  • {% endfor %}
{% endif %} {% if cert.san_ip %}
IP地址:
    {% for ip in cert.san_ip.split(',') %}
  • {{ ip }}
  • {% endfor %}
{% endif %} {% else %}

未配置SAN扩展

{% endif %}
文件路径
证书文件
{{ cert.cert_path }}
私钥文件
{{ cert.key_path }}
CSR文件
{{ cert.csr_path or 'N/A' }}
{% endblock %} {% block scripts %} {{ super() }} {% endblock %}