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 |
Where the files come from
Section titled “Where the files come from”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.
What the card shows
Section titled “What the card shows”Per file, worst first: a state written out (EXPIRED <date>, expires in N d, not valid before <date>, 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/ServerNameof 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.
How the files are read
Section titled “How the files are read”One sh -c under one GNU timeout on the host:
- each file is read with
ddup to a byte limit; - an
awkfilter keeps onlyCERTIFICATEblocks; private key blocks are counted, never kept or printed; openssl x509per certificate (a trusted, not setuid/setgid binary, throughenv -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).