opensc/src/pkcs15init
aet 0c37fe2f79 Warning fix
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1428 c6295689-39f2-0310-b995-f0e70906c6a9
2003-09-06 19:18:38 +00:00
..
.cvsignore Resync .cvsignore files 2003-07-17 12:39:11 +00:00
Makefile.am Add common versioning to all libraries 2003-08-18 14:28:47 +00:00
Makefile.mak - more Makefile.mak fixes from Stef 2002-12-12 10:08:23 +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
etoken.profile - increase size of PrKDF, so that we have room for 2x2 split keys 2003-05-15 15:26:29 +00:00
flex.profile - make sure CREATE/DELETE are protected 2003-05-16 14:16:15 +00:00
flex_onepin.profile Added support for a new cryptoflex profile, where the user (CHV1) is in charge of the pkcs15 DF 2003-06-12 21:35:20 +00:00
flex_so.profile Added some info 2003-06-11 11:03:40 +00:00
gpk.profile - First shot at pkcs15 data objects from Danny De Cock 2002-12-18 10:17:01 +00:00
miocos.profile - Small update to MioCOS pkcs15init driver 2002-04-19 18:01:49 +00:00
pkcs15-cflex.c Remove some compiler warnings 2003-08-05 17:28:29 +00:00
pkcs15-etoken.c - etoken_erase don't assume PIN 0 is always the SO PIN 2003-05-15 11:29:29 +00:00
pkcs15-gpk.c - reverted previous patch 2003-04-11 14:48:54 +00:00
pkcs15-init.h Fix: don't DER-en/decode the data in a pkcs15 object 2003-08-20 14:15:02 +00:00
pkcs15-lib.c Warning fix 2003-09-06 19:18:38 +00:00
pkcs15-miocos.c - reverted previous patch 2003-04-11 14:48:54 +00:00
pkcs15-small.profile - doubled file size of PrKDF, PuKDF, CDF etc 2003-08-05 09:50:39 +00:00
pkcs15.profile - doubled file size of PrKDF, PuKDF, CDF etc 2003-08-05 09:50:39 +00:00
profile.c Move #include <windows.h> to winconfig.h in 2003-09-03 18:18:57 +00:00
profile.h - erase card fixes: forget cached secrets, and use sc_free_apps 2003-05-15 13:33:04 +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.