Skip to the page
DataMosaic

Docs · Monitors

Certificates

When each certificate runs out and whether it would be accepted — the web shop, the APIs, the directory, every store server, and the certificate files kept on each server — and what each reason in the Why column means.

A Certificates monitor reads the TLS certificate each address presents and says how long it has left and whether it would be accepted. It is there for the certificate nobody remembers until the morning it runs out: the web shop's, the payment API's, the directory's LDAPS, the one each store's back office signs for itself.

It can also read the certificates kept as files in a folder on each server, the ones no port shows: a keystore, a .pfx, a chain. See Certificate files on each server.

StatusColourMeans
ValidGreenAccepted, with more days left than Amber within
Renew soonAmberRuns out within Amber within days: 30 to start with
Renew nowRedRuns out within Red within days: 7 to start with
ExpiredRedRan out. Whatever else is true of it, an expired certificate is this
Not trustedRedMosaic would refuse it: signed by somebody it does not trust, issued for another name, or not valid yet. See Trust
No answerRedNo certificate could be read. Why says why
No addressGreyA store with no server address

In the answer, status is valid, expiring, urgent, expired, untrusted, unreachable or nohost.

#Before you start

Nothing is set up on the servers, and no password is needed: a certificate is what a server shows anyone who connects.

The addresses must be ones the machine Mosaic runs on can reach. On Mosaic Cloud that is public addresses only: an address inside a private network is refused. To read the certificates of internal systems and store servers, run the monitor on a Mosaic inside the network.

#Setting it up

Press + beside Monitors and choose Certificates. Leave Read it from on The address. Under Look at, choose a list or the stores.

FieldNotes
AddressesFor a list, one a line: a host, host:port, or a URL. shop.example.com, erp.example.local:8443, ldaps://dc01.example.local. A name before a | is shown in the table
PortFor an address that names no port of its own: 443 to start with. A URL's scheme gives its port: ldaps:// is 636
Amber within (days)30 to start with
Red within (days)7 to start with
A certificate this server would refuse is redOn to start with. See Trust
Wait (seconds)5 to start with
Check every (minutes)360, every 6 hours: a certificate is not news by the minute

For the stores, each store's server address is read with the Port above, so 443 reads each back office's HTTPS certificate.

An example list for a retailer's central systems:

Web shop | shop.example.com
Shop API | api.shop.example.com
Payment gateway | pay.example.com
ERP portal | erp.example.local:8443
Directory | ldaps://dc01.example.local
Mail | mail.example.com:465

#The table

ColumnFieldHolds
Store and Code, or Namename, codeWho: the store, or the name before the |
AddressaddressThe host and port read
StatusstatusAs above
Days leftdaysLeftWhole days until it runs out
Runs outvalidToThe moment it runs out
Issued tosubjectWhom it is for
Issued byissuerWho signed it
WhyerrorEmpty while valid
CheckedcheckedAtWhen it was read

Under Display, the answer has more to add: altNames (every name it is good for), validFrom, trusted, nameMatches, selfSigned, trustError, fingerprint (SHA-256), protocol (TLSv1.3) and responseMs.

#Trust

Not trusted means Mosaic would refuse the certificate if it connected to that address for real:

  • Signed by somebody it does not trust. Trust is judged as every connection out of Mosaic judges it: against the public certificate authorities, and the certificates trusted under Tenancy → Network. A certificate your company signs is trusted by trusting your company's root there, once, for the whole of Mosaic.
  • Issued for another name. shop.example.com read at 10.0.0.5 is issued for another name, even though it is the right certificate. Write the address by the name the certificate carries.
  • Not valid yet. Its start is in the future, which is almost always a clock that is wrong, here or on the server.

Store servers often sign their own certificates and are reached by an IP address their certificate does not name. Then only the date is news: turn A certificate this server would refuse is red off, and they are judged on their dates alone. Why still says what is wrong with one, and trusted and trustError are there to add as columns.

#What it can read

Only TLS from the first byte: HTTPS, LDAPS, IMAPS, POP3S, and SMTP on 465. A service that starts in plain text and switches over, such as SMTP on 587, or Remote Desktop, has no certificate this monitor can read.

