{% extends 'generic/object.html' %} {% load helpers %} {% load plugins %} {% load i18n %} {% block breadcrumbs %} {{ block.super }} {% endblock breadcrumbs %} {% block content %}
Certificate Details
Common Name {{ object.common_name }}
Status {% badge object.get_status_display bg_color=object.get_status_color %}
Serial Number {{ object.serial_number }}
Fingerprint (SHA256) {{ object.fingerprint_sha256 }}
Issuer {{ object.issuer }}
Tenant {% if object.tenant %} {{ object.tenant }} {% else %} None {% endif %}
Validity
Valid From {{ object.valid_from|date:"Y-m-d H:i" }}
Valid To {{ object.valid_to|date:"Y-m-d H:i" }}
Days Remaining {% if object.days_remaining < 0 %} Expired ({{ object.days_expired }} days ago) {% elif object.days_remaining <= 14 %} {{ object.days_remaining }} days {% elif object.days_remaining <= 30 %} {{ object.days_remaining }} days {% else %} {{ object.days_remaining }} days {% endif %}
Key Information
Algorithm {% badge object.get_algorithm_display %}
Key Size {{ object.key_size|default:"N/A" }} bits
Private Key Location {% if object.private_key_location %} {{ object.private_key_location }} {% else %} Not specified {% endif %}
{% if object.is_acme %}
ACME / Auto-Renewal
{% if object.acme_challenge_type %} {% endif %} {% if object.acme_account_email %} {% endif %} {% if object.acme_server_url %} {% endif %} {% if object.acme_last_renewed %} {% endif %} {% if object.acme_renewal_days %} {% endif %}
ACME Provider {% badge object.get_acme_provider_display bg_color="green" %}
Challenge Type {% badge object.get_acme_challenge_type_display %}
Account Email {{ object.acme_account_email }}
ACME Server {{ object.acme_server_url }}
Auto Renewal {% checkmark object.acme_auto_renewal %}
Last Renewed {{ object.acme_last_renewed|date:"Y-m-d H:i" }}
Renewal Window {{ object.acme_renewal_days }} days before expiry
Renewal Status {% if object.acme_renewal_status == "ok" %} OK {% elif object.acme_renewal_status == "due" %} Renewal Due {% elif object.acme_renewal_status == "expired" %} Expired {% elif object.acme_renewal_status == "manual" %} Manual {% endif %}
{% endif %} {% if object.status == 'active' or object.status == 'expired' %}
Renew This Certificate
{% endif %} {% if object.sans %}
Subject Alternative Names
    {% for san in object.sans %}
  • {{ san }}
  • {% endfor %}
{% endif %} {% if assignments %}
Assignments ({{ assignments_count }})
{% for assignment in assignments %} {% endfor %}
Type Assigned To Primary Notes
{% badge assignment.assigned_object_type_name %} {% if assignment.assigned_object %} {{ assignment.assigned_object }} {% if assignment.assigned_object_type.model == 'service' and assignment.assigned_object.parent %} on {{ assignment.assigned_object.parent }} {% endif %} {% else %} Unknown {% endif %} {% checkmark assignment.is_primary %} {{ assignment.notes|default:"-" }}
{% endif %} {% if object.replaced_by %}
Replaced by: {{ object.replaced_by.common_name }} (Serial: {{ object.replaced_by.serial_number|truncatechars:20 }})
{% endif %} {% if object.replaces.exists %}
Previous Certificates
    {% for old_cert in object.replaces.all %}
  • {{ old_cert.common_name }} ({{ old_cert.valid_from|date:"Y-m-d" }} - {{ old_cert.valid_to|date:"Y-m-d" }}) {% badge old_cert.get_status_display bg_color=old_cert.get_status_color %}
  • {% endfor %}
{% endif %} {% endblock content %}