Skip to content

TLS certificates

Common parts of every card are described in Monitor window.

Detected by the units or binaries of nginx, Apache (apache2, httpd), HAProxy, Postfix
Read every 10 minutes while the Monitor window shows the tab, and at once when a service card names other files
Active probe none: nothing connects anywhere (no openssl s_client)
Test config none: the certificates are files of the services; their own Test config (where there is one) loads them

The card reads the files the last data of the other cards names, so it waits until those cards have a result (No data from nginx, Apache, HAProxy, Postfix or Elasticsearch / OpenSearch yet.):

Service Directive
nginx ssl_certificate
Apache SSLCertificateFile
HAProxy bind … crt <file or directory>
Postfix smtpd_tls_cert_file, smtpd_tls_eccert_file, smtpd_tls_dcert_file, smtpd_tls_chain_files

Also Elasticsearch / OpenSearch, certbot and the Kubernetes node (kubelet), when those cards are on the host. Only absolute paths are used, quoted into the script.

Per file, worst first: a state written out (EXPIRED <date>, expires in N d, not valid before &lt;date&gt;, valid N d, dates unknown), Used by (service, virtual host or bind, file:line), and per certificate in the file (the chain order, #): Subject CN, Issuer CN, Not before, Not after, Left, Key (public key type and size), SHA-256 fingerprint, SAN.

  • Orange (soon): fewer than 14 days left, or not valid yet. Red: expired. A chain certificate that expires first is named ((chain certificate #2)).
  • name not in SAN: a server_name/ServerName of the virtual host that the certificate does not cover. No DNS or IP subjectAltName: browsers ignore the CN and reject the certificate.
  • The file is larger than KryoDesk reads (128 KiB): later blocks are not shown.
  • The same state is shown as a badge on the nginx, Apache and HAProxy cards.

One sh -c under one GNU timeout on the host:

  1. each file is read with dd up to a byte limit;
  2. an awk filter keeps only CERTIFICATE blocks; private key blocks are counted, never kept or printed;
  3. openssl x509 per certificate (a trusted, not setuid/setgid binary, through env -i); its output is filtered on the host to a closed list of fields, each checked against its alphabet.

Files the account cannot read are listed as Not read with the reason (private certificate directories are often root-only).

Scroll or pinch to zoom · drag to move · double-click to zoom · Esc or click outside to close