From 008ab5395b8d56242286729d7390827eb658759f Mon Sep 17 00:00:00 2001 From: simeng-li Date: Fri, 22 Sep 2023 17:44:10 +0800 Subject: [PATCH] chore(core): increase the key length increase the key length --- package.json | 1 + packages/core/src/utils/saml.ts | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 8e0595e89..1322a2ba9 100644 --- a/package.json +++ b/package.json @@ -9,6 +9,7 @@ "prepare": "if test \"$NODE_ENV\" != \"production\" && test \"$CI\" != \"true\" ; then husky install ; fi", "prepack": "pnpm -r prepack", "dev": "pnpm -r prepack && pnpm start:dev", + "dev:cloud": "IS_CLOUD=1 CONSOLE_PUBLIC_URL=/ pnpm dev", "start:dev": "pnpm -r --parallel --filter=!@logto/integration-tests --filter \"!./packages/connectors/connector-*\" dev", "start": "cd packages/core && NODE_ENV=production node .", "cli": "logto", diff --git a/packages/core/src/utils/saml.ts b/packages/core/src/utils/saml.ts index 70d152434..42dc2e531 100644 --- a/packages/core/src/utils/saml.ts +++ b/packages/core/src/utils/saml.ts @@ -3,7 +3,7 @@ import forge from 'node-forge'; export const generateSamlKeyPair = () => { const { pki } = forge; - const { privateKey, publicKey } = pki.rsa.generateKeyPair(1024); + const { privateKey, publicKey } = pki.rsa.generateKeyPair(2048); const cert = pki.createCertificate(); /* eslint-disable @silverhand/fp/no-mutation */