mirror of
https://github.com/mail-in-a-box/mailinabox.git
synced 2024-11-22 02:17:26 +00:00
show the SSL certificate's fingerprint during setup so the user can sort of pin it
This commit is contained in:
parent
bb7905aefd
commit
2a9349a64e
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user