]> ruderich.org/simon Gitweb - tlsproxy/tlsproxy.git/commitdiff
Add basic man pages.
authorSimon Ruderich <simon@ruderich.org>
Tue, 6 Aug 2013 21:01:47 +0000 (23:01 +0200)
committerSimon Ruderich <simon@ruderich.org>
Tue, 6 Aug 2013 21:01:47 +0000 (23:01 +0200)
.gitignore
Makefile.am
NEWS
configure.ac
man/Makefile.am [new file with mode: 0644]
man/man.conf [new file with mode: 0644]
man/tlsproxy-add.txt [new file with mode: 0644]
man/tlsproxy-setup.txt [new file with mode: 0644]
man/tlsproxy.txt [new file with mode: 0644]

index 2ea24890a702cc47474f4278528a809308f10332..5c6e87ab281a13378501946bbe089e3f4fc5a244 100644 (file)
@@ -7,6 +7,7 @@
 /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
index a4593771bd43752305d1819c2c4e381fd497c186..3592e53a9d87a7d1a134f5e7fa348c601ed66245 100644 (file)
@@ -1 +1 @@
-SUBDIRS = src tests
+SUBDIRS = man src tests
diff --git a/NEWS b/NEWS
index c865bc6a39313ba14c3b57ff49420b6c9f5e8119..1d3d2fbb06fce80fdaba1b9725bfefbd05b40a8d 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -8,6 +8,7 @@ NEWS
 - 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.
 
index 6ddf591b91f7f4b52cc729bd571a42561372d538..52ae461d495187e321ff9e276d9ea62dd17cf33e 100644 (file)
@@ -54,5 +54,5 @@ AC_ARG_ENABLE([ipv6],
                    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
diff --git a/man/Makefile.am b/man/Makefile.am
new file mode 100644 (file)
index 0000000..548e898
--- /dev/null
@@ -0,0 +1,17 @@
+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
diff --git a/man/man.conf b/man/man.conf
new file mode 100644 (file)
index 0000000..a6d5079
--- /dev/null
@@ -0,0 +1,10 @@
+# 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>
diff --git a/man/tlsproxy-add.txt b/man/tlsproxy-add.txt
new file mode 100644 (file)
index 0000000..a89cda4
--- /dev/null
@@ -0,0 +1,49 @@
+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
diff --git a/man/tlsproxy-setup.txt b/man/tlsproxy-setup.txt
new file mode 100644 (file)
index 0000000..e04e9f1
--- /dev/null
@@ -0,0 +1,50 @@
+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
diff --git a/man/tlsproxy.txt b/man/tlsproxy.txt
new file mode 100644 (file)
index 0000000..fc66fdb
--- /dev/null
@@ -0,0 +1,48 @@
+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