Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

2 small fixes for storing a private key #13

Merged
merged 2 commits into from
Feb 22, 2012
Merged

2 small fixes for storing a private key #13

merged 2 commits into from
Feb 22, 2012

Conversation

mjrider
Copy link

@mjrider mjrider commented Jan 8, 2012

Hello,

2 small fixes for 'pkcs15-init --store-private-key ./key.pem --auth-id 01'

passing the x509_usage flag in do_store_public_key otherwise the public key will not have the right flags based on the
without the fix and calling the above command with -u sign,decrypt the usage flags are
Usage : [0x4], sign
with the fix
Usage : [0xD1], encrypt, wrap, verify, verifyRecover

Setting the default usage flag to verify instead of sign for the public key. If i understand the flags and the sc_pkcs15init_map_usage function correctly
before the fix de default usage for the public key is sign, instead of verify

viktorTarasov added a commit that referenced this pull request Feb 22, 2012
2 small fixes for storing a private key
@viktorTarasov viktorTarasov merged commit e6c501f into OpenSC:master Feb 22, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants