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 .Ar IRI
27 .Ek
28 .Sh DESCRIPTION
29 .Nm
30 is a simple Gemini client.
31 It fetches the Gemini page given and prints the server response to
32 standard output.
33 The option are as follows:
34 .Bl -tag -width 6m
35 .It Fl 2
36 Use only TLSv1.2.
37 .It Fl 3
38 Use only TLSv1.3.
39 .It Fl b
40 Print only the body of the response.
41 .It Fl C Pa cert.pem
42 Load the client certificate, must be in PEM format.
43 .It Fl c
44 Print only the response code.
45 .It Fl H Ar hostname
46 Use the given
47 .Ar hostname
48 for SNI, instead of the one extracted from the IRI.
49 The IRI hostname will still be used for the DNS resolution.
50 .It Fl h
51 Print only the response header.
52 .It Fl K Pa key.pem
53 Load the client certificate key, must be in PEM format.
54 .It Fl N
55 Don't check whether the peer certificate name matches the requested
56 hostname.
57 .It Fl V
58 Only validate the IRI, don't do the Gemini transaction.
59 .It Fl v
60 Print also the request.
61 .El
62 .Pp
63 Note that
64 .Nm
65 won't try to do TOFU (Trust On First Use) or any X.509 certificate
66 validation: it will happily accept any certificate it is given.
67 .Pp
68 By default
69 .Nm
70 will accept both TLSv1.2 and TLSv1.3 and will always do SNI.