mirror of
https://github.com/misskey-dev/misskey.git
synced 2024-12-13 08:10:50 +01:00
enhance(backend): use RSA 3072bit (#137)
This commit is contained in:
parent
cd509db11e
commit
2445f6635c
2 changed files with 2 additions and 2 deletions
|
@ -33,7 +33,7 @@ export class CreateSystemUserService {
|
||||||
// Generate secret
|
// Generate secret
|
||||||
const secret = generateNativeUserToken();
|
const secret = generateNativeUserToken();
|
||||||
|
|
||||||
const keyPair = await genRsaKeyPair();
|
const keyPair = await genRsaKeyPair(3072);
|
||||||
|
|
||||||
let account!: User;
|
let account!: User;
|
||||||
|
|
||||||
|
|
|
@ -92,7 +92,7 @@ export class SignupService {
|
||||||
|
|
||||||
const keyPair = await new Promise<string[]>((res, rej) =>
|
const keyPair = await new Promise<string[]>((res, rej) =>
|
||||||
generateKeyPair('rsa', {
|
generateKeyPair('rsa', {
|
||||||
modulusLength: 2048,
|
modulusLength: 3072,
|
||||||
publicKeyEncoding: {
|
publicKeyEncoding: {
|
||||||
type: 'spki',
|
type: 'spki',
|
||||||
format: 'pem',
|
format: 'pem',
|
||||||
|
|
Loading…
Reference in a new issue