openssl: link system openssl.conf after installation (#25807)

Co-authored-by: Arcesio Castaneda Medina <arcesio.castaneda.medina@itwm.fraunhofer.de>
This commit is contained in:
acastanedam 2021-09-09 15:15:53 +02:00 committed by GitHub
parent 161f0d5045
commit d8b95a496c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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,