| Server IP : 216.107.137.15 / Your IP : 216.73.216.24 Web Server : LiteSpeed System : Linux srv877165910.host 5.15.0-126-generic #136-Ubuntu SMP Wed Nov 6 10:38:22 UTC 2024 x86_64 User : batas6485 ( 1035) PHP Version : 8.1.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /lib/cryptsetup/scripts/ |
Upload File : |
#!/bin/sh
#
# Script to decrypt the key which is encrypted with openssl.
# See /usr/share/doc/cryptsetup/examples/gen-ssl-key to create such a key.
#
decrypt_ssl () {
echo "" >&2
echo "Decrypting ssl key $1..." >&2
if ! /usr/bin/openssl enc -aes-256-cbc -d -salt -in "$1" 2>/dev/null; then
return 1
fi
return 0
}
decrypt_ssl "$1"
exit $?