validateUnsealedEnvelope: On expire, log serverTimestamp vs. expiration

This commit is contained in:
Scott Nonnenberg 2022-07-20 17:15:26 -07:00 committed by GitHub
parent e321e1fea8
commit 4cd05dc6c9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1384,7 +1384,9 @@ export default class MessageReceiver
if (envelope.serverTimestamp > certificate.expiration()) {
throw new Error(
'MessageReceiver.validateUnsealedEnvelope: ' +
`Sender certificate is expired for envelope ${logId}`
`Sender certificate is expired for envelope ${logId}, ` +
`serverTimestamp: ${envelope.serverTimestamp}, ` +
`expiration: ${certificate.expiration()}`
);
}