{% extends 'generic/object_edit.html' %} {% load helpers %} {% load i18n %} {% block title %}Certificate Renewal{% endblock %} {% block breadcrumbs %} {% endblock breadcrumbs %} {% block content %}
Janus Renewal Detected

A certificate with the same Common Name ({{ pending_certificate.common_name }}) already exists in the system.

Is this new certificate a renewal of the existing one?

Existing Certificate
Common Name {{ old_certificate.common_name }}
Serial Number {{ old_certificate.serial_number }}
Valid From {{ old_certificate.valid_from|date:"Y-m-d H:i" }}
Valid To {{ old_certificate.valid_to|date:"Y-m-d H:i" }}
Days Remaining {% if old_certificate.days_remaining < 0 %} Expired {% elif old_certificate.days_remaining <= 14 %} {{ old_certificate.days_remaining }} days {% elif old_certificate.days_remaining <= 30 %} {{ old_certificate.days_remaining }} days {% else %} {{ old_certificate.days_remaining }} days {% endif %}
Issuer {{ old_certificate.issuer|truncatechars:50 }}
Assignments {{ old_certificate.assignments.count }} assignment(s)
New Certificate
Common Name {{ pending_certificate.common_name }}
Serial Number {{ pending_certificate.serial_number }}
Valid From {{ pending_certificate.valid_from_formatted }}
Valid To {{ pending_certificate.valid_to_formatted }}
Issuer {{ pending_certificate.issuer|truncatechars:50 }}
Algorithm {{ pending_certificate.algorithm|upper }}
Key Size {{ pending_certificate.key_size|default:"N/A" }} bits
{% if assignments %}
Assignments to Transfer ({{ assignments|length }})
{% 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 %}
Choose Action
{% csrf_token %}
Yes, this is a renewal

The new certificate will be created, all {{ old_certificate.assignments.count }} assignment(s) will be transferred, and the old certificate will be archived with status "Replaced".

No, this is a new certificate

The new certificate will be created as a separate entry. The existing certificate will remain unchanged.

Cancel
{% endblock content %}