Copy CA certificate when compiling for win32

ssl version of msys2 does not use the default certificate of Windows but only
the certificates bundled in OPENSSLDIR.

issue6771
review38721002
This commit is contained in:
Cédric Krier
2017-09-27 18:39:03 +02:00
parent 8c52c82dfb
commit d8362cd409
2 changed files with 5 additions and 0 deletions
+4
View File
@@ -23,6 +23,10 @@ if hasattr(sys, 'frozen'):
etc, 'gtk-2.0', 'gdk-pixbuf.loaders')
os.environ['GTK_IM_MODULE_FILE'] = os.path.join(
etc, 'gtk-2.0', 'gtk.immodules')
os.environ.setdefault('SSL_CERT_FILE',
os.path.join(etc, 'ssl', 'cert.pem'))
os.environ.setdefault('SSL_CERT_DIR',
os.path.join(etc, 'ssl', 'certs'))
# Disable dbusmenu to show second menu in tabs
+1
View File
@@ -20,6 +20,7 @@ if sys.platform == 'win32':
include_files.extend([
(os.path.join(sys.prefix, 'share/themes/MS-Windows'),
'share/themes/MS-Windows'),
(os.path.join(sys.prefix, 'ssl'), 'etc/ssl'),
])
dll_paths = os.getenv('PATH', os.defpath).split(os.pathsep)
required_dlls = [