diff --git a/cmake/OpenSSL.cmake b/cmake/OpenSSL.cmake
index 154a82789..d0c0d1641 100644
--- a/cmake/OpenSSL.cmake
+++ b/cmake/OpenSSL.cmake
@@ -11,6 +11,10 @@ if (WITH_TLS)
     else()
         message(FATAL_ERROR "OpenSSL NOT found: use `-DWITH_TLS=OFF` to build without TLS support")
     endif()
+
+    if (WIN32)
+        set(EXTRA_LIBS ${EXTRA_LIBS} Crypt32)
+    endif()
 else()
     set(TLS_SOURCES "")
     set(OPENSSL_LIBRARIES "")