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.
| Status | Colour | Means |
|---|---|---|
| Valid | Green | Accepted, with more days left than Amber within |
| Renew soon | Amber | Runs out within Amber within days: 30 to start with |
| Renew now | Red | Runs out within Red within days: 7 to start with |
| Expired | Red | Ran out. Whatever else is true of it, an expired certificate is this |
| Not trusted | Red | Mosaic would refuse it: signed by somebody it does not trust, issued for another name, or not valid yet. See Trust |
| No answer | Red | No certificate could be read. Why says why |
| No address | Grey | A 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.
| Field | Notes |
|---|---|
| Addresses | For 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 |
| Port | For 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 red | On 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
| Column | Field | Holds |
|---|---|---|
| Store and Code, or Name | name, code | Who: the store, or the name before the | |
| Address | address | The host and port read |
| Status | status | As above |
| Days left | daysLeft | Whole days until it runs out |
| Runs out | validTo | The moment it runs out |
| Issued to | subject | Whom it is for |
| Issued by | issuer | Who signed it |
| Why | error | Empty while valid |
| Checked | checkedAt | When 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.comread at10.0.0.5is 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
| Why | Means | What to do |
|---|---|---|
| Runs out on 2026-12-14. | Amber or red: within the days you set | Renew it |
| Ran out on 2026-11-02. | Expired | Renew 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 know | Trust 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 certificate | Trust 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 for | Write 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 future | Check the clocks; a new certificate installed early also does this |
| Refused: nothing is listening on erp.example.local:8443. | No service on that port | Check the port |
| erp.example.local:443 does not speak TLS from the first byte. Is it the right port? | Something answered, in plain text | The 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 handshake | As above, or a firewall cutting TLS |
| It answered without a certificate. | The handshake finished with no certificate | Rare: a service set up for no certificate |
| No answer within 5 s. | Nothing came back in time | The 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 on | Fix the name |
| Unreachable: no route to the host. | The network has no way there | Check the line, or the address |
| http://shop.example.com is http://, which has no certificate. | A plain-HTTP address | Use https://, or a Websites monitor |
| No address. | The store has no server address | Fill 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.
| Kind | Usual names | A password? |
|---|---|---|
| PEM, one certificate or a chain, a key beside them or not | .pem .crt .cer .cert .ca-bundle | No |
| DER, one certificate as bytes | .cer .der .crt | No |
| PKCS#7, a chain with no key | .p7b .p7c | No |
| PKCS#12, a certificate with its key and chain, and Java's keystores of that kind | .pfx .p12 .keystore | Usually. 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 .jceks | No. 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.
| Field | Notes |
|---|---|
| Folders | For 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 servers | For the stores: \\{host}\d$\certs, {host} standing for each store server's address. Empty where no store server runs Windows |
| Folder on Linux servers | For the stores: /opt/pos/certs, read on each store's own server over SSH. Empty where none runs Linux |
| Files | Which 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 passwords | The secret variables holding the passwords that open a locked file: PFX_PASSWORD, KEYSTORE_PASSWORD. See Passwords |
| Linux user and Linux password variable | Shown 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 too | On 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 |
| Environment | The 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:
| Column | Field | Holds |
|---|---|---|
| Store and Code, Name, or Folder | name, code, folder | Who: the store, the name before the |, or the folder for a list with no names |
| File | file | The file's name |
| In the file | entry | The name it is kept under in a keystore or a .pfx, or its place in the file, 2 of 3 |
| Status | status | As below |
| Days left, Runs out | daysLeft, validTo | As for an address |
| Issued to, Issued by | subject, issuer | Whom it is for, and who signed it |
| Why | error | Empty while valid |
| Checked | checkedAt | When 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.
| Status | Colour | Means |
|---|---|---|
| Valid, Renew soon, Renew now, Expired | As for an address | |
| Locked | Amber | A file no password given opens |
| Not readable | Amber | Not a certificate file, or a damaged one |
| No files | Amber | The folder holds no file the pattern names |
| No answer | Red | The folder could not be read. Why says why |
| No address | Grey | A 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
| Why | Means | What to do |
|---|---|---|
| Locked with a password, and none is given. | A .pfx or keystore that needs a password | Add 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 fits | Check 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 password | Export 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 certificate | Narrow Files |
| It holds a key and no certificate. | A PEM key on its own | Narrow Files, or leave it |
| Larger than 1 MB, which no certificate file is. | Something else with a certificate's name | Narrow Files |
| No file here matches *.pfx, *.jks. | The folder holds none of those | Check the folder, or Files |
| No such folder: \\store-001\d$\certs. | The folder, or the share, is not there | Check the path |
| The account Mosaic runs as may not read \\store-001\d$\certs. | Access denied | Give 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 shares | Check the server, or the firewall |
| Neither a Windows share (445) nor SSH (22) answers. | With both folders given, the server answered on neither | Check the server is up |
| SSH refused that user and password. | The Linux login failed | Check the user and the variable's password |
| monitor may not read /opt/pos/certs. | The Linux user may not read the folder | Give the user read, through its group |
| A Linux folder is read over SSH, which needs a user and a password. | No Linux user is set | Fill in Linux user and Linux password variable |