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

View File

@@ -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[] = [

View File

@@ -625,7 +625,7 @@ export const relayServiceFactory = ({
const relayServerKeys = await crypto.nativeCrypto.subtle.generateKey(alg, true, ["sign", "verify"]);
const relayServerCertIssuedAt = new Date();
const relayServerCertExpireAt = new Date(new Date().setMonth(new Date().getMonth() + 1));
const relayServerCertExpireAt = new Date(new Date().setDate(new Date().getDate() + 1));
const relayServerCertPrivateKey = crypto.nativeCrypto.KeyObject.from(relayServerKeys.privateKey);
const relayServerCertExtensions: x509.Extension[] = [
@@ -804,7 +804,7 @@ export const relayServiceFactory = ({
keyId: `client-${relayName}`,
principals: [gatewayId],
certType: SshCertType.USER,
requestedTtl: "30d"
requestedTtl: "1d"
});
return {