GRID-CERT-INFO(1)
π grid-cert-info β the manual, but make it slay π
okay so bestie, welcome to GRID-CERT-INFO(1), part of the Grid Community Toolkit manual, and literally the whole point of this little icon is that it tells you what's inside a certificate. no cap. π
β¨ NAME β¨
grid-cert-info β Display information about a certificate
πΈ SYNOPSIS πΈ
grid-cert-info -help | -usage | -version | -versions
grid-cert-info OPTIONS
π¦ DESCRIPTION π¦
So grid-cert-info is the program that displays information contained within a certificate file. By default it shows a text representation of the entire certificate β like, the whole thing, all of it, the full serve. π«Ά
But if you want specific facts about the certificate instead, you can ask for them with command-line options. And here's the tea: if any of those options are used, then the default display is suppressed. gone. not showing. π You can bring it back by adding the -all command-line option, which is giving "wait no come back" energy.
If multiple display options are included on the command-line, the facts related to those will be displayed on separate lines, in the order that they occur. And if an option is specified multiple times, that fact will be displayed multiple times β yes really, it just keeps going, main character energy, it will repeat itself as many times as you asked. π
π OPTIONS π
The full set of command-line options to grid-cert-info are, and I'm listing every single one because we don't skip:
-help,-usageβ Display the command-line options togrid-cert-infoand exit. That's it, that's the whole vibe, it dips right after.-version,-versionsβ Display the version number of thegrid-cert-infocommand. The second form includes more details β so-versionsis the one that over-shares, and we love that for it. β-file CERTIFICATE-FILEβ Display information about the first certificate contained in the file named by CERTIFICATE-FILE instead of the default user certificate. Like, "not that one, this one bestie." π₯-rfc2253β Display X.509 distinguished names using the string representation defined in RFC 2253 instead of the default OpenSSL oneline format. Glow-up for your DNs, fr fr.-allβ Display the text representation of the entire certificate in addition to any other facts requested by command-line options. This is the default if no fact-specific command-line options are used. It's giving "have your cake and eat it too." π-subject,-sβ Display the subject name of the X.509 certificate. Who even are you, certificate edition.-issuer,-iβ Display the issuer name of the X.509 certificate. Who made you, certificate edition.-issuerhash,-ihβ Display the default hash of the issuer name of the X.509 certificate. This can be used to locate which CA certificate in the trusted certificate directory issued the certificate being inspected. Detective mode, activated. π΅οΈ (okay no, that's not an emoji in the list, moving on β π§)-startdate,-sdβ Display a string representation of the date and time when the certificate is valid from. This is displayed in the format used by the OpenSSLx509command. Baby's first valid moment. π-enddate,-edβ Display a string representation of the date and time when the certificate is valid until. This is displayed in the format used by the OpenSSLx509command. Expiration date, the villain of every story. π
π EXAMPLES π
Display the validity times for the default certificate
% grid-cert-info -sd -ed
Aug 31 12:33:47 2009 GMT
Aug 31 12:33:47 2010 GMT
Display the same information about a different certificate specified on the command-line
% grid-cert-info -sd -ed -f /etc/grid-security/hostcert.pem
Jan 21 12:24:48 2003 GMT
Jul 15 11:30:57 2020 GMT
Display the subject of a certificate in both the default and the RFC 2253 forms.
% grid-cert-info -subject
/DC=org/DC=example/DC=grid/CN=Joe User
% grid-cert-info -subject -rfc2253
CN=Joe User,DC=grid,DC=example,DC=org
not me noticing the example uses-fwhile the option list says-fileπ β both are in the original, I'm just the messenger, and I keep the facts exactly as they came. π
π ENVIRONMENT π
The following environment variables affect the execution of grid-cert-info:
X509_USER_CERTβ Path to the default certificate file to inspect. Set it and that's your new default bestie certificate. π
π AUTHOR π
Copyright Β© 1999-2014 University of Chicago
and that's the whole page, we ate, no crumbs left π β¨ β brought to you by the Grid Community Toolkit 6, dated 03/31/2018, because even icons have a timestamp. stay hydrated, read your certs, mwah π«Άπ
π¦ where this page comes from
- debian bookworm: globus-gsi-cert-utils-progs 10.10-2 Β· Apache-2.0
- debian trixie: globus-gsi-cert-utils-progs 10.11-2 Β· Apache-2.0
- epel 10: globus-gsi-cert-utils-progs 10.11-1.el10_0 Β· Apache-2.0
- epel 9: globus-gsi-cert-utils-progs 10.11-1.el9 Β· Apache-2.0
- fedora 43: globus-gsi-cert-utils-progs 10.11-4.fc43 Β· Apache-2.0
- fedora 44: globus-gsi-cert-utils-progs 10.11-5.fc44 Β· Apache-2.0
- ubuntu jammy: globus-gsi-cert-utils-progs 10.8-1build1 Β· Apache-2.0
- ubuntu noble: globus-gsi-cert-utils-progs 10.11-2 Β· Apache-2.0
- ubuntu questing: globus-gsi-cert-utils-progs 10.11-2
- ubuntu resolute: globus-gsi-cert-utils-progs 10.11-2build1 Β· Apache-2.0
- ubuntu stonking: globus-gsi-cert-utils-progs 10.11-3build1 Β· Apache-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms