#!/bin/sh if $(echo "$QUERY_STRING" | grep -q dogencert ); then sh /mod/etc/default.shellinabox/generate_cert.sh echo '' echo '' rm /tmp/shellinabox_certificate.pem exit fi . /usr/lib/libmodcgi.sh [ -r /etc/options.cfg ] && . /etc/options.cfg check "$SHELLINABOX_NOSSL" true:ssldis if [ "$SHELLINABOX_NOSSL" = true -o "$FREETZ_PACKAGE_SHELLINABOX_SSL" != "y" ]; then displayssl="none" else displayssl="block" fi if [ "$FREETZ_PACKAGE_SHELLINABOX_BOXCERT" == y ]; then check "$SHELLINABOX_USEBOXCERT" yes:boxcert *:owncert if [ "$SHELLINABOX_USEBOXCERT" == yes ]; then displayowncert="none" else displayowncert="block" fi fi sec_begin '$(lang de:"Starttyp" en:"Start type")' cgi_print_radiogroup_service_starttype "enabled" "$SHELLINABOX_ENABLED" "" "" 0 sec_end sec_begin '$(lang de:"Konfiguration" en:"Configuration")' cat << EOF EOF if [ "$FREETZ_PACKAGE_SHELLINABOX_SSL" == "y" ]; then cat << EOF EOF fi cat << EOF
Port: $(lang de:"SSL deaktivieren" en:"Disable SSL"):  
Service:
EOF if [ "$FREETZ_PACKAGE_SHELLINABOX_BOXCERT" == y ]; then cat << EOF


EOF fi cat << EOF

$(lang de:"Zertifikat" en:"Certificate")

EOF if which openssl_req >/dev/null 2>&1; then cat << EOF $(lang de:"Die Box kann ein minimales, selbst signiertes Zertifikat erstellen. Das dauert etwas..." en:"This will build a self signed certificate on the box. Will take some time..") EOF fi cat << EOF

$(lang de:"Andere Optionen" en:"Additional options"):

EOF sec_end