mirror of
https://github.com/zokradonh/kopano-docker.git
synced 2026-08-20 12:52:59 +00:00
also build ssl helper container
fix creation of folders when ssl helper is run with mounted dirs
This commit is contained in:
+3
-2
@@ -2,8 +2,9 @@
|
||||
|
||||
echo "Creating CA and Server certificates..."
|
||||
|
||||
easypki create --filename internalca --organizational-unit primary --expire 3650 --ca "Internal Kopano System"
|
||||
easypki create --filename internalca --organizational-unit primary --expire 3650 --ca "Internal Kopano System"
|
||||
|
||||
mkdir -p /kopano/ssl/clients/
|
||||
cp /kopano/easypki/internalca/certs/internalca.crt /kopano/ssl/ca.pem
|
||||
|
||||
for s in kserver kdagent kmonitor ksearch kspooler kwebapp
|
||||
@@ -14,4 +15,4 @@ for s in kserver kdagent kmonitor ksearch kspooler kwebapp
|
||||
openssl x509 -in /kopano/easypki/internalca/certs/$s.crt -pubkey -noout > /kopano/ssl/clients/$s-public.pem
|
||||
done
|
||||
|
||||
ls -l /kopano/ssl/*.pem
|
||||
ls -l /kopano/ssl/*.pem
|
||||
|
||||
+2
-3
@@ -1,8 +1,7 @@
|
||||
#!/bin/sh
|
||||
|
||||
|
||||
if [ -f /kopano/ssl/ca.pem ]
|
||||
then exit 0
|
||||
if [ -f /kopano/ssl/ca.pem ]; then
|
||||
exit 0
|
||||
fi
|
||||
|
||||
/gencerts.sh
|
||||
|
||||
Reference in New Issue
Block a user