1
0
mirror of https://github.com/MisskeyIO/misskey synced 2024-11-27 22:38:30 +09:00

enhance(backend): use RSA 3072bit (#137)

This commit is contained in:
まっちゃとーにゅ 2023-08-07 04:32:17 +09:00 committed by GitHub
parent cd509db11e
commit 2445f6635c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -33,7 +33,7 @@ export class CreateSystemUserService {
// Generate secret
const secret = generateNativeUserToken();
const keyPair = await genRsaKeyPair();
const keyPair = await genRsaKeyPair(3072);
let account!: User;

View File

@ -92,7 +92,7 @@ export class SignupService {
const keyPair = await new Promise<string[]>((res, rej) =>
generateKeyPair('rsa', {
modulusLength: 2048,
modulusLength: 3072,
publicKeyEncoding: {
type: 'spki',
format: 'pem',