opensc/src/pkcs15init
viktor.tarasov 70ee7c1438 pkcs15init: in sc_pkcs15init_add_object() if DF update fails, remove object from the list before return
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@4076 c6295689-39f2-0310-b995-f0e70906c6a9
2010-03-01 15:29:39 +00:00
..
Makefile.am [WINDOWS] Remove tool specific file description support resource file 2010-02-02 14:50:42 +00:00
Makefile.mak update windows makefiles: only create one dll. 2010-02-01 15:22:28 +00:00
README - added comment on pkcs12 files 2002-12-04 14:28:08 +00:00
asepcos.profile Create new type "privdata" in all profiles with different 2008-12-28 16:07:51 +00:00
cardos.profile pkcs15init cardos: fix update keys 2010-01-31 20:26:45 +00:00
cyberflex.profile cyberflex: no more 'protect-certificates' profile option 2010-02-20 23:20:38 +00:00
entersafe.profile pkcs15init profile: 'private key' as BSO is differenciated from the one as EF 2010-01-21 10:07:40 +00:00
flex.profile pkcs15init: 'protect-certificates' profile option not used 2010-02-20 23:14:45 +00:00
gpk.profile change base id so it does not overlap with the next one. 2009-03-05 15:15:24 +00:00
incrypto34.profile pkcs15init profile: 'private key' as BSO is differenciated from the one as EF 2010-01-21 10:07:40 +00:00
jcop.profile Create new type "privdata" in all profiles with different 2008-12-28 16:07:51 +00:00
keycache.c Merge [3758:3783/trunk] 2009-10-22 09:18:16 +00:00
keycache.h - Cleanup, typo fix 2005-02-02 10:21:10 +00:00
miocos.profile - Small update to MioCOS pkcs15init driver 2002-04-19 18:01:49 +00:00
muscle.profile pkcs15init profile: 'private key' as BSO is differenciated from the one as EF 2010-01-21 10:07:40 +00:00
myeid.profile pkcs15init: instead of static keycache use the pincache as a content of the pkcs15 AUTH object 2010-02-21 18:24:41 +00:00
oberthur.profile pkcs15init: remove profile option 'keep-public-key' that was used only by oberthur 2010-02-02 16:45:47 +00:00
pkcs15-asepcos.c pkcs15init: 'defined bu not used' 2010-02-21 20:33:51 +00:00
pkcs15-cardos.c pkcs15init: 'defined bu not used' 2010-02-21 20:33:51 +00:00
pkcs15-cflex.c pkcs15init: instead of static keycache use the pincache as a content of the pkcs15 AUTH object 2010-02-21 18:24:41 +00:00
pkcs15-entersafe.c pkcs15init: in the prototypes of the internal procedures the 'struct sc_card' argument replaced with the 'struct sc_pkcs15_card' one 2010-02-21 16:21:57 +00:00
pkcs15-gpk.c pkcs15init: 'defined bu not used' 2010-02-21 20:33:51 +00:00
pkcs15-incrypto34.c pkcs15init: instead of static keycache use the pincache as a content of the pkcs15 AUTH object 2010-02-21 18:24:41 +00:00
pkcs15-init.h pkcs15init: in the prototypes of the internal procedures the 'struct sc_card' argument replaced with the 'struct sc_pkcs15_card' one 2010-02-21 16:21:57 +00:00
pkcs15-jcop.c pkcs15init: in the prototypes of the internal procedures the 'struct sc_card' argument replaced with the 'struct sc_pkcs15_card' one 2010-02-21 16:21:57 +00:00
pkcs15-lib.c pkcs15init: in sc_pkcs15init_add_object() if DF update fails, remove object from the list before return 2010-03-01 15:29:39 +00:00
pkcs15-miocos.c pkcs15init: in the prototypes of the internal procedures the 'struct sc_card' argument replaced with the 'struct sc_pkcs15_card' one 2010-02-21 16:21:57 +00:00
pkcs15-muscle.c pkcs15init: in the prototypes of the internal procedures the 'struct sc_card' argument replaced with the 'struct sc_pkcs15_card' one 2010-02-21 16:21:57 +00:00
pkcs15-myeid.c pkcs15init: in the prototypes of the internal procedures the 'struct sc_card' argument replaced with the 'struct sc_pkcs15_card' one 2010-02-21 16:21:57 +00:00
pkcs15-oberthur.c pkcs15init oberthur: no extractable key; for generated key set reference from the key's path 2010-03-01 13:36:02 +00:00
pkcs15-rtecp.c add check params; fix: pkcs15-rutoken.c:208: warning: unused parameter 'puk' 2010-02-24 08:22:24 +00:00
pkcs15-rutoken.c fix mistake in r4065 2010-02-24 08:57:37 +00:00
pkcs15-setcos.c pkcs15init: instead of static keycache use the pincache as a content of the pkcs15 AUTH object 2010-02-21 18:24:41 +00:00
pkcs15-starcos.c pkcs15init: instead of static keycache use the pincache as a content of the pkcs15 AUTH object 2010-02-21 18:24:41 +00:00
pkcs15-westcos.c pkcs15init: in the prototypes of the internal procedures the 'struct sc_card' argument replaced with the 'struct sc_pkcs15_card' one 2010-02-21 16:21:57 +00:00
pkcs15.profile pkcs15init profile: 'private key' as BSO is differenciated from the one as EF 2010-01-21 10:07:40 +00:00
profile.c profile: 'cbs' member of 'struct sc_profile' is not used 2010-03-01 14:01:25 +00:00
profile.h profile: 'cbs' member of 'struct sc_profile' is not used 2010-03-01 14:01:25 +00:00
rutoken.profile rutoken (S and ECP): both PINs are globals (and addition to changeset 3960, 3946) 2010-02-03 12:10:41 +00:00
rutoken_ecp.profile rutoken (ECP): add 4 DF (reserved for internal use) 2010-02-04 12:18:19 +00:00
setcos.profile sertcos: both PINs are globals 2010-01-29 17:41:05 +00:00
starcos.profile pkcs15init profile: 'private key' as BSO is differenciated from the one as EF 2010-01-21 10:07:40 +00:00
westcos.profile Updated westcos driver by François Leblanc 2009-12-03 07:10:24 +00:00

README


Very brief instructions

To init card:

Erase card and create pkcs15 dir
	./pkcs15-init -EC

Store a PIN on the card, using ID 01
	./pkcs15-init -P  --auth-id 01 --pin aaaa --puk bbbb --label "My PIN"

Generate a 512 bit RSA key and store on card, protected by the above PIN
	./pkcs15-init -G rsa/512 --auth-id 01

Or, store a pkcs12 key/certificate pair
	./pkcs15-init --auth-id 01 -f pkcs12 -S mycert.p12

	Note that the pkcs12 file must use just one password - if you
	use different passwords for integrity and confidentiality,
	OpenSC will fail to import the keys.