summaryrefslogtreecommitdiffstats
path: root/server.js
diff options
context:
space:
mode:
Diffstat (limited to 'server.js')
-rw-r--r--server.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/server.js b/server.js
index cef2c4c..aa7afb7 100644
--- a/server.js
+++ b/server.js
@@ -15,8 +15,10 @@ const createGeminiServer = (opt = {}, onRequest) => {
opt = {}
}
const {
+ cert, key, passphrase,
tlsOpt,
} = {
+ cert: null, key: null, passphrase: null,
tlsOpt: {},
...opt,
}
@@ -103,6 +105,7 @@ const createGeminiServer = (opt = {}, onRequest) => {
// the request with a "transient certificate" to initiate a client
// > certificate section.
rejectUnauthorized: false,
+ cert, key, passphrase,
...tlsOpt,
}, onConnection)