0xV3NOMx
Linux ip-172-26-7-228 5.4.0-1103-aws #111~18.04.1-Ubuntu SMP Tue May 23 20:04:10 UTC 2023 x86_64



Your IP : 3.145.42.140


Current Path : /snap/core22/1722/lib/cryptsetup/scripts/
Upload File :
Current File : //snap/core22/1722/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 $?