<include href="header.html" />

<check if="isset(@certs_array)">
<true>
  <table>
    <tr>
      <th style="white-space: nowrap; text-align: center;">Certificate</th>
      <th style="white-space: nowrap; text-align: center;">Expiration</th>
      <th style="white-space: nowrap; text-align: center;">Secured Hostnames</th>
    </tr>

    <repeat group="{{ @certs_array }}" value="{{ @cert_array }}">

      <tr>
        <td style="white-space: nowrap; text-align: right;"><a href="{{@BASE}}/Certs/{{ @cert_array.common  }}">{{ @cert_array.common  }}</a></td>
        <td style="white-space: nowrap; text-align: center;">{{ @cert_array.end }}</td>
        <td style="white-space: nowrap; text-align: right;">{{ @cert_array.alternative | raw }}</td>
      </tr>

    </repeat>

  </table>
  <p>
  <b>Certificate</b> is the name of the configuration and is normally the primary domain secured.<br>
  <b>Expiration</b> is the date the certificate expires. Certificates are automatically renewed 30 days before expiration.<br>
  <b>Secured Hostnames</b> is the full list of domain names secured by the certificate.<br>
  </p>
</true>
<false>
  <p>There are no security certificates on this server.</p>
</false>
</check>

<p>
<a href="{{@NAV.fullpath}}/Add">Add new Certificate form</a>
</p>

<include href="footer.html" />