Skip to content

Commit f95e553

Browse files
koushCopilot
andauthored
Update packages/dtls/src/context/cipher.ts
Co-authored-by: Copilot <[email protected]>
1 parent 04263ea commit f95e553

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/dtls/src/context/cipher.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ export class CipherContext {
110110
serialNumber: nodeCrypto.randomBytes(8).toString("hex"),
111111
name: "C=AU, ST=Some-State, O=Internet Widgits Pty Ltd",
112112
notBefore: new Date(),
113-
notAfter: new Date(new Date().setFullYear(new Date().getFullYear() + 10)),
113+
notAfter: new Date(Date.now() + 10 * 365 * 24 * 60 * 60 * 1000),
114114
signingAlgorithm: alg,
115115
keys,
116116
});

0 commit comments

Comments
 (0)