Skip to content
Snippets Groups Projects
Commit 97230b96 authored by Neuber, Eugen Ramon's avatar Neuber, Eugen Ramon :speech_balloon:
Browse files

Change private key size/selfsigned cert to 2048 bit

This was required by an upgrade to OpenSSL 1.1.1j (2021-02-16)
parent 5b4415eb
No related branches found
No related tags found
No related merge requests found
Pipeline #17676 passed
...@@ -57,7 +57,7 @@ export async function generateTLSConfig() { ...@@ -57,7 +57,7 @@ export async function generateTLSConfig() {
if (!fs.existsSync(keyPath) || !fs.existsSync(certPath)) { if (!fs.existsSync(keyPath) || !fs.existsSync(certPath)) {
const attrs = [{name: 'commonName', value: 'dbp-dev.localhost'}]; const attrs = [{name: 'commonName', value: 'dbp-dev.localhost'}];
const pems = selfsigned.generate(attrs, {algorithm: 'sha256', days: 9999}); const pems = selfsigned.generate(attrs, {algorithm: 'sha256', days: 9999, keySize: 2048});
await fs.promises.writeFile(keyPath, pems.private); await fs.promises.writeFile(keyPath, pems.private);
await fs.promises.writeFile(certPath, pems.cert); await fs.promises.writeFile(certPath, pems.cert);
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment