2
0
mirror of https://github.com/xcat2/confluent.git synced 2024-11-22 17:43:14 +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:
Jarrod Johnson 2020-05-21 14:37:17 -04:00
parent 6246d9e0a4
commit 22d5da3ae9
2 changed files with 3 additions and 3 deletions

View File

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

View File

@ -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'):