Files
Amnibro 4a4435afe0 Every install path uses Haven's own certificate generator (#5586)
4.5.0 taught the server to make its certificate itself, but Start Haven.bat, Install Haven.ps1 and the web installer still went looking for openssl.exe first and reported a skipped certificate as done. They now call the same generator through scripts/gen-cert.js, the certificate carries the CA and server-auth flags phones expect when you import it, and the guide and support page stop telling people to install OpenSSL. Reported by MutantRabbit767.
2026-09-08 17:23:38 -04:00

6 lines
305 B
JavaScript

'use strict';
const { CERTS_DIR } = require('../src/paths');
const { ensureCerts } = require('../src/selfsignedCert');
const r = ensureCerts(CERTS_DIR);
console.log(r.created ? `Generated self-signed certificate in ${CERTS_DIR} for ${r.names.join(', ')}` : `Certificate already present in ${CERTS_DIR}`);