Fix some bugs in the shell scripts.

This commit is contained in:
Adrian Pistol 2016-07-12 17:40:08 +02:00
parent e4d70d5147
commit 133d6eba32
No known key found for this signature in database
GPG key ID: 0AB17C4FEC11E631
3 changed files with 4 additions and 5 deletions

3
target/bin/generate-ssl-certificate Normal file → Executable file
View file

@ -1,6 +1,6 @@
#!/bin/sh
FQDN=$(hostname)
FQDN=$(hostname --fqdn)
cd /ssl
# Create CA certificate
@ -11,4 +11,3 @@ openssl req -new -nodes -keyout /ssl/$FQDN-key.pem -out /ssl/$FQDN-req.pem -days
openssl ca -out /ssl/$FQDN-cert.pem -infiles /ssl/$FQDN-req.pem
# Combine certificates for courier
cat /ssl/$FQDN-key.pem /ssl/$FQDN-cert.pem > /ssl/$FQDN-combined.pem