opensc/src/pkcs15init
okir f37cb0fce3 - When zapping the contents of a DF, write the whole file (data + padding)
in one go. Otherwise the GPK driver may barf if the file offset in
  sc_update_binary isn't word aligned.


git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1714 c6295689-39f2-0310-b995-f0e70906c6a9
2004-01-07 10:10:34 +00:00
..
.cvsignore Resync .cvsignore files 2003-07-17 12:39:11 +00:00
Makefile.am - Added support for JCOP/BlueZ cards, contributed by Chaskiel M Grundman 2003-12-29 12:28:37 +00:00
Makefile.mak Add the JCOP card code 2003-12-29 20:50:58 +00:00
README - added comment on pkcs12 files 2002-12-04 14:28:08 +00:00
cyberflex.profile - More cyberflex fixes from Martin Buechler 2003-12-09 13:57:20 +00:00
etoken.profile - disallow UPDATE on the Application DF 2003-10-21 08:32:17 +00:00
flex.profile - added recommendation about 2 cert/key pairs 2003-10-30 11:13:11 +00:00
gpk.profile - pkcs15 rewrite 2003-10-13 16:13:12 +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 - Minor build and C++ warning fixes 2003-12-18 21:37:34 +00:00
keycache.h - Minor build and C++ warning fixes 2003-12-18 21:37:34 +00:00
miocos.profile - Small update to MioCOS pkcs15init driver 2002-04-19 18:01:49 +00:00
pkcs15-cflex.c - Warning fix 2003-12-20 14:41:05 +00:00
pkcs15-etoken.c - Prepare for userConsent support: changed ops->create_pin to take 2003-10-17 11:21:48 +00:00
pkcs15-gpk.c - Minor build and C++ warning fixes 2003-12-18 21:37:34 +00:00
pkcs15-init.h - Added support for JCOP/BlueZ cards, contributed by Chaskiel M Grundman 2003-12-29 12:28:37 +00:00
pkcs15-jcop.c - Added support for JCOP/BlueZ cards, contributed by Chaskiel M Grundman 2003-12-29 12:28:37 +00:00
pkcs15-lib.c - When zapping the contents of a DF, write the whole file (data + padding) 2004-01-07 10:10:34 +00:00
pkcs15-miocos.c - Error logging changes: replace ctx->log_errors with ctx->suppress_errors 2003-10-14 09:57:29 +00:00
pkcs15.profile - Support direct encoding of certificates 2003-11-19 20:37:02 +00:00
profile.c - Implemented keep-public-key and sc_pkcs15init_remove_object as 2004-01-06 14:30:24 +00:00
profile.h - Implemented keep-public-key and sc_pkcs15init_remove_object as 2004-01-06 14:30: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.