Archived
1
0

src/node/cli.ts: Add --cert-host to configure generated certificate hostname

This commit is contained in:
Anmol Sethi
2020-10-30 05:26:40 -04:00
parent 8b85006996
commit bae28727bd
4 changed files with 13 additions and 7 deletions

View File

@ -45,7 +45,7 @@ describe("SocketProxyProvider", () => {
}
before(async () => {
const cert = await generateCertificate()
const cert = await generateCertificate("localhost")
const options = {
cert: fs.readFileSync(cert.cert),
key: fs.readFileSync(cert.certKey),