<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=ISO-8859-1">
<title></title>
</head>
<body>
The simplest way is to add multiple certificates to the key and add<br>
one <X509Data> node to the <KeyInfo>. All the certs found in
the key<br>
(as well as all CRLs) should be written into the <X509Data> node.<br>
<br>
The function you might want to look at are:<br>
<br>
<a
href="http://www.aleksey.com/xmlsec/api/xmlsec-keys.html#XMLSECKEYREADPEMCERT">xmlSecKeyReadPemCert</a>
<a
href="http://www.aleksey.com/xmlsec/api/xmlsec-x509.html#XMLSECX509DATAREADPEMCERT"><br>
</a> <a
href="http://www.aleksey.com/xmlsec/api/xmlsec-x509.html#XMLSECX509DATAREADPEMCERT">xmlSecX509DataReadPemCert</a>
<a
href="http://www.aleksey.com/xmlsec/api/xmlsec-keyinfo.html#XMLSECKEYINFOADDX509DATA"><br>
</a> <a
href="http://www.aleksey.com/xmlsec/api/xmlsec-keyinfo.html#XMLSECKEYINFOADDX509DATA">xmlSecKeyInfoAddX509Data</a><br>
<br>
You are absolutelly right that the current API is not really clear. I am
working<br>
on fixing this :)<br>
<br>
Aleksey<br>
<br>
Jeff Lancelle wrote:<br>
<blockquote type="cite"
cite="mid20021206225229.1337.qmail@web40305.mail.yahoo.com">
<pre wrap="">What is the best way to efficiently create an X509Data
structure with multiple certificates that form a
certificate chain. I have been trying to create it
dynamically with some issues through the API.
Question :
Is there something I am missing in the API that would
allow me to do this easily, or would the best solution
be a static template?
__________________________________________________
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
<a class="moz-txt-link-freetext" href="http://mailplus.yahoo.com">http://mailplus.yahoo.com</a>
_______________________________________________
xmlsec mailing list
<a class="moz-txt-link-abbreviated" href="mailto:xmlsec@aleksey.com">xmlsec@aleksey.com</a>
<a class="moz-txt-link-freetext" href="http://www.aleksey.com/mailman/listinfo/xmlsec">http://www.aleksey.com/mailman/listinfo/xmlsec</a>
</pre>
</blockquote>
<br>
</body>
</html>