Pass ssl certificate options to anaconda
If a repository has `sslcacert`, `sslclientcert`, or `ssclientkey` set,
pass them to anaconda through the kickstart file. This is mostly the
case when using RHEL repositories that are accessed through a
subscription.
(cherry picked from commit e194b5926c
)
Resolves: rhbz#1663950
This commit is contained in:
parent
9e0e2b718f
commit
1511c0f9a2
@ -48,7 +48,7 @@ Requires: kpartx
|
|||||||
# Python modules
|
# Python modules
|
||||||
Requires: libselinux-python3
|
Requires: libselinux-python3
|
||||||
Requires: python3-mako
|
Requires: python3-mako
|
||||||
Requires: python3-kickstart
|
Requires: python3-kickstart >= 3.16.4
|
||||||
Requires: python3-dnf >= 3.2.0
|
Requires: python3-dnf >= 3.2.0
|
||||||
Requires: python3-librepo
|
Requires: python3-librepo
|
||||||
|
|
||||||
|
@ -115,6 +115,13 @@ def repo_to_ks(r, url="url"):
|
|||||||
if not r.sslverify:
|
if not r.sslverify:
|
||||||
cmd += '--noverifyssl'
|
cmd += '--noverifyssl'
|
||||||
|
|
||||||
|
if r.sslcacert:
|
||||||
|
cmd += ' --sslcacert="%s"' % r.sslcacert
|
||||||
|
if r.sslclientcert:
|
||||||
|
cmd += ' --sslclientcert="%s"' % r.sslclientcert
|
||||||
|
if r.sslclientkey:
|
||||||
|
cmd += ' --sslclientkey="%s"' % r.sslclientkey
|
||||||
|
|
||||||
return cmd
|
return cmd
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user