Skip to content

Open Source alternative to Algolia + Pinecone and an Easier-to-Use alternative to ElasticSearch ⚡ 🔍 ✨ Fast, typo tolerant, in-memory fuzzy Search Engine for building delightful search experiences

Disable TLS v1.0 and v1.1

kishorenc2fa42c13ea98
diff --git a/src/http_server.cpp b/src/http_server.cpp
index 0f4b2055..b8937c26 100644
--- a/src/http_server.cpp
+++ b/src/http_server.cpp
@@ -102,6 +102,9 @@ int HttpServer::setup_ssl(const char *cert_file, const char *key_file) {
SSL_CTX_set_options(accept_ctx->ssl_ctx, SSL_OP_NO_SSLv2);
SSL_CTX_set_options(accept_ctx->ssl_ctx, SSL_OP_NO_SSLv3);
+ SSL_CTX_set_options(accept_ctx->ssl_ctx, SSL_OP_NO_TLSv1);
+ SSL_CTX_set_options(accept_ctx->ssl_ctx, SSL_OP_NO_TLSv1_1);
+
SSL_CTX_set_options(accept_ctx->ssl_ctx, SSL_OP_SINGLE_ECDH_USE);
if (SSL_CTX_use_certificate_chain_file(accept_ctx->ssl_ctx, cert_file) != 1) {