mirror of
https://github.com/xcat2/confluent.git
synced 2024-11-22 09:32:21 +00:00
Rename certs to pem
There are contexts where the .cert name is not recognized, go for .pem name instead.
This commit is contained in:
parent
6246d9e0a4
commit
22d5da3ae9
@ -45,5 +45,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/var/lib/ca-certificates/pem
|
||||
cp -a /tls/*.cert /mnt/etc/pki/trust/anchors
|
||||
cp -a /tls/*.pem /mnt/etc/pki/trust/anchors
|
||||
|
||||
|
@ -61,7 +61,7 @@ def create_certificate(outdir):
|
||||
])
|
||||
finally:
|
||||
os.remove(tmpconfig)
|
||||
fname = '/var/lib/confluent/public/site/tls/{0}.cert'.format(
|
||||
fname = '/var/lib/confluent/public/site/tls/{0}.pem'.format(
|
||||
collective.get_myname())
|
||||
shutil.copy2(certout, fname)
|
||||
hv = subprocess.check_output(
|
||||
@ -70,7 +70,7 @@ def create_certificate(outdir):
|
||||
hv = hv.decode('utf8')
|
||||
hv = hv.strip()
|
||||
hashname = '/var/lib/confluent/public/site/tls/{0}.0'.format(hv)
|
||||
certname = '{0}.cert'.format(collective.get_myname())
|
||||
certname = '{0}.pem'.format(collective.get_myname())
|
||||
for currname in os.listdir('/var/lib/confluent/public/site/tls/'):
|
||||
currname = os.path.join('/var/lib/confluent/public/site/tls/', currname)
|
||||
if currname.endswith('.0'):
|
||||
|
Loading…
Reference in New Issue
Block a user