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

pkcs15-jpki.c - minidriver problem with reading public key #3182

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Commits on Jun 14, 2024

  1. pkcs15-jpki.c - minidriver problem with reading public key

    Add SC_PKCS15_CO_FLAG_PRIVATE on "Digital Signature Public Key" and
    set pubkey_obj.flags and pubkey_obj.auth_id to use the Sign KEY
    so minidriver.c can request the pin before reading the public key.
    Card enforces this as perspecs.
    
    Partial fix for OpenSC#3169 Only pkcs15-jpki.c is changed.
    
    In addition to changes in OpenSC#3167 that address "user_consent" using
    "PinCacheAlwaysPrompt", The JPKI card forces the user to verify the Sign PIN
    before the public key is read. But to use the Sign KEY,
    Windows minidriver specs V7.07 says: the "CCP_CONTAINER_INFO"
    contains "cbSigPublicKey" and "pbSigPublicKey"
    which is needed before the key is selected.
    
    It might be possible to add bogus information in these and
    substitute the real values at a later time. But this will require
    someone with a working card.
    
     On branch minidriver-PinCacheAlwaysPrompt
     Changes to be committed:
    	modified:   libopensc/pkcs15-jpki.c
    
     On branch JPKI-Improvments
     Changes to be committed:
    	modified:   libopensc/pkcs15-jpki.c
    dengert committed Jun 14, 2024
    Configuration menu
    Copy the full SHA
    9ceb0e4 View commit details
    Browse the repository at this point in the history