mirror of
https://github.com/xcat2/confluent.git
synced 2024-11-29 13:00:03 +00:00
Fix SUSE certificate handling
SUSE requires things go through update-ca-certificates, update the generated certs and the post to do that.
This commit is contained in:
parent
b9cdf0d941
commit
540d0e1795
@ -44,4 +44,5 @@ cp /tmp/confluent.* /mnt/etc/confluent/
|
||||
cp -a /tls /mnt/etc/confluent/
|
||||
cp -a /tls/* /mnt/var/lib/ca-certificates/openssl
|
||||
cp -a /tls/* /mnt/etc/ssl/certs
|
||||
cp -a /tls/*.cert /etc/pki/trust/anchors
|
||||
|
||||
|
@ -53,7 +53,7 @@ def create_certificate(outdir):
|
||||
shutil.copy2(sslcfg, tmpconfig)
|
||||
try:
|
||||
with open(tmpconfig, 'a') as cfgfile:
|
||||
cfgfile.write('\n[SAN]\nsubjectAltName={0}'.format(san))
|
||||
cfgfile.write('\n[SAN]i\nbasicConstraints = CA:true\nsubjectAltName={0}'.format(san))
|
||||
subprocess.check_call([
|
||||
'openssl', 'req', '-new', '-x509', '-key', keyout, '-days',
|
||||
'7300', '-out', certout, '-subj', '/CN={0}'.format(longname),
|
||||
|
Loading…
Reference in New Issue
Block a user