1diff --git a/dlls/crypt32/unixlib.c b/dlls/crypt32/unixlib.c
2index 035f2d936bb..959716d727a 100644
3--- a/dlls/crypt32/unixlib.c
4+++ b/dlls/crypt32/unixlib.c
5@@ -24,6 +24,7 @@
6 #include "wine/port.h"
7
8 #include <stdarg.h>
9+#include <stdlib.h>
10 #include <dirent.h>
11 #include <fcntl.h>
12 #include <unistd.h>
13@@ -605,6 +606,10 @@ static void load_root_certs(void)
14
15 for (i = 0; i < ARRAY_SIZE(CRYPT_knownLocations) && list_empty(&root_cert_list); i++)
16 import_certs_from_path( CRYPT_knownLocations[i], TRUE );
17+
18+ char *nix_cert_file = getenv("NIX_SSL_CERT_FILE");
19+ if (nix_cert_file != NULL)
20+ import_certs_from_path(nix_cert_file, TRUE);
21 }
22
23 static BOOL WINAPI enum_root_certs( void *buffer, SIZE_T size, SIZE_T *needed )