{% extends 'generic/object_edit.html' %} {% load form_helpers %} {% load i18n %} {% block title %}Import Certificate{% endblock %} {% block breadcrumbs %} {% endblock breadcrumbs %} {% block content %}
Import Certificate (Smart Paste)
{% csrf_token %} {% if renew_certificate %}
Renewal Mode

You are renewing certificate {{ renew_certificate.common_name }} (Serial: {{ renew_certificate.serial_number|truncatechars:20 }}). Paste the new PEM certificate below. If the Common Name matches, the system will guide you through the Janus Renewal workflow.

{% endif %}
Instructions
  • Paste your certificate in PEM format below
  • You may include the full certificate chain (intermediates and root)
  • Private keys will be rejected - they are never stored for security reasons
  • Duplicate certificates (same serial + issuer) will be rejected
{{ form.pem_content }} {% if form.pem_content.help_text %}
{{ form.pem_content.help_text }}
{% endif %} {% if form.pem_content.errors %}
{% for error in form.pem_content.errors %}{{ error }}{% endfor %}
{% endif %}
{{ form.private_key_location }} {% if form.private_key_location.help_text %}
{{ form.private_key_location.help_text }}
{% endif %}
{{ form.tenant }} {% if form.tenant.help_text %}
{{ form.tenant.help_text }}
{% endif %}
Cancel
Example PEM Format
-----BEGIN CERTIFICATE-----
MIIDdzCCAl+gAwIBAgIEAgAAuTA...
(base64 encoded data)
...xQIDAQABo2MwYTA=
-----END CERTIFICATE-----
Security Notice

This plugin never stores private keys. If you paste a private key, it will be rejected. You can optionally provide a hint about where the private key is stored (e.g., a Vault path).

{% endblock content %}