-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
prober/tls: fix probe_ssl_last_chain_expiry_timestamp_seconds (#681)
* prober/tls: fix probe_ssl_last_chain_expiry_timestamp_seconds This metric should report the earliest expiry of the chain that expires the latest out of all the verified chains. Presently, it reports the earliest expiry of the chain that expires first. The current test for this metric was using an expired root certificate which is omitted from the verified chain, so the test was passing despite this bug. I've changed it to use a root that is still valid but expires before a root held by the client. * prober/tls: improve verified cert test Include the older root certificate in the chain presented by the server as well as in the client root CAs. This ensures that the peer certificate metric identifies the older root CA as the earliest expiry while it is ignored by the verified metric in favour of the longer-lived chain. Signed-off-by: Rob Best <[email protected]>
- Loading branch information
1 parent
c79355f
commit 7913a15
Showing
2 changed files
with
14 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters