a lot of things
This commit is contained in:
@@ -40,14 +40,11 @@ await Promise.all(
|
||||
});
|
||||
|
||||
if (!privExists || !pubExists) {
|
||||
// Always regenerate both files together to ensure the key pair matches
|
||||
console.log(`Generating '${v}' and '${pubPath}'...`);
|
||||
const keys = keypair({ bits: 4096 });
|
||||
if (!privExists) {
|
||||
await Bun.write(v, keys.private);
|
||||
}
|
||||
if (!pubExists) {
|
||||
await Bun.write(pubPath, keys.public);
|
||||
}
|
||||
await Bun.write(v, keys.private);
|
||||
await Bun.write(pubPath, keys.public);
|
||||
}
|
||||
return;
|
||||
}),
|
||||
|
||||
Reference in New Issue
Block a user