{% if certificate.organizational_unit %} {{ certificate.organizational_unit }} / {% endif %} {% if certificate.extensions.extended_key_usage and "server_auth" in certificate.extensions.extended_key_usage %} {% else %} {% endif %} {{ certificate.common_name }}

{% if certificate.lease %} {% include "views/lease.html" %} {% endif %} Signed {% if certificate.signer %} by {{ certificate.signer }}{% endif %}, expires .

{% if session.authority.tagging %} {% include "views/tags.html" %} {% endif %} {% include "views/attributes.html" %}

{% if session.authority.tagging %} {% endif %}

To fetch certificate:

wget http://{{ window.location.hostname }}/api/signed/{{ certificate.common_name }}/
curl http://{{ window.location.hostname }}/api/signed/{{ certificate.common_name }}/ \
  | openssl x509 -text -noout
{% if session.features.ocsp %}

To perform online certificate status request:

curl http://{{ window.location.hostname }}/api/certificate/ > session.pem
openssl ocsp -issuer session.pem -CAfile session.pem \
  -url http://{{ window.location.hostname }}/api/ocsp/ \
  -serial 0x{{ certificate.serial }}
{% endif %}

To fetch script:

curl https://{{ window.location.hostname }}:8443/api/signed/{{ certificate.common_name }}/script/ \
    --cacert /etc/certidude/authority/{{ window.location.hostname }}/ca_cert.pem \
    --key /etc/certidude/authority/{{ window.location.hostname }}/host_key.pem \
    --cert /etc/certidude/authority/{{ window.location.hostname }}/host_cert.pem
{% if certificate.lease %} {% endif %} {% if certificate.extensions.extended_key_usage %} {% endif %}
Common name{{ certificate.common_name }}
Organizational unit{% if certificate.organizational_unit %}{{ certificate.organizational_unit }}{% else %}-{% endif %}
Serial number{{ certificate.serial | serial }}
Signed{{ certificate.signed | datetime }}{% if certificate.signer %} by {{ certificate.signer }}{% endif %}
Expires{{ certificate.expires | datetime }}
Lease{{ certificate.lease.inner_address }} at {{ certificate.lease.last_seen | datetime }} from {{ certificate.lease.outer_address }}
SHA256{{ certificate.sha256sum }}
Extended key usage{{ certificate.extensions.extended_key_usage | join(", ") }}