0
Fork 0
mirror of https://github.com/logto-io/logto.git synced 2024-12-16 20:26:19 -05:00

chore(core): increase the key length

increase the key length
This commit is contained in:
simeng-li 2023-09-22 17:44:10 +08:00
parent e1538b12e7
commit 008ab5395b
No known key found for this signature in database
GPG key ID: 14EA7BB1541E8075
2 changed files with 2 additions and 1 deletions

View file

@ -9,6 +9,7 @@
"prepare": "if test \"$NODE_ENV\" != \"production\" && test \"$CI\" != \"true\" ; then husky install ; fi", "prepare": "if test \"$NODE_ENV\" != \"production\" && test \"$CI\" != \"true\" ; then husky install ; fi",
"prepack": "pnpm -r prepack", "prepack": "pnpm -r prepack",
"dev": "pnpm -r prepack && pnpm start:dev", "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:dev": "pnpm -r --parallel --filter=!@logto/integration-tests --filter \"!./packages/connectors/connector-*\" dev",
"start": "cd packages/core && NODE_ENV=production node .", "start": "cd packages/core && NODE_ENV=production node .",
"cli": "logto", "cli": "logto",

View file

@ -3,7 +3,7 @@ import forge from 'node-forge';
export const generateSamlKeyPair = () => { export const generateSamlKeyPair = () => {
const { pki } = forge; const { pki } = forge;
const { privateKey, publicKey } = pki.rsa.generateKeyPair(1024); const { privateKey, publicKey } = pki.rsa.generateKeyPair(2048);
const cert = pki.createCertificate(); const cert = pki.createCertificate();
/* eslint-disable @silverhand/fp/no-mutation */ /* eslint-disable @silverhand/fp/no-mutation */