opensc/src/pkcs15init
ludovic.rousseau 2b8a2f4d90 sc_pkcs15_parse_tokeninfo() and sc_pkcs15_encode_tokeninfo() now use a
(sc_pkcs15_tokeninfo_t *) instead of struct (sc_pkcs15_card *)


git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2872 c6295689-39f2-0310-b995-f0e70906c6a9
2006-03-07 07:22:58 +00:00
..
cardos.profile big rename etoken -> cardos, part II. 2006-01-23 21:48:08 +00:00
cyberflex.profile Added info for EF data files 2004-10-13 07:19:38 +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
incrypto34.profile add support for the Italian Incrypto34 smartcard; 2005-10-24 21:58:35 +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 add a new function 2005-09-17 10:44:45 +00:00
keycache.h - Cleanup, typo fix 2005-02-02 10:21:10 +00:00
Makefile.am big rename etoken -> cardos, part II. 2006-01-23 21:48:08 +00:00
Makefile.mak big rename etoken -> cardos, part II. 2006-01-23 21:48:08 +00:00
miocos.profile - Small update to MioCOS pkcs15init driver 2002-04-19 18:01:49 +00:00
oberthur.profile two small fixes from Tarasov Viktor <vtarasov@idealx.com> 2005-08-11 19:14:23 +00:00
pkcs15-cardos.c add support for two byte tags in sc_asn1_find_tag() + normalize return value 2006-02-12 18:30:53 +00:00
pkcs15-cflex.c - implement thread-safe path printing function sc_path_print() and use 2006-01-11 23:41:17 +00:00
pkcs15-gpk.c - remove dependence on a specific threading library 2006-02-01 22:59:42 +00:00
pkcs15-incrypto34.c fix pkcs15 initialization + fix DIRECTORY command; patch supplied by Giuseppe AMATO <giuseppe.amato@st.com> 2005-12-02 22:24:09 +00:00
pkcs15-init.h rename lower level function, fix typo. 2006-01-23 22:02:07 +00:00
pkcs15-jcop.c Added support for deleting pkcs15 objects, each card driver should implement its delete_object() operation in order to support it 2005-08-22 09:20:13 +00:00
pkcs15-lib.c sc_pkcs15_parse_tokeninfo() and sc_pkcs15_encode_tokeninfo() now use a 2006-03-07 07:22:58 +00:00
pkcs15-miocos.c Added support for deleting pkcs15 objects, each card driver should implement its delete_object() operation in order to support it 2005-08-22 09:20:13 +00:00
pkcs15-oberthur.c - implement thread-safe path printing function sc_path_print() and use 2006-01-11 23:41:17 +00:00
pkcs15-setcos.c add functions 2005-10-30 19:08:06 +00:00
pkcs15-starcos.c add functions 2005-10-30 19:08:06 +00:00
pkcs15.profile Forgotten to add in r2773 2006-01-03 14:42:30 +00:00
profile.c - implement thread-safe path printing function sc_path_print() and use 2006-01-11 23:41:17 +00:00
profile.h The lastUpdate field is in the EF(TokenInfo), not in the ODF (thx Nils) 2005-08-29 20:48:00 +00:00
README - added comment on pkcs12 files 2002-12-04 14:28:08 +00:00
setcos.profile Improved ACs 2005-08-24 16:11:46 +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.