#What Why says

WhyMeansWhat to do
Runs out on 2026-12-14.Amber or red: within the days you setRenew it
Ran out on 2026-11-02.ExpiredRenew it, now
Signed by “Example Corp Issuing CA”, which this server does not trust. If that is your company's, trust it under Tenancy → Network.Signed by a company authority Mosaic does not knowTrust your company's root under Tenancy → Network
Signed by itself, which this server does not trust. If it is yours, trust it under Tenancy → Network.A self-signed certificateTrust it there, or turn A certificate this server would refuse is red off
Issued for shop.example.com, www.shop.example.com, not 10.0.0.5.The address is not one of the names it is good forWrite the address by its name, or turn the switch off
Not valid until 2026-12-01. Check the clock here and on the server.It starts in the futureCheck the clocks; a new certificate installed early also does this
Refused: nothing is listening on erp.example.local:8443.No service on that portCheck the port
erp.example.local:443 does not speak TLS from the first byte. Is it the right port?Something answered, in plain textThe service is on another port, or starts in plain text: see What it can read
erp.example.local:443 closed the connection. It may not speak TLS on that port.The server hung up during the handshakeAs above, or a firewall cutting TLS
It answered without a certificate.The handshake finished with no certificateRare: a service set up for no certificate
No answer within 5 s.Nothing came back in timeThe server is down, or a firewall drops the connection
Unknown host: the name does not resolve.The name cannot be looked up from the machine Mosaic runs onFix the name
Unreachable: no route to the host.The network has no way thereCheck the line, or the address
http://shop.example.com is http://, which has no certificate.A plain-HTTP addressUse https://, or a Websites monitor
No address.The store has no server addressFill it in under Business Locations

#Certificate files on each server

Some certificates are never shown on a port: the one in the keystore the till software signs with, the client certificate a store presents to the payment provider, the .pfx an installer left in a folder, the chain beside them. With Read it from set to Files on the server, the monitor opens the certificate files in a folder on each server and shows every certificate in each one as a row of its own, with its dates.

Mosaic only reads. It opens each file to see the certificates in it, and never decrypts a private key.

#What it reads

A file is read by what is in it, whatever it is called. A Java keystore called .jks that is really a PKCS#12, a .cer that is PEM, a .crt that holds a whole chain: each is read for what it is.

KindUsual namesA password?
PEM, one certificate or a chain, a key beside them or not.pem .crt .cer .cert .ca-bundleNo
DER, one certificate as bytes.cer .der .crtNo
PKCS#7, a chain with no key.p7b .p7cNo
PKCS#12, a certificate with its key and chain, and Java's keystores of that kind.pfx .p12 .keystoreUsually. Opened under every cipher the tools write: AES (OpenSSL 3, Java, Windows Server 2019 and later), triple DES (Windows), and 40-bit RC2 (older Windows, openssl pkcs12 -legacy)
JKS and JCEKS, Java's own keystores.jks .keystore .truststore .jceksNo. Only the keys in them are locked, never the certificates

BouncyCastle keystores (.bks, .uber) are not read.

#Setting it up

Press + beside Monitors, choose Certificates, and set Read it from to Files on the server. Under Look at, choose a list of folders or the stores.

FieldNotes
FoldersFor a list, one a line. A share or a folder on the machine Mosaic runs on, \\bo01\d$\certs, D:\certs, read as the account Mosaic runs as. A Linux server's, written server:/opt/app/certs, read over SSH. A name before a | is shown in the table
Folder on Windows serversFor the stores: \\{host}\d$\certs, {host} standing for each store server's address. Empty where no store server runs Windows
Folder on Linux serversFor the stores: /opt/pos/certs, read on each store's own server over SSH. Empty where none runs Linux
FilesWhich files to open, with commas between them: *.pfx, *.jks. To start with, every known certificate file: press a name under the field to take it out or put it back, All of these for every one, Any file for *
Certificate passwordsThe secret variables holding the passwords that open a locked file: PFX_PASSWORD, KEYSTORE_PASSWORD. See Passwords
Linux user and Linux password variableShown when a Linux folder is read. Who to read it as over SSH, and the secret variable holding the password
Amber within (days), Red within (days)30 and 7 to start with
Show the authorities' certificates tooOn to start with: the roots and intermediates in a chain or a trust store come out as rows too. Off, only the certificates issued to a server or a service
EnvironmentThe environment the workflow runs in, whose secret variables hold the passwords
Wait (seconds)How long a Linux server is given to answer: 5 to start with
Check every (minutes)360, every 6 hours

