Fix key type typo
This commit is contained in:
@@ -31,8 +31,7 @@ async function generateKey(certName, type) {
|
||||
|
||||
if (type === 'rsa4096') {
|
||||
return await shell.spawn('openssl', ['genrsa', '4096'], { encoding: 'utf8' });
|
||||
} else if (type === 'secp384r1') {
|
||||
// secp384r1 is same as prime256v1. openssl ecparam -list_curves. we used to use secp384r1 but it doesn't seem to be accepted by few mail servers
|
||||
} else if (type === 'secp256r1') {
|
||||
return await shell.spawn('openssl', ['ecparam', '-genkey', '-name', type], { encoding: 'utf8' });
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user