refactor: set encoding type as pkcs1 for node-ssh connect function
This commit is contained in:
@@ -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',
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user