diff --git a/.travis.mk b/.travis.mk
index e1d7ea194694024d0172d88865aeafb5f3555790..aaeeddce2732ec06630cf04fcf6e7bfbe4c2c5bd 100644
--- a/.travis.mk
+++ b/.travis.mk
@@ -340,7 +340,7 @@ test_odroid_arm64: deps_odroid_arm64 test_odroid_arm64_no_deps
 # FIXME: Temporary pinned python3 to specific version (i.e. python@3.8) to
 # avoid gevent package installation failure described in gevent/gevent#1721.
 # Revert this back when the issue is resolved.
-OSX_PKGS=openssl readline curl icu4c libiconv zlib cmake python@3.8
+OSX_PKGS=openssl@1.1 readline curl icu4c libiconv zlib cmake python@3.8
 
 deps_osx:
 	# install brew using command from Homebrew repository instructions:
diff --git a/cmake/os.cmake b/cmake/os.cmake
index 276a79b42b6aa9f189d97045601285e8898cbb9d..7c50aa8aeb0499073d11e68d7f2250ed346d03af 100644
--- a/cmake/os.cmake
+++ b/cmake/os.cmake
@@ -132,7 +132,7 @@ elseif (${CMAKE_SYSTEM_NAME} STREQUAL "Darwin")
         endif()
 
         # Detecting OpenSSL
-        execute_process(COMMAND ${HOMEBREW_EXECUTABLE} --prefix openssl
+        execute_process(COMMAND ${HOMEBREW_EXECUTABLE} --prefix openssl@1.1
                         OUTPUT_VARIABLE HOMEBREW_OPENSSL
                         OUTPUT_STRIP_TRAILING_WHITESPACE)
         if (DEFINED HOMEBREW_OPENSSL)