[xmlsec] Verifying a X509 file

Arda TEKIN atekin@innova.com.tr
Mon, 24 Mar 2003 11:54:34 +0200


This is a multi-part message in MIME format.

------_=_NextPart_001_01C2F1EB.5F8AEC46
Content-Type: multipart/alternative;
	boundary="----_=_NextPart_002_01C2F1EB.5F8AEC46"


------_=_NextPart_002_01C2F1EB.5F8AEC46
Content-Type: text/plain;
	charset="iso-8859-9"
Content-Transfer-Encoding: quoted-printable

Hello Aleksey,
I need to validate a xml which use X509 certificate and key information. =
I have a sample xml message but I couldn't validate it. I think I have a =
key/certificate stating problem(xmlsec utility program also reported =
error about that). There is a sample xml validation code in the web site =
but it does not include X509 key info. I think I have to determine the =
cert. key. file or directory to xmlsec library. But I dont know which =
library functions sould I use? Can you help me about this problem =
please?
(In the attachment I'm sending you a xml file which I want to validate)

> Arda Tekin
> Software Specialist
> Innova IT Solutions
>=20
>=20
> >  <<PARes.xml>>=20
>=20
>=20


-------------------------------------------------------------------------=
-------

GIZLILIK NOTU
Bu e-posta mesaji gizli, hassas bilgi ve/ya da ekler icerebilir. Bu =
mesaj, mesajin alici kisminda belirtilen kullanici/kullanicilara =
gonderilmistir. Eger mesaji yanlislikla almissaniz lutfen gondereni =
acilen bilgilendiriniz, mesaji ve tum kopyalarini siliniz.
Bu mesaj bilinen t=FCm viruslere karsi Symantec Antivirus ile =
taranmistir.

=20
CONFIDENTIALITY NOTICE
This email may contain confidential information and/or attachments. This =
email is intended for the use of the addressee only. If you receive this =
email by mistake, please advise the sender immediately and delete the =
email and any copies of it.
This e-mail has been scanned by Symantec Antivirus for all known =
viruses.=20


------_=_NextPart_002_01C2F1EB.5F8AEC46
Content-Type: text/html;
	charset="iso-8859-9"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3Diso-8859-9">
<META NAME=3D"Generator" CONTENT=3D"MS Exchange Server version =
6.0.6249.1">
<TITLE>Verifying a X509 file</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/rtf format -->

<P><FONT SIZE=3D2 FACE=3D"Arial TUR">Hello Aleksey,</FONT>

<BR><FONT SIZE=3D2 FACE=3D"Arial TUR">I need to validate a xml which use =
X509 certificate and key information. I have a sample xml message but I =
couldn't validate it. I think I have a key/certificate stating =
problem(xmlsec utility program also reported error about that). There is =
a sample xml validation code in the web site but it does not include =
X509 key info. I think I have to determine the cert. key. file or =
directory to xmlsec library. But I dont know which library functions =
sould I use? Can you help me about this problem please?</FONT></P>

<P><FONT SIZE=3D2 FACE=3D"Arial TUR">(In the attachment I'm sending you =
a xml file which I want to validate)</FONT>
</P>

<P><SPAN LANG=3D"en-us"><B><FONT SIZE=3D2 FACE=3D"Lucida Sans =
Unicode">Arda Tekin</FONT></B></SPAN>

<BR><SPAN LANG=3D"en-us"><FONT SIZE=3D2 FACE=3D"Lucida Sans =
Unicode">Software Specialist</FONT></SPAN>

<BR><SPAN LANG=3D"en-us"><FONT SIZE=3D2 FACE=3D"Lucida Sans =
Unicode">Innova IT Solutions</FONT></SPAN>
</P>
<BR>

<P><SPAN LANG=3D"en-us"><FONT FACE=3D"Arial" SIZE=3D2 COLOR=3D"#000000"> =
&lt;&lt;PARes.xml&gt;&gt; </FONT></SPAN>
<BR>
</P>

</BODY>
<DIV><FONT face=3D"Lucida Sans Unicode" size=3D2>
<HR>
</FONT></DIV>
<DIV><FONT face=3D"Lucida Sans Unicode" size=3D2>GIZLILIK NOTU<BR>Bu =
e-posta mesaji gizli, hassas bilgi ve/ya da ekler icerebilir. Bu mesaj, =
mesajin alici kisminda belirtilen kullanici/kullanicilara =
gonderilmistir. Eger mesaji yanlislikla almissaniz lutfen gondereni =
acilen bilgilendiriniz, mesaji ve tum kopyalarini siliniz.<BR>Bu mesaj =
bilinen t=FCm viruslere karsi Symantec Antivirus ile =
taranmistir.<BR></FONT></DIV>
<DIV><FONT face=3D"Lucida Sans Unicode" size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3D"Lucida Sans Unicode" size=3D2>CONFIDENTIALITY =
NOTICE<BR>This email may contain confidential information and/or =
attachments. This email is intended for the use of the addressee only. =
If you receive this email by mistake, please advise the sender =
immediately and delete the email and any copies of it.<BR>This e-mail =
has been scanned by Symantec Antivirus for all known viruses.</FONT> =
</DIV></HTML>
------_=_NextPart_002_01C2F1EB.5F8AEC46--

------_=_NextPart_001_01C2F1EB.5F8AEC46
Content-Type: text/xml;
	name="PARes.xml"
Content-Transfer-Encoding: base64
Content-Description: PARes.xml
Content-Disposition: attachment;
	filename="PARes.xml"

PCEtLSBlZGl0ZWQgd2l0aCBYTUwgU3B5IHY0LjMgVSAoaHR0cDovL3d3dy54bWxzcHkuY29tKSBi
eSBOYXNkYXEgQm9vbSAoV29ybGQgb2YgQ3JhY2tpbmcpIC0tPg0KPFRocmVlRFNlY3VyZT4NCgk8
TWVzc2FnZSBpZD0iMTA0MTg2OTEyNzUzMTgxNjE1NTUxMTk3Mzg4Mzc3ODQiPg0KCQk8UEFSZXMg
aWQ9Ijc1M25Lb25NbVlITzlwd3cyTm9KQTg1NGZnRTAiPg0KCQkJPHZlcnNpb24+MS4wLjE8L3Zl
cnNpb24+DQoJCQk8TWVyY2hhbnQ+DQoJCQkJPGFjcUJJTj40MTIzNDU8L2FjcUJJTj4NCgkJCQk8
bWVySUQ+MTIzNDU2Nzg5MDEyMzQ1PC9tZXJJRD4NCgkJCTwvTWVyY2hhbnQ+DQoJCQk8UHVyY2hh
c2U+DQoJCQkJPHhpZD5NREF3TURBd01EQXdNREF3TURBd01EQXhNREk9PC94aWQ+DQoJCQkJPGRh
dGU+MjAwMzAxMDYgMTg6MDA6Mjc8L2RhdGU+DQoJCQkJPHB1cmNoQW1vdW50PjIyMzY1PC9wdXJj
aEFtb3VudD4NCgkJCQk8Y3VycmVuY3k+ODQwPC9jdXJyZW5jeT4NCgkJCQk8ZXhwb25lbnQ+Mjwv
ZXhwb25lbnQ+DQo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