Northern Commander

Certificates

A certificate opens as the few things you open one to find out: who it is for, who issued it, and whether it is still in date. Everything else in it — the full names, the fingerprints, the extensions — is one key away.

A server's certificate. How long it has left is worked out for you.

What the keys do

Key Does
Enter Hands it to the app macOS opens certificates with — Keychain Access, as it comes
F3 Shows this page
F4 A certificate written as text: the built-in editor. One written as bytes: the app macOS would use
⇧F3 Shows it as text, or as bytes

What each key does can be changed — see Opening files.

Recognized by

The name: .pem, .crt, .cer, .der, .p7b, .p7c and .ca-bundle. Either form is read — the raw bytes, or the same as text between -----BEGIN CERTIFICATE----- and -----END CERTIFICATE----- — whatever the name says, since .crt is commonly both. A PKCS #7 file, which is how a chain is often saved, is read in both forms too.

A private key is written the same way but is not a certificate: a key file opens as text.

At a glance

KeyAction
⇧F9All it says about itself
F4As text
⌥→Next file
EscClose

A file of several

A bundle, a chain or a PKCS #7 file lists every certificate in it, in order, each under a heading such as Certificate 2 of 5. The line underneath says how many there are, and how many are not valid now. ↑, ↓, Page Up, Page Down, Home and End move through the page, and so do they on a single certificate when the window is too short to show it all. In the panel, each certificate’s lines sit under headings numbered to match.

The page

Issued to, Issued by
The common name of each — the whole name where there is no common name.
From, Until
When it starts and stops being valid, in your time zone.
Standing
Where that leaves it today: valid for another 74 days, expired 30 days ago, or not valid until a date. In red when it is not valid now.
Key
Its kind and size — RSA, 2048 bits.
Serial
The serial number its issuer gave it.
SHA-256
Its fingerprint, in pairs, the way one is read out and compared. A value too long for the window goes on to the next row, here and in the panel.
One that has expired. Its standing is in red.

The line underneath has the short form: who it is for, who issued it, and its standing.

Everything in it

⇧F9 lists the rest, grouped:

Subject, Issuer
The common name, and the full distinguished name — organization, country and the rest.
Validity
From, until and standing, as on the page.
Certificate
Its version, serial number and signature algorithm.
Key
The algorithm and its size.
Fingerprint
SHA-256 and SHA-1, in pairs.
Extensions
Each by name. The host names it covers are listed, key usage and extended key usage say what it may be used for — Server authentication and the like, by name, and by number where the purpose is not a common one — and basic constraints say whether it is a certificate authority. Any other extension says present, or present, critical.
The extensions, at the end of the panel.

Going on to the next one

⌥→ or Space shows the next file in the pane’s order, and ⌥←, ⇧Space or ⌫ the one before — see going on to the next file.

Limits

  • It is read, not checked: whether macOS trusts it, and whether it has been revoked, are not asked.
  • Nothing is changed: there is no exporting it or writing it in the other form.