Next: , Previous: Dirmngr Commands, Up: Top

4 Option Summary

--options file
Reads configuration from file instead of from the default per-user configuration file. The default configuration file is named gpgsm.conf and expected in the home directory.
--homedir dir
Set the name of the home directory to dir. This option is only effective when used on the command line. The default depends on the running mode:
With --daemon given on the commandline
the directory named /etc/dirmngr for configuration files, /var/lib/dirmngr/ for extra data and /var/cache/dirmngr for cached CRLs.
Without --daemon given on the commandline
the directory named .gnupg directly below the home directory of the user unless the environment variable GNUPGHOME has been set in which case its value will be used. All kind of data is stored below this directory.

Outputs additional information while running. You can increase the verbosity by giving several verbose commands to dirmngr, such as -vv.
--log-file file
Append all logging output to file. This is very helpful in seeing what the agent actually does.
--debug-level level
Select the debug level for investigating problems. level may be one of:
no debugging at all.
some basic debug messages
more verbose debug messages
even more detailed messages
all of the debug messages you can get

How these messages are mapped to the actual debugging flags is not specified and may change with newer releases of this program. They are however carefully selected to best aid in debugging.

--debug flags
This option is only useful for debugging and the behaviour may change at any time without notice. FLAGS are bit encoded and may be given in usual C-Syntax.
Same as --debug=0xffffffff
--debug-wait n
When running in server mode, wait n seconds before entering the actual processing loop and print the pid. This gives time to attach a debugger.
Format the info output in daemon mode for use with the standard Bourne shell respective the C-shell . The default ist to guess it based on the environment variable SHELL which is in almost all cases sufficient.
Enabling this option forces loading of expired CRLs; this is only useful for debugging.
Entirely disables the use of LDAP.
Entirely disables the use of HTTP.
When looking for the location of a CRL, the to be tested certificate usually contains so called CRL Distribution Point (DP) entries which are URLs describing the way to access the CRL. The first found DP entry is used. With this option all entries using the HTTP scheme are ignored when looking for a suitable DP.
This is similar to --ignore-http-dp but ignores entries using the LDAP scheme. Both options may be combined resulting in ignoring DPs entirely.
Ignore all OCSP URLs contained in the certificate. The effect is to force the use of the default responder.
If the environment variable http_proxy has been set, use its value to access HTTP servers.
--http-proxy host[:port]
Use host and port to access HTTP servers. The use of this options overrides the environment variable http_proxy regardless whether --honor-http-proxy has been set.
--ldap-proxy host[:port]
Use host and port to connect to LDAP servers. If port is ommitted, port 389 (standard LDAP port) is used. This overrides any specified host and port part in a LDAP URL and will also be used if host and port have been ommitted from the URL.
Never use anything else but the LDAP "proxy" as configured with --ldap-proxy. Usually dirmngr tries to use other configured LDAP server if the connection using the "proxy" failed.
--ldapserverlist-file file
Read the list of LDAP servers to consult for CRLs and certificates from file instead of the default per-user ldap server list file. The default value for file is dirmngr_ldapservers.conf or ldapservers.conf when running in --daemon mode.

This server list file contains one LDAP server per line in the format


Lines starting with a ‘#’ are comments.

Note that as usual all strings entered are expected to be UTF-8 encoded. Obviously this will lead to problems if the password has orginally been encoded as Latin-1. There is no other solution here than to put such a password in the binary encoding into the file (i.e. non-ascii characters won't show up readable).1

--ldaptimeout secs
Specify the number of seconds to wait for an LDAP query before timing out. The default is currently 100 seconds. 0 will never timeout.
This options makes dirmngr add any servers it discovers when validating certificates against CRLs to the internal list of servers to consult for certificates and CRLs.

This options is useful when trying to validate a certificate that has a CRL distribution point that points to a server that is not already listed in the ldapserverlist. Dirmngr will always go to this server and try to download the CRL, but chances are high that the certificate used to sign the CRL is located on the same server. So if dirmngr doesn't add that new server to list, it will often not be able to verify the signature of the CRL unless the --add-servers option is used.

Note: The current version of dirmngr has this option disabled by default.

This option enables OCSP support if requested by the client.

OCSP requests are rejected by default because they may violate the privacy of the user; for example it is possible to track the time when a user is reading a mail.

--ocsp-responder url
Use url as the default OCSP Responder if the certificate does not contain information about an assigned responder. Note, that --ocsp-signer must also be set to a valid certificate.
--ocsp-signer fpr|file
Use the certificate with the fingerprint fpr to check the responses of the default OCSP Responder. Alternativly a filename can be given in which case the respinse is expected to be signed by one of the certificates described in that file. Any argument which contains a slash, dot or tilde is considered a filename. Usual filename expansion takes place: A tilde at the start followed by a slash is replaced by the content of HOME, no slash at start describes a relative filename which will be searched at the home directory. To make sure that the file is searched in the home directory, either prepend the name with "./" or use a name which contains a dot.

If a response has been signed by a certificate described by these fingerprints no further check upon the validity of this certificate is done.

The format of the FILE is a list of SHA-1 fingerprint, one per line with optional colons between the bytes. Empty lines and lines prefix with a hash mark are ignored.

--ocsp-max-clock-skew n
The number of seconds a skew between the OCSP responder and them local clock is accepted. Default is 600 (20 minutes).
--ocsp-max-period n
Seconds a response is at maximum considered valid after the time given in the thisUpdate field. Default is 7776000 (90 days).
--ocsp-current-period n
The number of seconds an OCSP response is considered valid after the time given in the NEXT_UPDATE datum. Default is 10800 (3 hours).
--max-replies n
Do not return more that n items in one query. The default is 10.


[1] The gpgconf tool might be helpful for frontends as it allows to edit this configuration file using percent escaped strings.