1
0
mirror of https://github.com/mail-in-a-box/mailinabox.git synced 2024-12-22 07:17:05 +00:00

show the SSL certificate's fingerprint during setup so the user can sort of pin it

This commit is contained in:
Joshua Tauberer 2014-06-03 21:39:49 +00:00
parent bb7905aefd
commit 2a9349a64e

View File

@ -233,6 +233,10 @@ if [ ! -f $STORAGE_ROOT/ssl/ssl_certificate.pem ]; then
openssl x509 -req -days 365 \
-in $STORAGE_ROOT/ssl/ssl_cert_sign_req.csr -signkey $STORAGE_ROOT/ssl/ssl_private_key.pem -out $STORAGE_ROOT/ssl/ssl_certificate.pem
fi
echo
echo "Your SSL certificate's fingerpint is:"
openssl x509 -in /home/user-data/ssl/ssl_certificate.pem -noout -fingerprint
echo
# PERMISSIONS / RESTART SERVICES