Re: nss -- xmlSecNssX509StoreVerify question

Aleksey Sanin <[email protected]> Thu, 8 Dec 2016 14:53:37 -0800
Newsgroups gmane.text.xml.xmlsec
Message-ID <[email protected]>
Can you check the xmlSecDsigCtx to see if the key used for verification
(it is returned in the context) has a certificate attached to it?

Aleksey

On 12/8/16 2:20 PM, Miklos Vajna wrote:
> On Thu, Dec 08, 2016 at 01:26:27PM -0800, Aleksey Sanin <[email protected]> wrote:
>> Could you please confirm that xmlsec-nss gets the key from the
>> certificate and not from another place?
> 
> Hi,
> 
> Hmm... how do I confirm that? The use-case where this code is running is
> that I have a signed XML document and I'm verifying the signature. The
> NSS db doesn't have the certificate (so the private key is not
> available), nor the issuer certificate (or its parents).
> 
> So I *guess* the only way how xmlsec-nss can get the key (assuming you
> mean the public key) is from the certificate.
> 
>> I am not very familiar with this code unfortunately. It might
>> have happen that the NSS API changed since xmlsec-nss was
>> written :)
> 
> No problem, I'll check tomorrow if it's really just about passing a
> non-NULL returnedUsages to CERT_VerifyCertificate(); I just asked here
> in case somebody more competent than me can point ouf if I'm missing
> something obvious. ;-)
> 
> Thanks,
> 
> Miklos
>

_______________________________________________
xmlsec mailing list
[email protected]
http://www.aleksey.com/mailman/listinfo/xmlsec
signature.asc (application/pgp-signature, 842 B)
-----BEGIN PGP SIGNATURE-----
Comment: GPGTools - https://gpgtools.org

iQIcBAEBCgAGBQJYSeR1AAoJEEEbi2vACtCgTx4P/09pwHzPBBLD+Z0laBmToUTp
YajSXOMguKPBUIxrNWUm/rtukWMpHVTbfL/L/AGqWxV0/PLqUnSBr0rSfJDS1rQ8
RAVt2RlGjJTj29Os7KaprKXpF8TFE6gURT6PA22LrM3O2b2MtWrRrU5uVqO5W9Ax
kgnIRQ0bA9rzPphN4aCIaSfpAbrCxqW0NVBsSaabfdsX8I9sylTvFzNTMZPU9b4L
Gn+XH0ERaIC3LR6ULpJ5buhhRa8cqLEDeS8V5t9ywAnIitb9ZwxdE1ewC10yVk33
3zSjZI9mgb5WNDM3W9pynGQzztlPAHF7Ik73ViZPIVVhhkWoc/NWF9XJbBTAAA+D
RTN9HipF5Gk7vTMRVWOwXIauk4/3XaqLNElWEzrbpI0r6iv0WzeqMo0ZSVQ+PERi
r6IslfiGf3wLPx86pTHfM1IL/YKZ8GVtP3q6rulo3XIvn8Y4stk1lHRxljYESAd3
qXK4H8rc9P+Dcr6s1XE8gzabfM9vJBt9ciRJZ/4V2rdDfc1y2I4JzPBFji5bJ18i
Rg5VkrTkgMXz31o3VjHaYL7WGR/O0S4cL0ncZ7OL46IHFCumJsAjyuyDUnYnWAjA
sQMLeeYXSfCcd+g5j3sC93avzQiZ2dao9bBxe/V3/z8RlWUU/o52QtW/mltV8VNn
uoGOz3FXsuEUDxU3J0l/
=fXk0
-----END PGP SIGNATURE-----