Debian Codegraph @

debian/scripts/gen-ssl-key

raw symbols SCIP
1 #!/bin/shscip-shell filesystem . . `/bin/sh`.
2 #
3 # script to generate a keyfile that is encrypted with openssl
4 #
5 # Written 2005 by Markus Nass <[email protected]>
6 # Improved 2006 by Jonas Meurer <[email protected]>
7 # Further improved 2006 by Markus Nass <[email protected]>
8
9 usagescip-shell shell shell-project 0.0.0 usage().() {
10 echoscip-shell system . . echo. "Usage: $0 <key>"
11 exit 1
12 }
13
14 if [scip-shell system . . `[`. -z "${1-}" ] || [scip-shell system . . `[`. "$1" = "-h" ] || [scip-shell system . . `[`. "$1" = "--help" ]; then
15 usagescip-shell shell shell-project 0.0.0 usage().
16 fi
17
18 if [scip-shell system . . `[`. -x /usr/bin/opensslscip-shell filesystem . . `/usr/bin/openssl`. ]; then
19 ddscip-shell system . . dd. if=/dev/randomscip-shell filesystem . . `/dev/random`. bs=1c count=256 | opensslscip-shell system . . openssl. enc -aes-256-cbc -e -salt >"$1"
20 else
21 echoscip-shell system . . echo. "/usr/bin/openssl is not availablescip-shell filesystem . . `/usr/bin/openssl is not available`." && exit 1
22 fi