diff --git a/beempy-onedir.spec b/beempy-onedir.spec
index e6f8516a445e670a0f069c9fe25445aac0a6db43..9ab964699757f54e09e4cffcd7f6c4fb34968518 100644
--- a/beempy-onedir.spec
+++ b/beempy-onedir.spec
@@ -5,13 +5,14 @@ import glob
 import platform
 from PyInstaller.utils.hooks import exec_statement
 import websocket
+import certifi
 from os.path import join, dirname, basename
 
 block_cipher = None
 os_name = platform.system()
 binaries = []
 
-websocket_lib_path = dirname(websocket.__file__)
+websocket_lib_path = dirname(certifi.__file__)
 websocket_cacert_file_path = join(websocket_lib_path, 'cacert.pem')
 analysis_data = [
     # For websocket library to find "cacert.pem" file, it must be in websocket
diff --git a/beempy-onefile.spec b/beempy-onefile.spec
index 53c0dcd5dfb7dad8b010384eb1cac30dfdd72e4f..c9534b3762e0e8dda58d3267b1533e2e9c00e360 100644
--- a/beempy-onefile.spec
+++ b/beempy-onefile.spec
@@ -5,13 +5,14 @@ import glob
 import platform
 from PyInstaller.utils.hooks import exec_statement
 import websocket
+import certifi
 from os.path import join, dirname, basename
 
 block_cipher = None
 os_name = platform.system()
 binaries = []
 
-websocket_lib_path = dirname(websocket.__file__)
+websocket_lib_path = dirname(certifi.__file__)
 websocket_cacert_file_path = join(websocket_lib_path, 'cacert.pem')
 analysis_data = [
     # For websocket library to find "cacert.pem" file, it must be in websocket