opensc/src/pkcs15init
aj 73d0922741 len is the number of character, we need to alloc len+1 for
the \0 terminator. Bug found by Victor Tarasov.


git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1757 c6295689-39f2-0310-b995-f0e70906c6a9
2004-03-28 20:26:43 +00:00
..
.cvsignore Resync .cvsignore files 2003-07-17 12:39:11 +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
Makefile.am - Revert previous patch 2004-01-19 19:52:38 +00:00
Makefile.mak Add the JCOP card code 2003-12-29 20:50:58 +00:00
miocos.profile - Small update to MioCOS pkcs15init driver 2002-04-19 18:01:49 +00:00
pkcs15-cflex.c - Warning fixes 2004-01-08 15:23:11 +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 - Warning fixes 2004-01-08 15:23:11 +00:00
pkcs15-lib.c len is the number of character, we need to alloc len+1 for 2004-03-28 20:26:43 +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 - Properly handle max-length in PIN statements; added new stored-length: 2004-02-03 10:25:20 +00:00
profile.h - Implemented keep-public-key and sc_pkcs15init_remove_object as 2004-01-06 14:30:24 +00:00
README - added comment on pkcs12 files 2002-12-04 14:28:08 +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.