refactor: set encoding type as pkcs1 for node-ssh connect function

This commit is contained in:
Levi Yan
2024-10-28 19:10:09 +08:00
parent 365795fe17
commit 76d713b4f1

View File

@@ -107,11 +107,11 @@ export default class User {
} = await generateKeyPairSync('rsa', { } = await generateKeyPairSync('rsa', {
modulusLength: 4096, modulusLength: 4096,
publicKeyEncoding: { publicKeyEncoding: {
type: 'spki', type: 'pkcs1',
format: 'pem', format: 'pem',
}, },
privateKeyEncoding: { privateKeyEncoding: {
type: 'pkcs8', type: 'pkcs1',
format: 'pem', format: 'pem',
}, },
}); });