opensc/src/pkcs15init
Khem Raj 35cb70b5d6 Remove redundant logging
Same information is printed a few line below in same function, the only
difference is that there it takes care of case when label is NULL pointer
unlike this line

secondly, every function call to cosm_write_tokeninfo() in this file
passes label=NULL, and then it tries to print a null pointer

Fixes errors like
src/libopensc/log.h:48:47: error: '%s' directive argument is null
[-Werror=format-overflow=]

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2018-12-18 13:50:08 +01:00
..
Makefile.am use single quotes for passing define 2018-07-17 14:49:27 +02:00
Makefile.mak fixed and cleaned up nmake Makefiles 2016-06-23 07:35:53 +02:00
README
asepcos.profile Create new type "privdata" in all profiles with different 2008-12-28 16:07:51 +00:00
authentic.profile libopensc: export sc_find_app(), remove debug message, ... 2011-01-12 17:41:10 +00:00
cardos.profile Revert 5558 2011-06-08 07:58:51 +00:00
cyberflex.profile cyberflex: no more 'protect-certificates' profile option 2010-02-20 23:20:38 +00:00
entersafe.profile pkcs15init: EnterSafe: increase size of the xDF files 2011-03-15 09:39:04 +00:00
epass2003.profile epass2003: support for ePass2003 card in read/write modes 2012-06-08 20:17:36 +02:00
flex.profile pkcs15init cflex: fix protected initialisation 2010-03-04 13:37:11 +00:00
gids.profile First support for GIDS card 2016-02-19 00:12:16 +01:00
gpk.profile change base id so it does not overlap with the next one. 2009-03-05 15:15:24 +00:00
ias_adele_admin1.profile fix typos 2018-04-15 09:34:45 +02:00
ias_adele_admin2.profile fix typos 2018-04-15 09:34:45 +02:00
ias_adele_common.profile fix typos 2018-04-15 09:34:45 +02:00
iasecc.profile fix typos 2018-04-15 09:34:45 +02:00
iasecc_admin_eid.profile fix typos 2018-04-15 09:34:45 +02:00
iasecc_generic_oberthur.profile fix typos 2018-04-15 09:34:45 +02:00
iasecc_generic_pki.profile fix typos 2018-04-15 09:34:45 +02:00
incrypto34.profile pkcs15init profile: 'private key' as BSO is differenciated from the one as EF 2010-01-21 10:07:40 +00:00
isoApplet.profile isoApplet: fix card not recognized by minidriver 2015-10-23 23:03:25 +02:00
jcop.profile Create new type "privdata" in all profiles with different 2008-12-28 16:07:51 +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 add algorithm references for AES keys 2017-06-13 10:40:36 +02:00
oberthur.profile fix typos 2018-04-15 09:34:45 +02:00
openpgp.profile pkcs15init-openpgp: Support for private key import in pkcs15init. 2012-07-29 13:09:08 +02:00
pkcs15-asepcos.c replaced SC_TEST_RET with LOG_TEST_RET 2018-12-06 09:26:42 +01:00
pkcs15-authentic.c pkcs15-authentic: Do not confuse static analyzers 2018-10-01 23:07:34 +02:00
pkcs15-cardos.c replaced SC_TEST_RET with LOG_TEST_RET 2018-12-06 09:26:42 +01:00
pkcs15-cflex.c replaced SC_TEST_RET with LOG_TEST_RET 2018-12-06 09:26:42 +01:00
pkcs15-entersafe.c replaced SC_TEST_RET with LOG_TEST_RET 2018-12-06 09:26:42 +01:00
pkcs15-epass2003.c replaced SC_TEST_RET with LOG_TEST_RET 2018-12-06 09:26:42 +01:00
pkcs15-gids.c replaced SC_TEST_RET with LOG_TEST_RET 2018-12-06 09:26:42 +01:00
pkcs15-gpk.c replaced SC_FUNC_RETURN with LOG_FUNC_RETURN 2018-12-06 09:26:42 +01:00
pkcs15-iasecc.c fix typos 2018-04-15 09:34:45 +02:00
pkcs15-incrypto34.c replace sc_debug with sc_log 2018-12-06 09:26:42 +01:00
pkcs15-init.h Implemented handling of CKA_ALWAYS_AUTHENTICATE attribute when importing and generating keys, mapping it to pkcs#15 userConsent field. Added command line options to pkcs11-tool and pkcs15-init tool to use the feature. 2018-12-05 12:10:42 +01:00
pkcs15-isoApplet.c fix typos 2018-04-15 09:34:45 +02:00
pkcs15-jcop.c replace sc_debug with sc_log 2018-12-06 09:26:42 +01:00
pkcs15-lib.c Fix some pinpad reader related issues (#1540) 2018-12-05 12:41:58 +01:00
pkcs15-miocos.c replaced SC_TEST_RET with LOG_TEST_RET 2018-12-06 09:26:42 +01:00
pkcs15-muscle.c replace sc_debug with sc_log 2018-12-06 09:26:42 +01:00
pkcs15-myeid.c MyEID: add AES algorithms to tokenInfo as supported during init. It is better to do it already in init, because adding them in C_UnwrapKey operations would require SO-PIN which is inconvenient. 2018-11-20 11:52:54 +01:00
pkcs15-oberthur-awp.c replaced SC_TEST_RET with LOG_TEST_RET 2018-12-06 09:26:42 +01:00
pkcs15-oberthur.c Remove redundant logging 2018-12-18 13:50:08 +01:00
pkcs15-oberthur.h Use OpenSSL versions OpenSSL-0.9.7 to 1.1.0a for OpenSC 2016-10-08 06:15:06 -05:00
pkcs15-openpgp.c replace sc_debug with sc_log 2018-12-06 09:26:42 +01:00
pkcs15-rtecp.c replaced SC_TEST_RET with LOG_TEST_RET 2018-12-06 09:26:42 +01:00
pkcs15-rutoken.c replace sc_debug with sc_log 2018-12-06 09:26:42 +01:00
pkcs15-sc-hsm.c replace sc_debug with sc_log 2018-12-06 09:26:42 +01:00
pkcs15-setcos.c replaced SC_TEST_RET with LOG_TEST_RET 2018-12-06 09:26:42 +01:00
pkcs15-starcos.c replace sc_debug with sc_log 2018-12-06 09:26:42 +01:00
pkcs15-westcos.c openssl: Bump openssl requirement to 0.9.8 2018-09-14 08:21:40 +02:00
pkcs15.profile pkcs15init: externalize and change name of select_intrinsic_id() 2013-12-29 17:33:36 +01:00
profile.c fixed requesting DWORD with sc_ctx_win32_get_config_value 2018-08-05 11:35:12 +02:00
profile.h License clarification (#988) 2017-03-14 22:47:13 +01: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
rutoken_ecp.profile RuToken-ECP: profile option to allow the reset of User PIN with SoPIN 2011-06-02 19:06:43 +00:00
sc-hsm.profile sc-hsm: Bind PIN object to applet aid to ensure SELECT before PIN verification 2015-09-23 15:38:57 +02:00
setcos.profile fix typos 2018-04-15 09:34:45 +02:00
starcos.profile onepin option also needs PIN to CREATE 2018-10-08 21:35:23 +02:00
westcos.profile Updated westcos driver by François Leblanc 2009-12-03 07:10:24 +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.