Debian Codegraph @

debian/scripts/decrypt_ssl

raw symbols SCIP
1 #!/bin/sh
2 #
3 # Script to decrypt the key which is encrypted with openssl.
4 # See /usr/share/doc/cryptsetup/examples/gen-ssl-key to create such a key.
5 #
6
7 decrypt_ssl () {
8 echo "" >&2
9 echo "Decrypting ssl key $1..." >&2
10 if ! /usr/bin/openssl enc -aes-256-cbc -d -salt -in "$1" 2>/dev/null; then
11 return 1
12 fi
13 return 0
14 }
15
16 decrypt_ssl "$1"
17 exit $?