Skip to Content.
Sympa Menu

mace-opensaml-users - get error when run signtest.cpp example

Subject: OpenSAML user discussion

List archive

get error when run signtest.cpp example


Chronological Thread 
  • From: hao chen <>
  • To:
  • Subject: get error when run signtest.cpp example
  • Date: Wed, 2 Mar 2005 05:16:14 -0800 (PST)
  • Comment: DomainKeys? See http://antispam.yahoo.com/domainkeys
  • Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; b=ninPpH/8hEpevWMAY2oonA4OOCKSSfnEf/MMAtPwFQxdgXyrW3PJfen9urPRGosIOhsyofypyJhcg2CXvS95qRrugnMCQX9v6/CBvVPf4Fu6wIBKwY+x+pno0k0hIoPqjyX7+6+rXeJB2h9npDuWD2H8bggBBV/YpWV0RtJHx7g= ;

Hi,

I tried to run signtest.cpp example program to sign an
assertion. The assertion I got is from SAML1.1 core
Spec. as the following:
<Assertion
AssertionID="_a75adf55-01d7-40cc-929f-dbd8372ebdfc"
IssueInstant="2003-04-17T00:46:02Z"
Issuer="www.opensaml.org" MajorVersion="1"
MinorVersion="1"
xmlns="urn:oasis:names:tc:SAML:1.0:assertion"
xmlns:xsd="http://www.w3.org/2001/XMLSchema";
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";>

<Conditions NotBefore="2003-04-17T00:46:02Z"
NotOnOrAfter="2005-04-17T00:51:02Z">
<AudienceRestrictionCondition><Audience>http://www.opensaml.org</Audience></AudienceRestrictionCondition>
</Conditions>
<AuthenticationStatement
AuthenticationInstant="2005-03-17T00:46:00Z"
AuthenticationMethod="urn:oasis:names:tc:SAML:1.0:am:password">

<Subject>
<NameIdentifier
Format="urn:oasis:names:tc:SAML:1.1:nameid-format:emailAddress"></NameIdentifier>
<SubjectConfirmation>
<ConfirmationMethod>urn:oasis:names:tc:SAML:1.0:cm:bearer</ConfirmationMethod>
</SubjectConfirmation>
</Subject>
<SubjectLocality IPAddress="127.0.0.1"/>
</AuthenticationStatement>
</Assertion>

When I use it as input for the assertion to be signed
by signtest program, I got the error information as
the following:
caught a SAML exception: <Status
xmlns="urn:oasis:names:tc:SAML:1.0:protocol" xm
lns:samlp="urn:oasis:names:tc:SAML:1.0:protocol"><StatusCode
Value="samlp:Respon
der"/><StatusMessage>XML::Parser detected an error
during parsing: Unknown eleme
nt
'Assertion'</StatusMessage><StatusDetail><ExceptionClass
xmlns="http://www.op
ensaml.org">org.opensaml.MalformedException</ExceptionClass></StatusDetail></Sta
tus>

I think the assertion is a valid assertion, why does
opensaml does not recognize it. Any help is highly
appreciated. It will be excellent if some one provide
me some sample assertions which works with opensaml
signtest program or show me the correct way to run the
signtest program.

thanks!
hao

=====
Best Regard

__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com



Archive powered by MHonArc 2.6.16.

Top of Page