With both folders filled in, as for an estate of Windows and Linux store servers, each server is read the way it answers: as a Windows share (445) where it answers on that port, and over SSH (22) where it does not.

A folder on another machine must let the reader in: see Shares for a Files monitor and Linux servers. For a certificate file, the account needs read on the files as well as the folder, because they are opened.

#Passwords

A locked file is tried with no password first, then with each of the Certificate passwords in turn, and opened with the first that fits. A file that none opens is a Locked row. Its certificates are not shown until a password that opens it is given.

Every password is a secret variable of the workflow's environment, named in the setup and written into the workflow as {{ PFX_PASSWORD }}. A password typed into the workflow itself is refused: a workflow is readable by everyone who can read the workspace. Add each one under Environments as a secret, then name it here. Java's own default for a keystore is changeit.

A .jks needs no password to show its certificates, and neither does a PKCS#12 saved without one.

#The table

One row for each certificate in each file:

ColumnFieldHolds
Store and Code, Name, or Foldername, code, folderWho: the store, the name before the |, or the folder for a list with no names
FilefileThe file's name
In the fileentryThe name it is kept under in a keystore or a .pfx, or its place in the file, 2 of 3
StatusstatusAs below
Days left, Runs outdaysLeft, validToAs for an address
Issued to, Issued bysubject, issuerWhom it is for, and who signed it
WhyerrorEmpty while valid
CheckedcheckedAtWhen it was read

Under Display, there is more to add: server, format (the kind of file), hasKey (the file holds its private key), authority (it issues others), selfSigned, altNames, validFrom, serial, fingerprint (SHA-256), and modifiedAt, when the file last changed.

StatusColourMeans
Valid, Renew soon, Renew now, ExpiredAs for an address
LockedAmberA file no password given opens
Not readableAmberNot a certificate file, or a damaged one
No filesAmberThe folder holds no file the pattern names
No answerRedThe folder could not be read. Why says why
No addressGreyA store with no server address

In the answer, status is valid, expiring, urgent, expired, locked, unreadable, nofiles, unreachable or nohost. Trust is not judged for a file: there is no connection, and no name to hold it against.

#What Why says, for a file

WhyMeansWhat to do
Locked with a password, and none is given.A .pfx or keystore that needs a passwordAdd its password as a secret variable and name it under Certificate passwords
Locked with a password none of the ones given opens.None of the passwords tried fitsCheck the variable holds the right one, or add the one that fits
Part of it is locked with a cipher Mosaic does not open.An old RC4 file, or one sealed with a certificate rather than a passwordExport it again with a current tool
Not a certificate file Mosaic reads: not PEM, DER, PKCS#7, PKCS#12, JKS or JCEKS.A file the pattern chose that holds no certificateNarrow Files
It holds a key and no certificate.A PEM key on its ownNarrow Files, or leave it
Larger than 1 MB, which no certificate file is.Something else with a certificate's nameNarrow Files
No file here matches *.pfx, *.jks.The folder holds none of thoseCheck the folder, or Files
No such folder: \\store-001\d$\certs.The folder, or the share, is not thereCheck the path
The account Mosaic runs as may not read \\store-001\d$\certs.Access deniedGive that account read on the share, the folder and the files
store-001 does not answer on 445, the port Windows shares are reached on.The server is down, or a firewall stops sharesCheck the server, or the firewall
Neither a Windows share (445) nor SSH (22) answers.With both folders given, the server answered on neitherCheck the server is up
SSH refused that user and password.The Linux login failedCheck the user and the variable's password
monitor may not read /opt/pos/certs.The Linux user may not read the folderGive the user read, through its group
A Linux folder is read over SSH, which needs a user and a password.No Linux user is setFill in Linux user and Linux password variable