AlaK4X
Linux lhjmq-records 5.15.0-118-generic #128-Ubuntu SMP Fri Jul 5 09:28:59 UTC 2024 x86_64



Your IP : 18.227.134.165


Current Path : /snap/core20/current/lib/cryptsetup/scripts/
Upload File :
Current File : //snap/core20/current/lib/cryptsetup/scripts/decrypt_ssl

#!/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 $?