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

Enable SSL_OP_SINGLE_ECDH_USE

Kishore Nallan80e6a7f7477c
diff --git a/src/http_server.cpp b/src/http_server.cpp
index d2c6e71e..4f0f6484 100644
--- a/src/http_server.cpp
+++ b/src/http_server.cpp
@@ -79,6 +79,7 @@ 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_SINGLE_ECDH_USE);
if (SSL_CTX_use_certificate_chain_file(accept_ctx->ssl_ctx, cert_file) != 1) {
LOG(INFO) << "An error occurred while trying to load server certificate file:" << cert_file;