/config.h.in~
/configure
/Makefile.in
+/man/Makefile.in
/src/Makefile.in
/tests/Makefile.in
# Created by ./configure.
/config.log
/config.status
/Makefile
+/man/Makefile
/src/.deps/
/src/Makefile
/stamp-h1
/tests/.deps/
/tests/Makefile
# Created by make.
+/man/tlsproxy.1
+/man/tlsproxy-add.1
+/man/tlsproxy-setup.1
/src/tlsproxy
/tests/client
-SUBDIRS = src tests
+SUBDIRS = man src tests
- Better error handling.
- Fix compile with recent GnuTLS (e.g. 3.2.3).
- Improve (error) logging; log to stderr.
+- Add (basic) man pages.
- Improve test suite.
- tlsproxy-setup: Increase expiry-date and use larger private key.
AC_DEFINE([USE_IPV4_ONLY], 1, [Define to not use IPv6.])
fi])
-AC_CONFIG_FILES([Makefile src/Makefile tests/Makefile])
+AC_CONFIG_FILES([Makefile man/Makefile src/Makefile tests/Makefile])
AC_OUTPUT
--- /dev/null
+dist_man1_MANS = tlsproxy.1 tlsproxy-setup.1 tlsproxy-add.1
+dist_noinst_DATA = tlsproxy.txt tlsproxy-setup.txt tlsproxy-add.txt
+
+MAINTAINERCLEANFILES = $(dist_man1_MANS)
+
+
+ASCIIDOC = asciidoc
+XMLTO = xmlto
+RM = rm
+
+A2XML = $(ASCIIDOC) --backend=docbook --doctype=manpage --conf-file=man.conf
+XML2MAN = $(XMLTO) man
+
+.txt.1:
+ $(A2XML) -o $@.xml $<
+ $(XML2MAN) $@.xml
+ $(RM) $@.xml
--- /dev/null
+# Macro to display links to other man pages. Inspired by Git's linkgit:[]
+# macro.
+[macros]
+(?su)[\\]?(?P<name>manlink):(?P<target>\S*?)\[(?P<attrlist>.*?)\]=
+
+[manlink-inlinemacro]
+<citerefentry>
+ <refentrytitle>{target}</refentrytitle>
+ <manvolnum>{0}</manvolnum>
+</citerefentry>
--- /dev/null
+tlsproxy-add(1)
+===============
+
+NAME
+----
+
+tlsproxy-add - add server certificate
+
+
+SYNOPSIS
+--------
+
+*tlsproxy-add* 'hostname' ['server-certificate']
+
+
+DESCRIPTION
+-----------
+
+Add the server certificate for 'hostname'. If 'server-certificate' is not
+specified, the certificate is read from stdin.
+
+Importing creates the following files in the current directory ('hostname' is
+the specified hostname).
+
+- certificate-'hostname'-proxy.pem
+- certificate-'hostname'-server.pem
+
+Requires GnuTLS' *certtool*.
+
+
+AUTHORS
+-------
+
+Written by Simon Ruderich <simon@ruderich.org>.
+
+
+COPYRIGHT
+---------
+
+Copyright \(C) 2011-2013 Simon Ruderich. Free software licensed under GPL
+version 3 or later.
+
+
+SEE ALSO
+--------
+
+manlink:tlsproxy[1]
+
+// vim: ft=asciidoc
--- /dev/null
+tlsproxy-setup(1)
+=================
+
+NAME
+----
+
+tlsproxy-setup - create necessary files for tlsproxy
+
+
+SYNOPSIS
+--------
+
+*tlsproxy-setup*
+
+
+DESCRIPTION
+-----------
+
+*tlsproxy-setup* creates required files for *tlsproxy*, should be run in an
+empty directory.
+
+It creates the following files in the current directory:
+
+- proxy-ca.pem
+- proxy-ca-key.pem
+- proxy-key.pem
+- proxy-invalid.pem
+
+Requires GnuTLS' *certtool*.
+
+
+AUTHORS
+-------
+
+Written by Simon Ruderich <simon@ruderich.org>.
+
+
+COPYRIGHT
+---------
+
+Copyright \(C) 2011-2013 Simon Ruderich. Free software licensed under GPL
+version 3 or later.
+
+
+SEE ALSO
+--------
+
+manlink:tlsproxy[1]
+
+// vim: ft=asciidoc
--- /dev/null
+tlsproxy(1)
+===========
+
+NAME
+----
+
+tlsproxy - simple TLS proxy with server certificate validation
+
+
+SYNOPSIS
+--------
+
+*tlsproxy* ['options'] 'port'
+
+
+DESCRIPTION
+-----------
+
+tlsproxy is a TLS proxy for HTTPS which intercepts the connections and ensures
+the server certificate doesn't change. Normally this isn't detected if a
+trusted CA for the new server certificate is installed.
+
+
+BUGS
+----
+
+See the tlsproxy distribution README file.
+
+
+AUTHORS
+-------
+
+Written by Simon Ruderich <simon@ruderich.org>.
+
+
+COPYRIGHT
+---------
+
+Copyright \(C) 2011-2013 Simon Ruderich. Free software licensed under GPL
+version 3 or later.
+
+
+SEE ALSO
+--------
+
+manlink:tlsproxy-add[1], manlink:tlsproxy-setup[1]
+
+// vim: ft=asciidoc