opensc/src/pkcs15init
nils 148b7900f7 Add support for the lastUpdate field to pkcs15init. Add flag to
indicate whether some data has been changed to the profile structure
and set the flag in the functions which change the card contents.



git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2468 c6295689-39f2-0310-b995-f0e70906c6a9
2005-08-05 19:07:24 +00:00
..
cyberflex.profile Added info for EF data files 2004-10-13 07:19:38 +00:00
etoken.profile try to avoid conflicts with file ids of different file types 2004-11-15 09:39:21 +00:00
flex.profile Added info for EF data files 2004-10-13 07:19:38 +00:00
gpk.profile try to avoid conflicts with file ids of different file types 2004-11-12 16:59:09 +00:00
jcop.profile - Added support for JCOP/BlueZ cards, contributed by Chaskiel M Grundman 2003-12-29 12:28:37 +00:00
keycache.c some cleanup + improved error checking 2005-01-03 17:25:18 +00:00
keycache.h - Cleanup, typo fix 2005-02-02 10:21:10 +00:00
Makefile.am Added initial support for SetCOS 4.4 cards 2005-04-04 09:30:54 +00:00
Makefile.mak Have pkcs15init as a DLL instead of as a static lib file 2005-05-04 13:17:26 +00:00
miocos.profile - Small update to MioCOS pkcs15init driver 2002-04-19 18:01:49 +00:00
oberthur.profile patch supplied by Victor Tarasov <vtarasov@idealx.com> 2004-06-24 17:03:17 +00:00
pkcs15-cflex.c fix memory leak; patch supplied by Imanishi Masayuki <Masayuki.Imanishi@jp.sony.com> 2005-07-20 18:19:40 +00:00
pkcs15-etoken.c remove unnecessary include 2005-07-01 22:37:39 +00:00
pkcs15-gpk.c API fixup: use defined type instead of struct for exposed structs (part 2) 2005-03-09 00:04:44 +00:00
pkcs15-init.h "smart card" not "smartcard" or "SmartCard". 2005-06-16 19:35:31 +00:00
pkcs15-jcop.c API fixup: use defined type instead of struct for exposed structs (part 2) 2005-03-09 00:04:44 +00:00
pkcs15-lib.c Add support for the lastUpdate field to pkcs15init. Add flag to 2005-08-05 19:07:24 +00:00
pkcs15-miocos.c API fixup: use defined type instead of struct for exposed structs (part 2) 2005-03-09 00:04:44 +00:00
pkcs15-oberthur.c API fixup: use defined type instead of struct for exposed structs (part 2) 2005-03-09 00:04:44 +00:00
pkcs15-setcos.c Add support for the lastUpdate field to pkcs15init. Add flag to 2005-08-05 19:07:24 +00:00
pkcs15-starcos.c Add support for the lastUpdate field to pkcs15init. Add flag to 2005-08-05 19:07:24 +00:00
pkcs15.profile remove unused profile entry 2005-02-08 19:49:28 +00:00
profile.c fix file descriptor byte and ef_structure type; patch supplied by richard.musil@bigfoot.com 2005-07-11 21:28:55 +00:00
profile.h Add support for the lastUpdate field to pkcs15init. Add flag to 2005-08-05 19:07:24 +00:00
README - added comment on pkcs12 files 2002-12-04 14:28:08 +00:00
setcos.profile Typo fix 2005-07-05 15:22:59 +00:00
starcos.profile fix starcos spk 2.3 "onepin" profile support 2004-09-28 20:06:04 +00:00


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.