gnupg/scd
Werner Koch c1663c690b
scd:nks: Implement writecert for the Signature card v2.
* scd/iso7816.c (CMD_UPDATE_BINARY): New.
(iso7816_update_binary): New.
* scd/app-nks.c (do_deinit): Factor some code out to...
(flush_fid_cache): new.
(do_writecert): New.
(app_select_nks): Register new handler.
--

This can be used with gpg-card to write the 3 extra certificates of a
Telesec TCOS Signature Card v2.  The card with the qualified signature
is distributed with the keys for encryption and advanced signatures
but without the certificates.  The certificates can be downloaded from
the website after an mail confirmation.  Unpacked the downloaded
zipfile has these certificates:

  auth_zert.crt
  sig_zert.crt
  enc_zert.crt

Using gpg-card issue these commands:

 writecert NKS-NKS3.4531 <sig_zert.crt
 writecert NKS-NKS3.45B1 <enc_zert.crt
 writecert NKS-NKS3.4571 <auth_zert.crt

Don't mix that up, tight now there is no checking that the
certificates match the public key.  I also need to write another patch
to actually implement signing and encryption with these nistp256
certificates.

Signed-off-by: Werner Koch <wk@gnupg.org>
2020-07-02 18:35:34 +02:00
..
ChangeLog-2011 Generate the ChangeLog from commit logs. 2011-12-01 11:09:02 +01:00
Makefile.am scd: Add very basic support for PIV cards. 2019-01-20 11:45:57 +01:00
apdu.c scd: Shorten cardio debug output for all zeroes. 2020-06-29 15:04:08 +02:00
apdu.h scd,pcsc: Remove the restriction of no-scanning in PC/SC. 2019-09-12 08:48:48 +09:00
app-common.h scd: Extend an internal function to also return the algo. 2020-05-05 08:07:11 +02:00
app-dinsig.c scd: Extend an internal function to also return the algo. 2020-05-05 08:07:11 +02:00
app-geldkarte.c scd: First changes to implement a PIN cache. 2020-01-07 18:45:33 +01:00
app-help.c scd: Extend an internal function to also return the algo. 2020-05-05 08:07:11 +02:00
app-nks.c scd:nks: Implement writecert for the Signature card v2. 2020-07-02 18:35:34 +02:00
app-openpgp.c scd: Fix condition for C5 data object for newer Yubikey. 2020-05-29 11:18:50 +09:00
app-p15.c scd: Extend an internal function to also return the algo. 2020-05-05 08:07:11 +02:00
app-piv.c build: Fix recent commit for SOURCE_DATE_EPOCH. 2020-06-08 18:45:55 +02:00
app-sc-hsm.c scd: Extend an internal function to also return the algo. 2020-05-05 08:07:11 +02:00
app.c scd: Fix Yubikey app switching problem 2020-05-26 16:24:12 +02:00
atr.c Spelling fixes in docs and comments. 2017-04-28 10:06:33 +09:00
atr.h Change all http://www.gnu.org in license notices to https:// 2016-11-05 12:02:19 +01:00
ccid-driver.c Spelling cleanup. 2020-02-18 18:07:46 -05:00
ccid-driver.h scd,ccid: Add 08e6:34c2 (GEMPC_EZIO). 2019-10-15 09:40:01 +09:00
command.c scd: Change how the removed card flag is set. 2020-06-30 14:41:49 +02:00
iso7816.c scd:nks: Implement writecert for the Signature card v2. 2020-07-02 18:35:34 +02:00
iso7816.h scd:nks: Implement writecert for the Signature card v2. 2020-07-02 18:35:34 +02:00
scdaemon-w32info.rc w32: Add icons and version information. 2013-05-07 21:35:48 +02:00
scdaemon.c gpgconf: Further simplify the gpgconf option processing. 2020-03-14 19:12:41 +01:00
scdaemon.h scd: New command DEVINFO. 2020-04-02 15:39:26 +09:00