Blob


1 .\" Copyright (c) 2021 Omar Polo <op@omarpolo.com>
2 .\"
3 .\" Permission to use, copy, modify, and distribute this software for any
4 .\" purpose with or without fee is hereby granted, provided that the above
5 .\" copyright notice and this permission notice appear in all copies.
6 .\"
7 .\" THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
8 .\" WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
9 .\" MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
10 .\" ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
11 .\" WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
12 .\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
13 .\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
14 .Dd $Mdocdate: January 23 2021$
15 .Dt GG 1
16 .Os
17 .Sh NAME
18 .Nm gg
19 .Nd simple Gemini client
20 .Sh SYNOPSIS
21 .Nm
22 .Bk -words
23 .Op Fl 23bchNVv
24 .Op Fl C Pa cert.pem Fl K Pa key.pem
25 .Op Fl H Ar hostname
26 .Op Fl T Ar timeout
27 .Ar IRI
28 .Ek
29 .Sh DESCRIPTION
30 .Nm
31 is a simple Gemini client.
32 It fetches the Gemini page given and prints the server response to
33 standard output.
34 The option are as follows:
35 .Bl -tag -width 6m
36 .It Fl 2
37 Use only TLSv1.2.
38 .It Fl 3
39 Use only TLSv1.3.
40 .It Fl b
41 Print only the body of the response.
42 .It Fl C Pa cert.pem
43 Load the client certificate, must be in PEM format.
44 .It Fl c
45 Print only the response code.
46 .It Fl H Ar hostname
47 Use the given
48 .Ar hostname
49 for SNI, instead of the one extracted from the IRI.
50 The IRI hostname will still be used for the DNS resolution.
51 .It Fl h
52 Print only the response header.
53 .It Fl K Pa key.pem
54 Load the client certificate key, must be in PEM format.
55 .It Fl N
56 Don't check whether the peer certificate name matches the requested
57 hostname.
58 .It Fl T Ar timeout
59 Kill
60 .Nm
61 after
62 .Ar timeout
63 seconds.
64 .It Fl V
65 Only validate the IRI, don't do the Gemini transaction.
66 .It Fl v
67 Print also the request.
68 .El
69 .Pp
70 Note that
71 .Nm
72 won't try to do TOFU (Trust On First Use) or any X.509 certificate
73 validation: it will happily accept any certificate it is given.
74 .Pp
75 By default
76 .Nm
77 will accept both TLSv1.2 and TLSv1.3 and will always do SNI.