diff options
| author | Jannis R <mail@jannisr.de> | 2020-05-03 01:36:16 +0200 |
|---|---|---|
| committer | Jannis R <mail@jannisr.de> | 2020-05-03 01:36:16 +0200 |
| commit | fbf45404d5810def49b47609cb2a70a09374bc58 (patch) | |
| tree | ff8dc729031b1472fe7496b59e978817fd2b9709 /connect.js | |
| parent | c6a417420e4e82611fdf940d9b7403b8479f8dfc (diff) | |
TOFU client certificates, part 1
Diffstat (limited to 'connect.js')
| -rw-r--r-- | connect.js | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -15,10 +15,12 @@ const connectToGeminiServer = (opt, cb) => { const { hostname, port, + cert, key, passphrase, tlsOpt, } = { hostname: '127.0.0.1', port: DEFAULT_PORT, + cert: null, key: null, passphrase: null, tlsOpt: {}, // todo: TOFU via isTrustedCertificate() ...opt, @@ -28,7 +30,7 @@ const connectToGeminiServer = (opt, cb) => { ALPNProtocols: [ALPN_ID], minVersion: MIN_TLS_VERSION, hostname, port, - // todo: cert, key, passphrase + cert, key, passphrase, ...tlsOpt, }) |
