1GRID-CERT-INFO(1) Grid Community Toolkit Manual GRID-CERT-INFO(1)
2
3
4
6 grid-cert-info - Display information about a certificate
7
9 grid-cert-info -help | -usage | -version | -versions
10
11 grid-cert-info OPTIONS
12
14 The grid-cert-info program displays information contained within a
15 certificate file. By default it shows a text representation of the
16 entire certificate. Specific facts about the certificate can be shown
17 instead by using command-line options. If any of those options are
18 used, then the default display is suppressed. This can be added to the
19 output by using the -all command-line option.
20
21 If multiple display options are included on the command-line, the facts
22 related to those will be displayed on separate lines in the order that
23 they occur. If an option is specified multiple time, that fact will be
24 displayed multiple times.
25
27 The full set of command-line options to grid-cert-info are:
28
29 -help, -usage
30 Display the command-line options to grid-cert-info and exit.
31
32 -version, -versions
33 Display the version number of the grid-cert-info command. The
34 second form includes more details.
35
36 -file CERTIFICATE-FILE
37 Display information about the first certificate contained in the
38 file named by CERTIFICATE-FILE instead of the default user
39 certificate.
40
41 -rfc2253
42 Display X.509 distinguished names using the string representation
43 defined in RFC 2253 instead of the default OpenSSL oneline format.
44
45 -all
46 Display the text representation of the entire certificate in
47 addition to any other facts requested by command-line options. This
48 is the default if no fact-specific command-line options are used.
49
50 -subject, -s
51 Display the subject name of the X.509 certificate.
52
53 -issuer, -i
54 Display the issuer name of the X.509 certificate.
55
56 -issuerhash, -ih
57 Display the default hash of the issuer name of the X.509
58 certificate. This can be used to locate which CA certificate in the
59 trusted certificate directory issued the certificate being
60 inspected.
61
62 -startdate, -sd
63 Display a string representation of the date and time when the
64 certificate is valid from. This is displayed in the format used by
65 the OpenSSL x509 command.
66
67 -enddate, -ed
68 Display a string representation of the date and time when the
69 certificate is valid until. This is displayed in the format used by
70 the OpenSSL x509 command.
71
73 Display the validity times for the default certificate
74
75 % grid-cert-info -sd -ed
76 Aug 31 12:33:47 2009 GMT
77 Aug 31 12:33:47 2010 GMT
78
79 Display the same information about a different certificate specified on
80 the command-line
81
82 % grid-cert-info -sd -ed -f /etc/grid-security/hostcert.pem
83 Jan 21 12:24:48 2003 GMT
84 Jul 15 11:30:57 2020 GMT
85
86 Display the subject of a certificate in both the default and the RFC
87 2253 forms.
88
89 % grid-cert-info -subject
90 /DC=org/DC=example/DC=grid/CN=Joe User
91 % grid-cert-info -subject -rfc2253
92 CN=Joe User,DC=grid,DC=example,DC=org
93
95 The following environment variables affect the execution of
96 grid-cert-info:
97
98 X509_USER_CERT
99 Path to the default certificate file to inspect.
100
102 Copyright © 1999-2014 University of Chicago
103
104
105
106Grid Community Toolkit 6 03/31/2018 GRID-CERT-INFO(1)