enabled batch key generation

This commit is contained in:
andreas
2023-10-24 15:51:00 +00:00
parent f578f70a69
commit b17b808404
5 changed files with 162 additions and 12 deletions

8
ssl/create-key Normal file
View File

@@ -0,0 +1,8 @@
#!/usr/bin/bash
echo creating keys for $1
# create kopano clients ssl key pair (for authentification)
# private key for client, public key for server sslkeys
export CN=$1
export SAN=DNS:$CN
openssl req -new -out tmp/$CN.csr -nodes -keyout certs/$CN.key
openssl ca -batch -in tmp/$CN.csr -passin env:CA_PWD -out certs/$CN.crt -extensions server_ext