1 f48e3b85 2021-05-24 op .\" Copyright (c) 2021 Omar Polo <op@omarpolo.com>
3 f48e3b85 2021-05-24 op .\" Permission to use, copy, modify, and distribute this software for any
4 f48e3b85 2021-05-24 op .\" purpose with or without fee is hereby granted, provided that the above
5 f48e3b85 2021-05-24 op .\" copyright notice and this permission notice appear in all copies.
7 f48e3b85 2021-05-24 op .\" THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
8 f48e3b85 2021-05-24 op .\" WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
9 f48e3b85 2021-05-24 op .\" MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
10 f48e3b85 2021-05-24 op .\" ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
11 f48e3b85 2021-05-24 op .\" WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
12 f48e3b85 2021-05-24 op .\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
13 f48e3b85 2021-05-24 op .\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
14 f48e3b85 2021-05-24 op .Dd $Mdocdate: January 23 2021$
19 f48e3b85 2021-05-24 op .Nd simple Gemini client
23 f48e3b85 2021-05-24 op .Op Fl 23bchNVv
24 f48e3b85 2021-05-24 op .Op Fl C Pa cert.pem Fl K Pa key.pem
25 f48e3b85 2021-05-24 op .Op Fl H Ar hostname
28 f48e3b85 2021-05-24 op .Sh DESCRIPTION
30 f48e3b85 2021-05-24 op is a simple Gemini client.
31 f48e3b85 2021-05-24 op It fetches the Gemini page given and prints the server response to
32 f48e3b85 2021-05-24 op standard output.
33 f48e3b85 2021-05-24 op The option are as follows:
34 f48e3b85 2021-05-24 op .Bl -tag -width 6m
36 f48e3b85 2021-05-24 op Use only TLSv1.2.
38 f48e3b85 2021-05-24 op Use only TLSv1.3.
40 f48e3b85 2021-05-24 op Print only the body of the response.
41 f48e3b85 2021-05-24 op .It Fl C Pa cert.pem
42 f48e3b85 2021-05-24 op Load the client certificate, must be in PEM format.
44 f48e3b85 2021-05-24 op Print only the response code.
45 f48e3b85 2021-05-24 op .It Fl H Ar hostname
48 f48e3b85 2021-05-24 op for SNI, instead of the one extracted from the IRI.
49 f48e3b85 2021-05-24 op The IRI hostname will still be used for the DNS resolution.
51 f48e3b85 2021-05-24 op Print only the response header.
52 f48e3b85 2021-05-24 op .It Fl K Pa key.pem
53 f48e3b85 2021-05-24 op Load the client certificate key, must be in PEM format.
55 f48e3b85 2021-05-24 op Don't check whether the peer certificate name matches the requested
58 f48e3b85 2021-05-24 op Only validate the IRI, don't do the Gemini transaction.
60 f48e3b85 2021-05-24 op Print also the request.
65 f48e3b85 2021-05-24 op won't try to do TOFU (Trust On First Use) or any X.509 certificate
66 f48e3b85 2021-05-24 op validation: it will happily accept any certificate it is given.
70 f48e3b85 2021-05-24 op will accept both TLSv1.2 and TLSv1.3 and will always do SNI.