summaryrefslogtreecommitdiffhomepage
path: root/libs/nixio/axtls-root/usr
diff options
context:
space:
mode:
authorSteven Barth <steven@midlink.org>2009-06-06 20:34:33 +0000
committerSteven Barth <steven@midlink.org>2009-06-06 20:34:33 +0000
commit4d4f8f4d79577d0962e0b76db98d67865b69e6a0 (patch)
tree640c2d200202a3d2c94b6b48752ddb796470911d /libs/nixio/axtls-root/usr
parent4dbb045c981cdc07800592cda6363a348ab88612 (diff)
nixio: Fix axTLS configuration, prepare px5g integration
Diffstat (limited to 'libs/nixio/axtls-root/usr')
-rwxr-xr-xlibs/nixio/axtls-root/usr/sbin/nixio-axtls-checkkey26
1 files changed, 0 insertions, 26 deletions
diff --git a/libs/nixio/axtls-root/usr/sbin/nixio-axtls-checkkey b/libs/nixio/axtls-root/usr/sbin/nixio-axtls-checkkey
deleted file mode 100755
index 981c66744e..0000000000
--- a/libs/nixio/axtls-root/usr/sbin/nixio-axtls-checkkey
+++ /dev/null
@@ -1,26 +0,0 @@
-#!/usr/bin/lua
-os.exit(0) --ToDo
-
-local nixio = require "nixio"
-local fs = require "nixio.fs"
-local posix
-local defkey = nixio.meta_tls_context.tls_defaultkey
-local okey = "646e6b90d1ad02719cb1b221b7ce447a"
-
-if not defkey or (io.open(defkey) and
-(nixio.crypto.hash("md5"):update(fs.readfile(defkey)):final()) ~= okey) then
- os.exit(0)
-end
-
-if os.execute("which openssl >/dev/null") == 0 then
- io.stderr:write("Warning: OpenSSL detected "..
- "but it looks like nixio was linked against axtls\n")
- os.execute("umask 0077;openssl genrsa -out '" .. defkey .. "' 2048")
-elseif os.execute("which dropbearkey >/dev/null && which dropbearconvert >/dev/null") == 0 then
- os.execute("dropbearkey -t rsa -s 2048 -f /tmp/dbkey.rsa")
- os.execute("umask 0077;dropbearconvert dropbear openssh /tmp/dbkey.rsa '"..defkey.."'")
- os.remove("/tmp/dbkey.rsa")
-else
- io.stderr:write("No key generators available! Giving up.")
- os.exit(1)
-end