mirror of
https://github.com/ancsemi/Haven.git
synced 2026-10-25 16:20:42 +00:00
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.
6 lines
305 B
JavaScript
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}`);
|