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:
parent
161f0d5045
commit
d8b95a496c
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user