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
1 changed files with 4 additions and 0 deletions

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