diff --git a/var/spack/repos/builtin/packages/openssl/package.py b/var/spack/repos/builtin/packages/openssl/package.py index 3151fb4c913..2a549ec73c6 100644 --- a/var/spack/repos/builtin/packages/openssl/package.py +++ b/var/spack/repos/builtin/packages/openssl/package.py @@ -163,6 +163,12 @@ def link_system_certs(self): mkdirp(pkg_dir) for directory in system_dirs: + # Link configuration file + sys_conf = join_path(directory, 'openssl.cnf') + pkg_conf = join_path(pkg_dir, 'openssl.cnf') + if os.path.exists(sys_conf) and not os.path.exists(pkg_conf): + os.symlink(sys_conf, pkg_conf) + sys_cert = join_path(directory, 'cert.pem') pkg_cert = join_path(pkg_dir, 'cert.pem') # If a bundle exists, use it. This is the preferred way on Fedora,