opensc/src/pkcs15init
aet f5aeedf554 - Obsolete
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1685 c6295689-39f2-0310-b995-f0e70906c6a9
2003-12-18 21:30:28 +00:00
..
.cvsignore Resync .cvsignore files 2003-07-17 12:39:11 +00:00
Makefile.am - Added support for Cyberflex Access 16K, based on a patch by 2003-12-08 11:43:21 +00:00
Makefile.mak 'Export' keychache.h 2003-10-22 06:56:51 +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
keycache.c - fixed put_key(SC_AC_SYMBOLIC) 2003-10-31 16:06:40 +00:00
keycache.h - Fixed nightly snapshot generation 2003-10-14 21:56:56 +00:00
miocos.profile - Small update to MioCOS pkcs15init driver 2002-04-19 18:01:49 +00:00
pkcs15-cflex.c - More cyberflex fixes from Martin Buechler 2003-12-09 13:57:20 +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 - Add HAVE_UNISTD_H 2003-12-17 12:15:11 +00:00
pkcs15-init.h - When generating a key in pkcs15init, allow the caller to specify a 2003-12-08 12:02:28 +00:00
pkcs15-lib.c - do not access file afterdeleting it (S Bakkal) 2003-12-18 08:00:27 +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 - Avoid breaking source compatibility, add char *errmsg to scconf_context 2003-12-03 14:09:15 +00:00
profile.h - Support direct encoding of certificates 2003-11-19 20:37:02 +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.