diff --git a/packages/restapi/src/lib/chat/helpers/pgp.ts b/packages/restapi/src/lib/chat/helpers/pgp.ts index 6240dc60d..0c06c7d24 100644 --- a/packages/restapi/src/lib/chat/helpers/pgp.ts +++ b/packages/restapi/src/lib/chat/helpers/pgp.ts @@ -75,6 +75,8 @@ const PGPHelper:IPGPHelper = { }) const publicKey: openpgp.PublicKey = await openpgp.readKey({ armoredKey: publicKeyArmored }) const verificationResult = await openpgp.verify({ + // setting date to 1 day in the future to avoid issues with clock skew + date: new Date(Date.now() + 1000 * 60 * 60 * 24), message, signature, verificationKeys: publicKey