opensc/src/pkcs15init
martin 48615686ac style: // -> /* */
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@4416 c6295689-39f2-0310-b995-f0e70906c6a9
2010-06-16 12:01:04 +00:00
..
asepcos.profile Create new type "privdata" in all profiles with different 2008-12-28 16:07:51 +00:00
cardos.profile pkcs15init cardos: fix update keys 2010-01-31 20:26:45 +00:00
cyberflex.profile cyberflex: no more 'protect-certificates' profile option 2010-02-20 23:20:38 +00:00
entersafe.profile Entersafe: the default profile should have local PIN-s 2010-06-09 11:18:22 +00:00
flex.profile pkcs15init cflex: fix protected initialisation 2010-03-04 13:37:11 +00:00
gpk.profile change base id so it does not overlap with the next one. 2009-03-05 15:15:24 +00:00
incrypto34.profile pkcs15init profile: 'private key' as BSO is differenciated from the one as EF 2010-01-21 10:07:40 +00:00
jcop.profile Create new type "privdata" in all profiles with different 2008-12-28 16:07:51 +00:00
Makefile.am oberthur pkcs15init: non-install header; join pkcs15-oberthur-awp.obj to object list for win32 2010-03-23 10:02:22 +00:00
Makefile.mak win32: merge the branches/vtarasov/opensc-sm.trunk 2010-05-01 12:15:36 +00:00
miocos.profile
muscle.profile muscle profile: keep default ACLs for the 'DIR' file 2010-03-31 12:41:39 +00:00
myeid.profile pkcs15init: instead of static keycache use the pincache as a content of the pkcs15 AUTH object 2010-02-21 18:24:41 +00:00
oberthur.profile oberthur: add in emulator and create in pkcs15init the private data object 2010-04-18 14:51:44 +00:00
pkcs15-asepcos.c Fix warning: missing initializer 2010-03-28 11:37:13 +00:00
pkcs15-cardos.c Support for CardOS 4.4 2010-04-21 14:38:23 +00:00
pkcs15-cflex.c cflex pkcs15init: use temporary PINs that satisfy default pin policy 2010-04-19 12:10:56 +00:00
pkcs15-entersafe.c Entersafe: cache the presented PIN on personalization, simplify the code a bit. 2010-06-09 13:53:11 +00:00
pkcs15-gpk.c Fix warning: missing initializer 2010-03-28 11:37:13 +00:00
pkcs15-incrypto34.c Fix warning: missing initializer 2010-03-28 11:37:13 +00:00
pkcs15-init.h Fix #198: set correct access flags to private keys 2010-04-01 14:16:43 +00:00
pkcs15-jcop.c Fix warning: missing initializer 2010-03-28 11:37:13 +00:00
pkcs15-lib.c pkcs15init: fix undeclared variable 2010-05-27 08:12:20 +00:00
pkcs15-miocos.c Fix warning: missing initializer 2010-03-28 11:37:13 +00:00
pkcs15-muscle.c Fix warning: missing initializer 2010-03-28 11:37:13 +00:00
pkcs15-myeid.c Use size_t instead of int to fix a compiler warning 2010-04-02 12:15:12 +00:00
pkcs15-oberthur-awp.c oberthur: add in emulator and create in pkcs15init the private data object 2010-04-18 14:51:44 +00:00
pkcs15-oberthur.c Fix compilation without OpenSSL 2010-06-09 10:06:42 +00:00
pkcs15-oberthur.h style: // -> /* */ 2010-06-16 12:01:04 +00:00
pkcs15-rtecp.c Fix warning: missing initializer 2010-03-28 11:37:13 +00:00
pkcs15-rutoken.c Fix warning: missing initializer 2010-03-28 11:37:13 +00:00
pkcs15-setcos.c pkcs11, libopensc, pkkcs15init: not use C99 designated initializers 2010-04-14 11:36:40 +00:00
pkcs15-starcos.c Fix warning: missing initializer 2010-03-28 11:37:13 +00:00
pkcs15-westcos.c westcos_pkcs15_create_pin(): use a temporary variable to not lose 2010-03-28 15:04:20 +00:00
pkcs15.profile pkcs15init profile: 'private key' as BSO is differenciated from the one as EF 2010-01-21 10:07:40 +00:00
profile.c cleanup of the debug code: 2010-03-15 12:17:13 +00:00
profile.h pkcs15init: homegenize pin reference type in a different structures; remove unused parameters in the internal procedures; 2010-03-05 10:37:11 +00:00
README - added comment on pkcs12 files 2002-12-04 14:28:08 +00:00
rutoken_ecp.profile rutoken (ECP): add 4 DF (reserved for internal use) 2010-02-04 12:18:19 +00:00
rutoken.profile Rutoken S: add 'aid' to profile (for '-init --create-pkcs15 --so-pin 87654321 --so-puk -p rutoken+small') 2010-05-30 13:54:54 +00:00
setcos.profile sertcos: both PINs are globals 2010-01-29 17:41:05 +00:00
starcos.profile pkcs15init profile: 'private key' as BSO is differenciated from the one as EF 2010-01-21 10:07:40 +00:00
westcos.profile Updated westcos driver by François Leblanc 2009-12-03 07:10:24 +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.