opensc/src/pkcs15init
ludovic.rousseau 70ead491fc sc_pkcs15init_read_info(): do not use affectation and test in the same
line of code but use two different lines so the code is easier to read.


git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@4854 c6295689-39f2-0310-b995-f0e70906c6a9
2010-11-02 08:02:13 +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 myeid: applied patch for MyEID card profile 2010-09-27 07:50:14 +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 Do not cast the return value of malloc(3) and calloc(3) 2010-08-18 15:08:51 +00:00
pkcs15-cflex.c Do not cast the return value of malloc(3) and calloc(3) 2010-08-18 15:08:51 +00:00
pkcs15-entersafe.c Do not cast the return value of malloc(3) and calloc(3) 2010-08-18 15:08:51 +00:00
pkcs15-gpk.c Do not cast the return value of malloc(3) and calloc(3) 2010-08-18 15:08:51 +00:00
pkcs15-incrypto34.c Do not cast the return value of malloc(3) and calloc(3) 2010-08-18 15:08:51 +00:00
pkcs15-init.h pkcs15init: create frame to implement card specific 'sanity check' procedure 2010-07-02 14:26:29 +00:00
pkcs15-jcop.c Do not cast the return value of malloc(3) and calloc(3) 2010-08-18 15:08:51 +00:00
pkcs15-lib.c sc_pkcs15init_read_info(): do not use affectation and test in the same 2010-11-02 08:02:13 +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 myeid: applied patch for MyEID card profile 2010-09-27 07:50:14 +00:00
pkcs15-oberthur-awp.c pkcs15init: homogenise line ending of debug messages 2010-09-22 12:17:53 +00:00
pkcs15-oberthur.c oberthur: from the common part remove the Oberthur specific tokenInfo flags 2010-10-07 15:12:12 +00:00
pkcs15-oberthur.h style: // -> /* */ 2010-06-16 12:01:04 +00:00
pkcs15-rtecp.c Fix: default count of attempt (use profile) for new version firmware 2010-09-21 18:14:04 +00:00
pkcs15-rutoken.c remove software RSA support for Rutoken S 2010-09-09 17:28:44 +00:00
pkcs15-setcos.c Do not cast the return value of malloc(3) and calloc(3) 2010-08-18 15:08:51 +00:00
pkcs15-starcos.c Do not cast the return value of malloc(3) and calloc(3) 2010-08-18 15:08:51 +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 pkcs15: don't play with TokenInfo.version. 0 means PKCS#15 v1.1. The flag is not used by OpenSC. 2010-10-05 16:02:57 +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
rutoken_ecp.profile Fix: default count of attempt (use profile) for new version firmware 2010-09-21 18:14:04 +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.