This is a collection of 4 patches sent to the -devel mailing list:
* [PATCH] Frob the openvpn(8) man page tls-verify section to clarify
* [PATCH] More improvments to openvpn(8) --tls-verify
* [PATCH] Yet another tweak of openvpn(8) --tls-verify
* [PATCH] Final frobbing of openvpn(8) --tls-verify
Signed-off-by: David Sommerseth <dazo@users.sourceforge.net>
Acked-by: David Sommerseth <dazo@users.sourceforge.net>
... | ... |
@@ -4230,11 +4230,23 @@ test). |
4230 | 4230 |
|
4231 | 4231 |
.B cmd |
4232 | 4232 |
should return 0 to allow the TLS handshake to proceed, or 1 to fail. |
4233 |
+ |
|
4234 |
+Note that |
|
4235 |
+.B cmd |
|
4236 |
+is a command line and as such may (if enclosed in quotes) contain |
|
4237 |
+whitespace separated arguments. The first word of |
|
4238 |
+.B cmd |
|
4239 |
+is the shell command to execute and the remaining words are its |
|
4240 |
+arguments. |
|
4241 |
+When |
|
4233 | 4242 |
.B cmd |
4234 |
-is executed as |
|
4243 |
+is executed two arguments are appended, as follows: |
|
4235 | 4244 |
|
4236 | 4245 |
.B cmd certificate_depth X509_NAME_oneline |
4237 | 4246 |
|
4247 |
+These arguments are, respectively, the current certificate depth and |
|
4248 |
+the X509 common name (cn) of the peer. |
|
4249 |
+ |
|
4238 | 4250 |
This feature is useful if the peer you want to trust has a certificate |
4239 | 4251 |
which was signed by a certificate authority who also signed many |
4240 | 4252 |
other certificates, where you don't necessarily want to trust all of them, |
... | ... |
@@ -4248,14 +4260,6 @@ in the OpenVPN distribution. |
4248 | 4248 |
|
4249 | 4249 |
See the "Environmental Variables" section below for |
4250 | 4250 |
additional parameters passed as environmental variables. |
4251 |
- |
|
4252 |
-Note that |
|
4253 |
-.B cmd |
|
4254 |
-can be a shell command with multiple arguments, in which |
|
4255 |
-case all OpenVPN-generated arguments will be appended |
|
4256 |
-to |
|
4257 |
-.B cmd |
|
4258 |
-to build a command line which will be passed to the script. |
|
4259 | 4251 |
.\"********************************************************* |
4260 | 4252 |
.TP |
4261 | 4253 |
.B --tls-export-cert directory |