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:
parent
e1538b12e7
commit
008ab5395b
2 changed files with 2 additions and 1 deletions
|
@ -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",
|
||||
|
|
|
@ -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 */
|
||||
|
|
Loading…
Reference in a new issue