Yes, there are plenty of examples in the xmlsec/test folder.

Aleksey

On 1/27/11 7:33 AM, Paulo Zemek wrote:
I really only want a sample, but, in fact, imagine the situation:
I have the trusted certificate (certification authority) installed in my
computer. If I receive the public part of the certificate, I am able to
do the validation (using .Net, to be honest).
But, what I really want to do is to load the certificate or key that
comes inside the XML, which must be the same as that external file. I
only don't want to require the certificate to be received separatelly.

So, is there a simple way to receive a XML with the X509 certificate in
it, load that certificate and validate the signature?


 > Date: Thu, 27 Jan 2011 07:27:54 -0800
 > From: [email protected]
 > To: [email protected]
 > CC: [email protected]
 > Subject: Re: [xmlsec] Signed Xml with Embedded Certificate Sample.
 >
 > You can't validate signature w/o validating certificate and you need
 > an external trusted certificate for that.
 >
 > I suggest you start from reading a good book on cryptography and PKI.
 >
 >
 > Aleksey
 >
 > On 1/27/11 7:25 AM, Paulo Zemek wrote:
 > > Hi, is there any sample on how to validate a SignedXml that has the
 > > public part of the certificate Embedded in it?
 > >
 > > Looking for the samples, they always use the certificate/key as an
 > > external file, but everything I need to do is to receive a single XML
 > > file, with the certificate in it, and validate if it is OK.
 > > Can someone send me a sample of how to do that? I am really new to the
 > > library, so it may be very simple, but I really couldn't find an way to
 > > do it.
 > >
 > > Thanks in advance,
 > > Paulo Zemek.
 > >
 > >
 > >
 > > _______________________________________________
 > > xmlsec mailing list
 > > [email protected]
 > > http://www.aleksey.com/mailman/listinfo/xmlsec
_______________________________________________
xmlsec mailing list
[email protected]
http://www.aleksey.com/mailman/listinfo/xmlsec

Reply via email to