Telesec Others Driver

You are here: manpages

  1. Telesec Others Drivers
  2. Telesec Others Drivers Test
  3. Telesec Others Drivers Education
  4. Telesec Others Drivers Ed

On Windows systems it is possible to install GnuPG as a portable application. In this case only this command line option is considered, all other ways to set a home directory are ignored. To install GnuPG as a portable application under Windows, create an empty file named oqgpgconf.ctlcq in the same directory as the tool oqgpgconf.execq. This allows falling back to one of the other drivers even if the internal CCID driver can handle the reader. Note, that CCID support is only available if libusb was available at build time.reader-port numberorstring This option may be used to specify the port of the card terminal. A value of 0 refers to the first serial device; add 32768.

Section: GNU Privacy Guard 2.1 (1)
Telesec others drivers educationUpdated: 2017-05-11
IndexReturn to Main Contents

NAME

scdaemon- Smartcard daemon for the GnuPG system

SYNOPSIS

scdaemon[--homedirdir][--optionsfile][options]--server
scdaemon[--homedir

Telesec Others Drivers

dir][--optionsfile][options]--daemon[command_line]

DESCRIPTION

The scdaemon is a daemon to manage smartcards. It is usuallyinvoked by gpg-agent and in general not used directly.

COMMANDS

Commands are not distinguished from options except for the fact thatonly one command is allowed.

--version
Print the program version and licensing information. Note that you cannotabbreviate this command.
--help, -h
Print a usage message summarizing the most useful command-line options.Note that you cannot abbreviate this command.
--dump-options
Print a list of all available options and commands. Note that you cannotabbreviate this command.
--server
Run in server mode and wait for commands on the stdin. Thedefault mode is to create a socket and listen for commands there.
--multi-server
Run in server mode and wait for commands on the stdin as well ason an additional Unix Domain socket. The server command GETINFOmay be used to get the name of that extra socket.
--daemon
Run the program in the background. This option is required to preventit from being accidentally running in the background.

OPTIONS

--options file
Reads configuration from file instead of from the defaultper-user configuration file. The default configuration file is namedoqscdaemon.confcq and expected in the oq.gnupgcq directory directlybelow the home directory of the user.
--homedir dir
Set the name of the home directory to dir. If this option is notused, the home directory defaults to oq~/.gnupgcq. It is onlyrecognized when given on the command line. It also overrides any homedirectory stated through the environment variable oqGNUPGHOMEcq or(on Windows systems) by means of the Registry entryHKCUSoftwareGNUGnuPG:HomeDir.

On Windows systems it is possible to install GnuPG as a portableapplication. In this case only this command line option isconsidered, all other ways to set a home directory are ignored.

To install GnuPG as a portable application under Windows, create anempty file named oqgpgconf.ctlcq in the same directory as the tooloqgpgconf.execq. The root of the installation is then thatdirectory; or, if oqgpgconf.execq has been installed directly belowa directory named oqbincq, its parent directory. You also need tomake sure that the following directories exist and are writable:oqROOT/homecq for the GnuPG home and oqROOT/var/lib/cache/gnupgcqfor internal cache files.

-v
--verbose
Outputs additional information while running.You can increase the verbosity by giving severalverbose commands to gpgsm, such as aq-vvaq.
--debug-level level
Select the debug level for investigating problems. level may bea numeric value or a keyword:
none
No debugging at all. A value of less than 1 may be used instead ofthe keyword.
basic
Some basic debug messages. A value between 1 and 2 may be usedinstead of the keyword.
advanced
More verbose debug messages. A value between 3 and 5 may be usedinstead of the keyword.
expert
Even more detailed messages. A value between 6 and 8 may be usedinstead of the keyword.
guru
All of the debug messages you can get. A value greater than 8 may beused instead of the keyword. The creation of hash tracing files isonly enabled if the keyword is used.

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

All debugging options are subject to change and thus should not be usedby any application program. As the name says, they are only used ashelpers to debug problems.
--debug flags
This option is only useful for debugging and the behavior may change atany time without notice. FLAGS are bit encoded and may be given inusual C-Syntax. The currently defined bits are:
0 (1)
command I/O
1 (2)
values of big number integers
2 (4)
low level crypto operations
5 (32)
memory allocation
6 (64)
caching
7 (128)
show memory statistics
9 (512)
write hashed data to files named dbgmd-000*
10 (1024)
trace Assuan protocol.See also option --debug-assuan-log-cats.
11 (2048)
trace APDU I/O to the card. This may reveal sensitive data.
12 (4096)
trace some card reader related function calls.
--debug-all
Same as --debug=0xffffffff
--debug-wait n
When running in server mode, wait n seconds before entering theactual processing loop and print the pid. This gives time to attach adebugger.
--debug-ccid-driver
Enable debug output from the included CCID driver for smartcards.Using this option twice will also enable some tracing of the T=1protocol. Note that this option may reveal sensitive data.
--debug-disable-ticker
This option disables all ticker functions like checking for cardinsertions.
--debug-allow-core-dump
For security reasons we won't create a core dump when the processaborts. For debugging purposes it is sometimes better to allow coredump. This option enables it and also changes the working directory tooq/tmpcq when running in --server mode.
--debug-log-tid
This option appends a thread ID to the PID in the log output.
Telesec Others Driver
--debug-assuan-log-cats cats
Changes the active Libassuan logging categories to cats. Thevalue for cats is an unsigned integer given in usual C-Syntax.A value of 0 switches to a default category. If this option is notused the categories are taken from the environment variableASSUAN_DEBUG. Note that this option has only an effect if theAssuan debug flag has also been with the option --debug. Fora list of categories see the Libassuan manual.
--no-detach
Don't detach the process from the console. This is mainly useful fordebugging.
--log-file file
Append all logging output to file. This is very helpful inseeing what the agent actually does. Use oqsocket://cq to log tosocket.
--pcsc-driver library
Use library to access the smartcard reader. The current defaultis oqlibpcsclite.socq. Instead of using this option you might alsowant to install a symbolic link to the default file name(e.g. from oqlibpcsclite.so.1cq).
--ctapi-driver library
Use library to access the smartcard reader. The current defaultis oqlibtowitoko.socq. Note that the use of this interface isdeprecated; it may be removed in future releases.
--disable-ccid
Disable the integrated support for CCID compliant readers. Thisallows falling back to one of the other drivers even if the internalCCID driver can handle the reader. Note, that CCID support is onlyavailable if libusb was available at build time.
--reader-port number_or_string
This option may be used to specify the port of the card terminal. Avalue of 0 refers to the first serial device; add 32768 to access USBdevices. The default is 32768 (first USB device). PC/SC or CCIDreaders might need a string here; run the program in verbose mode to geta list of available readers. The default is then the first readerfound.

