We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 04263ea commit f95e553Copy full SHA for f95e553
packages/dtls/src/context/cipher.ts
@@ -110,7 +110,7 @@ export class CipherContext {
110
serialNumber: nodeCrypto.randomBytes(8).toString("hex"),
111
name: "C=AU, ST=Some-State, O=Internet Widgits Pty Ltd",
112
notBefore: new Date(),
113
- notAfter: new Date(new Date().setFullYear(new Date().getFullYear() + 10)),
+ notAfter: new Date(Date.now() + 10 * 365 * 24 * 60 * 60 * 1000),
114
signingAlgorithm: alg,
115
keys,
116
});
0 commit comments