opensc/src/pkcs15init
2003-04-16 14:20:40 +00:00
..
.cvsignore Add .cvsignore 2002-04-02 13:43:37 +00:00
etoken.profile - various changes for on-board key generation 2002-06-17 10:58:04 +00:00
flex.profile - fix for 2048 bit keys on cflex 2003-04-11 10:31:33 +00:00
gpk.profile - First shot at pkcs15 data objects from Danny De Cock 2002-12-18 10:17:01 +00:00
Makefile.am - backed out AM_LDFLAGS change 2003-04-16 14:20:40 +00:00
Makefile.mak - more Makefile.mak fixes from Stef 2002-12-12 10:08:23 +00:00
miocos.profile - Small update to MioCOS pkcs15init driver 2002-04-19 18:01:49 +00:00
pkcs15-cflex.c - reverted previous patch 2003-04-11 14:48:54 +00:00
pkcs15-etoken.c - reverted previous patch 2003-04-11 14:48:54 +00:00
pkcs15-gpk.c - reverted previous patch 2003-04-11 14:48:54 +00:00
pkcs15-init.h - First shot at pkcs15 data objects from Danny De Cock 2002-12-18 10:17:01 +00:00
pkcs15-lib.c added support for max pin length 2003-02-20 23:19:01 +00:00
pkcs15-miocos.c - reverted previous patch 2003-04-11 14:48:54 +00:00
pkcs15.profile - First shot at pkcs15 data objects from Danny De Cock 2002-12-18 10:17:01 +00:00
profile.c - Don't set PIN defaults until after we've parsed _all_ cardinfo blocks 2003-04-11 10:32:15 +00:00
profile.h - C++ support. Compiles with gcc/g++ for Linux, otherwise 2002-04-19 14:23:31 +00:00
README - added comment on pkcs12 files 2002-12-04 14:28:08 +00:00
TODO - updated TODO list 2002-04-03 11:57:58 +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.