To get a list of available CCID readers you may use this command:

--card-timeout n
If n is not 0 and no client is actively using the card, the cardwill be powered down after n

Telesec Others Drivers Test

seconds. Powering down the cardavoids a potential risk of damaging a card when used with certaincheap readers. This also allows applications that are not aware ofScdaemon to access the card. The disadvantage of using a card timeoutis that accessing the card takes longer and that the user needs toenter the PIN again after the next power up.

Note that with the current version of Scdaemon the card is powereddown immediately at the next timer tick for any value of n otherthan 0.

--enable-pinpad-varlen
Please specify this option when the card reader supports variablelength input for pinpad (default is no). For known readers (listed inccid-driver.c and apdu.c), this option is not needed. Note that ifyour card reader doesn't supports variable length input but you wantto use it, you need to specify your pinpad request on your card.
--disable-pinpad
Even if a card reader features a pinpad, do not try to use it.
--deny-admin
This option disables the use of admin class commands for cardapplications where this is supported. Currently we support it for theOpenPGP card. This option is useful to inhibit accidental access toadmin class command which could ultimately lock the card through wrongPIN numbers. Note that GnuPG versions older than 2.0.11 featured an--allow-admin option which was required to use such admincommands. This option has no more effect today because the default isnow to allow admin commands.
--disable-application name
This option disables the use of the card application namedname. This is mainly useful for debugging or if a applicationwith lower priority should be used by default.

All the long options may also be given in the configuration file afterstripping off the two leading dashes.

CARD APPLICATIONS

scdaemon supports the card applications as described below.

The OpenPGP card application ``openpgp'

This application is currently only used by gpg but may infuture also be useful with gpgsm. Version 1 and version 2 ofthe card is supported.

Telesec Others Drivers Education

The specifications for these cards are available at
(http://g10code.com/docs/openpgp-card-1.0.pdf) and
(http://g10code.com/docs/openpgp-card-2.0.pdf).

The Telesec NetKey card ``nks'

Telesec Others Drivers Ed

This is the main application of the Telesec cards as available inGermany. It is a superset of the German DINSIG card. The card isused by gpgsm.

The DINSIG card application ``dinsig'

This is an application as described in the German draft standardDIN V 66291-1. It is intended to be used by cards supportingthe German signature law and its bylaws (SigG and SigV).

The PKCS#15 card application ``p15'

This is common framework for smart card applications. It is used bygpgsm.

The Geldkarte card application ``geldkarte'

This is a simple application to display information of a GermanGeldkarte. The Geldkarte is a small amount debit card application whichcomes with almost all German banking cards.

The SmartCard-HSM card application ``sc-hsm'

This application adds read-only support for keys and certificatesstored on a (http://www.smartcard-hsm.com, SmartCard-HSM).

To generate keys and store certifiates you may use(https://github.com/OpenSC/OpenSC/wiki/SmartCardHSM, OpenSC) orthe tools from (http://www.openscdp.org, OpenSCDP).

The SmartCard-HSM cards requires a card reader that supports ExtendedLength APDUs.

The Undefined card application ``undefined'

This is a stub application to allow the use of the APDU command evenif no supported application is found on the card. This application isnot used automatically but must be explicitly requested using theSERIALNO command.

EXAMPLES

FILES

There are a few configuration files to control certain aspects ofscdaemons's operation. Unless noted, they are expected in thecurrent home directory (see: [option --homedir]).

scdaemon.conf
This is the standard configuration file read by scdaemon onstartup. It may contain any valid long option; the leading two dashesmay not be entered and the option may not be abbreviated. This defaultname may be changed on the command line (see: [option --options]).
scd-event
If this file is present and executable, it will be called on every cardreader's status change. An example of this script is provided with thedistribution
reader_n.status
This file is created by scdaemon to let other applications nowabout reader status changes. Its use is now deprecated in favor ofoqscd-eventcq.

SEE ALSO

gpg-agent(1),gpgsm(1),gpg2(1)

The full documentation for this tool is maintained as a Texinfo manual.If GnuPG and the info program are properly installed at your site, thecommand

should give you access to the complete manual including a menu structureand an index.

Index

NAME
SYNOPSIS
DESCRIPTION
COMMANDS
OPTIONS
CARD APPLICATIONS
The OpenPGP card application ``openpgp'
The Telesec NetKey card ``nks'
The DINSIG card application ``dinsig'
The PKCS#15 card application ``p15'
The Geldkarte card application ``geldkarte'
The SmartCard-HSM card application ``sc-hsm'
The Undefined card application ``undefined'
EXAMPLES
FILES
SEE ALSO