]> ruderich.org/simon Gitweb - tlsproxy/tlsproxy.git/blobdiff - src/tlsproxy-setup
Check for EOF while reading the HTTP request.
[tlsproxy/tlsproxy.git] / src / tlsproxy-setup
index 4b57a2220aafd62c888c6fba8bb9be82a2ef07cf..d76c998689454c38d004a93d304f00aa932302ee 100755 (executable)
 
 set -e
 
+
+if test "$#" -ne 0; then
+    echo "Usage: $0"
+    exit 1
+fi
+
 tempfile=`mktemp`
 trap 'rm -f "$tempfile"' EXIT
 
@@ -59,4 +65,9 @@ certtool --generate-self-signed \
 
 rm "$tempfile"
 
+# Generate proxy Diffie-Hellman parameters.
+certtool --generate-dh-params \
+         --sec-param high \
+         --outfile proxy-dh.pem
+
 echo done