We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
createHttpServer
1 parent 3edb8ca commit 0c9c6a2Copy full SHA for 0c9c6a2
project/src/servers/HttpServer.ts
@@ -85,9 +85,16 @@ export class HttpServer {
85
} catch (err: unknown) {
86
const timer = new Timer();
87
credentials = await this.generateSelfSignedCertificate();
88
- this.logger.debug(`Generating self-signed SSL certificate took ${timer.getTime("sec")}s`);
+ this.logger.debug(`Generating self-signed SSL certificate took: ${timer.getTime("sec")}s`);
89
}
90
- return https.createServer(credentials);
+
91
+ const options: https.ServerOptions = {
92
+ cert: credentials.cert,
93
+ key: credentials.key,
94
+ minVersion: "TLSv1.2",
95
+ maxVersion: "TLSv1.2",
96
+ };
97
+ return https.createServer(options);
98
99
100
/**
0 commit comments