[xmlsec] PKCS11 - Key not found

Aleksey Sanin aleksey at aleksey.com
Mon Sep 18 15:49:40 PDT 2017


Glad to hear that!

Aleksey

On 9/18/17 3:47 PM, Pablo Gabriel Gallardo wrote:
> 2017-09-17 19:38 GMT-03:00 Pablo Gabriel Gallardo <pggllrd at gmail.com>:
>> 2017-09-17 16:58 GMT-03:00 Aleksey Sanin <aleksey at aleksey.com>:
>>> The best approach would be to call RSA_set_flags(rsa, RSA_FLAG_EXT_PKEY)
>>> from your code when you load the key (if you are sure this is a private
>>> key).
>>
>> Nice! I'll try that and will let you know. I didn't know that I could
>> set that flag manually. I think it will work :).
> 
> Aleksey,
> 
> I've applied your suggestion in my code and is working! Removing
> RSA_FLAG_CACHE_PRIVATE from the condition doesn't affect my project
> anymore.
> 
> Thank you for your help.
> 
> Best,
> 
> Pablo G. Gallardo
> 


More information about the xmlsec mailing list