Skip to content
  • gbolo's avatar
    [FAB-5407] Fix issue with pubkey pkcs11 CKA_PRIVATE · c97a93a5
    gbolo authored
    
    
    According to PKCS11 standard:
    CKA_PRIVATE - CK_BBOOL - TRUE if object is a private
    object (vs. public object) (default FALSE)
    
    Changing this to FALSE for public key pkcs11 attribute struct
    fixed an issue we were having with our Thalas HSM: CKR_TEMPLATE_INCONSISTENT
    
    Commenting out this line also works
    (since there is no reason for it to be in the pubkey struct).
    Please also vendor in this change to other projects using it,
    such as Fabric-CA.
    
    Change-Id: I87d363a89e34c39f438492123166ed59eb515c44
    Signed-off-by: default avatargbolo <george.bolo@gmail.com>
    c97a93a5