misc: shortened cert expiry

This commit is contained in:
Sheen Capadngan
2025-09-11 03:26:31 +08:00
parent 26de424849
commit cb3ba75bc0
2 changed files with 3 additions and 3 deletions
@@ -471,7 +471,7 @@ export const gatewayV2ServiceFactory = ({
const gatewayServerKeys = await crypto.nativeCrypto.subtle.generateKey(alg, true, ["sign", "verify"]);
const gatewayServerCertIssuedAt = new Date();
const gatewayServerCertExpireAt = new Date(new Date().setMonth(new Date().getMonth() + 1));
const gatewayServerCertExpireAt = new Date(new Date().setDate(new Date().getDate() + 1));
const gatewayServerCertPrivateKey = crypto.nativeCrypto.KeyObject.from(gatewayServerKeys.privateKey);
const gatewayServerCertExtensions: x509.Extension[] = [