| 1 | #!/bin/shscip-shell filesystem . . `/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_sslscip-shell shell shell-project 0.0.0 decrypt_ssl(). () { |
| 8 | echoscip-shell system . . echo. "" >&2 |
| 9 | echoscip-shell system . . echo. "Decrypting ssl key $1..." >&2 |
| 10 | if ! /usr/bin/opensslscip-shell filesystem . . `/usr/bin/openssl`. enc -aes-256-cbc -d -salt -in "$1" 2>/dev/nullscip-shell filesystem . . `/dev/null`.; then |
| 11 | return 1 |
| 12 | fi |
| 13 | return 0 |
| 14 | } |
| 15 | |
| 16 | decrypt_sslscip-shell shell shell-project 0.0.0 decrypt_ssl(). "$1" |
| 17 | exit $? |