DIRMNGR-CLIENT(1)
π NAME π
okay so bestie, this is dirmngr-client(1) β the tool to access the Dirmngr services π. It comes from the GNU Privacy Guard 2.6 world, and its whole main-character job is checking whether a certificate has been revoked: either because itβs listed in the corresponding CRL, or because it ran the OCSP protocol and got an answer. If no dirmngr is running, a new instance will be started β but ngl, the original page says this is in general not a good idea because of the huge performance overhead π.
β¨ SYNOPSIS β¨
dirmngr-client [options] [certfile|pattern]
πΈ DESCRIPTION πΈ
dirmngr-client is a simple little tool that contacts a running dirmngr and tests whether a certificate has been revoked β either by being listed in the corresponding CRL or by running the OCSP protocol. If no dirmngr is running, a new instance will be started, but this is in general not a good idea due to the huge performance overhead. π«Ά
The usual way to run this tool is either:
dirmngr-client acert
or
dirmngr-client <acert
where acert is one DER encoded (binary) X.509 certificate to be tested. π§
π RETURN VALUE π
dirmngr-client returns these values:
0β The certificate under question is valid; i.e., there is a valid CRL available and it is not listed there, or the OCSP request returned that that certificate is valid. β1β The certificate has been revoked. π2 (and other values)β There was a problem checking the revocation state of the certificate. A message tostderrhas given more detailed information. Most likely this is due to a missing or expired CRL or due to a network problem. π
π¦ OPTIONS π¦
dirmngr-client may be called with the following options:
--versionβ Print the program version and licensing information. Note that you cannot abbreviate this command.--help,-hβ Print a usage message summarizing the most useful command-line options. Note that you cannot abbreviate this command.--quiet,-qβ Make the output extra brief by suppressing any informational messages.-vβ the short-vflag is listed here on its own; the--verboseentry right below has the description.--verboseβ Outputs additional information while running. You can increase the verbosity by giving several verbose commands todirmngr, such as-vv.--pemβ Assume that the given certificate is in PEM (armored) format.--ocspβ Do the check using the OCSP protocol and ignore any CRLs.--force-default-responderβ When checking using the OCSP protocol, force the use of the default OCSP responder. That is not to use the Responder as given by the certificate.--pingβ Check whether thedirmngrdaemon is up and running.--cache-certβ Put the given certificate into the cache of a runningdirmngr. This is mainly useful for debugging.--validateβ Validate the given certificate usingdirmngr's internal validation code. This is mainly useful for debugging.--load-crlβ This command expects a list of filenames with DER encoded CRL files. With the option--urlURLs are expected in place of filenames and they are loaded directly from the given location. All CRLs will be validated and then loaded intodirmngr's cache.--lookupβ Take the remaining arguments and run a lookup command on each of them. The results are Base-64 encoded outputs (without header lines). This may be used to retrieve certificates from a server. However the output format is not very well suited if more than one certificate is returned.--url,-uβ Modify thelookupandload-crlcommands to take an URL.--local,-lβ Let thelookupcommand only search the local cache.--squid-modeβ Rundirmngr-clientin a mode suitable as a helper program for Squid'sexternal_acl_typeoption.
π SEE ALSO π
The full documentation for this tool is maintained as a Texinfo manual. If GnuPG and the info program are properly installed at your site, the command
info gnupg
should give you access to the complete manual including a menu structure and an index. π
mwah π β this footer energy is brought to you by GnuPG 2.5.5, dated 2025-02-19. and thatβs the page, bestie, weβre done π β¨
π¦ where this page comes from
- opensuse-leap 16.0: dirmngr 2.5.5-160000.6.1 Β· GPL-3.0-or-later
- opensuse-leap 16.0: dirmngr 2.5.5-160000.6.1 Β· GPL-3.0-or-later
- opensuse-leap 16.0: dirmngr 2.5.5-160000.6.1 Β· GPL-3.0-or-later
- opensuse-leap 16.0: dirmngr 2.5.5-160000.6.1 Β· GPL-3.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms