mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
[enh] Add x509 fingerprint in /etc/issue
This commit is contained in:
parent
bca4cd0c51
commit
51c66dde94
1 changed files with 5 additions and 0 deletions
|
@ -1,5 +1,9 @@
|
|||
#!/bin/bash
|
||||
|
||||
# Fetch x509 fingerprint
|
||||
x509_fingerprint=$(openssl x509 -in /etc/yunohost/certs/yunohost.org/crt.pem -noout -fingerprint -sha256 | cut -d= -f2)
|
||||
|
||||
|
||||
# Fetch SSH fingerprints
|
||||
i=0
|
||||
for key in $(ls /etc/ssh/ssh_host_{ed25519,rsa,ecdsa}_key.pub 2> /dev/null) ; do
|
||||
|
@ -40,6 +44,7 @@ LOGO_AND_FINGERPRINTS=$(cat << EOF
|
|||
$LOGO
|
||||
|
||||
IP: ${local_ip}
|
||||
X509 fingerprint: ${x509_fingerprint}
|
||||
SSH fingerprints:
|
||||
${fingerprint[0]}
|
||||
${fingerprint[1]}
|
||||
|
|
Loading…
Add table
Reference in a new issue