Skip to content

Commit

Permalink
enhance(backend): use RSA 3072bit (misskey-dev#137)
Browse files Browse the repository at this point in the history
  • Loading branch information
u1-liquid authored and kanarikanaru committed Nov 3, 2023
1 parent 04095b5 commit 5d2de97
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/backend/src/core/CreateSystemUserService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ export class CreateSystemUserService {
// Generate secret
const secret = generateNativeUserToken();

const keyPair = await genRsaKeyPair();
const keyPair = await genRsaKeyPair(3072);

let account!: MiUser;

Expand Down
2 changes: 1 addition & 1 deletion packages/backend/src/core/SignupService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ export class SignupService {

const keyPair = await new Promise<string[]>((res, rej) =>
generateKeyPair('rsa', {
modulusLength: 2048,
modulusLength: 3072,
publicKeyEncoding: {
type: 'spki',
format: 'pem',
Expand Down

0 comments on commit 5d2de97

Please sign in to comment.