summaryrefslogtreecommitdiffstats
path: root/lib/util.js
diff options
context:
space:
mode:
Diffstat (limited to 'lib/util.js')
-rw-r--r--lib/util.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/util.js b/lib/util.js
index 3d46bfb..bd3cc93 100644
--- a/lib/util.js
+++ b/lib/util.js
@@ -8,7 +8,13 @@ const ALPN_ID = 'gemini'
// > (the first manned Gemini mission, Gemini 3, flew in March '65).
const DEFAULT_PORT = 1965
+// https://gemini.circumlunar.space/docs/spec-spec.txt, 1.4.1
+// > Servers MUST use TLS version 1.2 or higher and SHOULD use TLS version
+// > 1.3 or higher.
+const MIN_TLS_VERSION = 'TLSv1.2'
+
module.exports = {
ALPN_ID,
DEFAULT_PORT,
+ MIN_TLS_VERSION,
}