You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@santuario.apache.org by Nedelcho Stanev <de...@gmx.co.uk> on 2004/05/22 20:41:21 UTC
XML Signature
Hello all,
where i can find example for signature with priv/pub keys?
in distribution ( xml-security-c-1.1.0 ) there are example
for validating of signature with certificate but example
for signing is with hmac keys.
there are classes for this but if there are some example
this will spend time :)
decho
Re: XML Signature
Posted by Berin Lautenbach <be...@wingsofhermes.org>.
Decho,
Cool! I'm at a conference until Thursday, but I'll see if I can't
integrate into the samples.
Thanks!
Cheers,
Berin
> Hello,
>
> I tried to fix the situation :)
> so i attach 2 files - simpleRSASign.cpp and simpleRSAValidate.cpp
> and 2 projects simpleRSASign.vcproj and simpleRSAValidate.vcproj and
> makefile.in for unix platform
> cpp files must be in xml-security-root\src\samples
> and visual c project files must be in
> xml-security-root\Projects\Samples\simpleRSASign
> for simpleRSASign.vcproj and
> xml-security-root\Projects\Samples\simpleRSAValidate
> for simpleRSAValidate.vcproj.
> makefile.in must be also in xml-security-root\src\samples
> where xml-security-root is directory where xml-security package is
> installed.
>
> This is a example how to sign document from memory with RSA keys
> and to validate signed document.
> If this is not for distribution, at least can help to someone like me
> who looking about code for this.
>
> regards,
> decho
>
> ----- Original Message -----
> From: "Berin Lautenbach" <be...@wingsofhermes.org>
> To: <se...@xml.apache.org>
> Sent: Sunday, May 23, 2004 12:39 AM
> Subject: Re: XML Signature
>
>
>> Decho,
>>
>> We probably do need to put some sample code in place for this.
>> However have a look in templatesign.cpp, that has some code in place
>> for loading RSA/DSA keys and using them to sign.
>>
>> Cheers,
>> Berin
>>
>>
>> Nedelcho Stanev wrote:
>>
>> > Hello all,
>> >
>> > where i can find example for signature with priv/pub keys?
>> > in distribution ( xml-security-c-1.1.0 ) there are example
>> > for validating of signature with certificate but example
>> > for signing is with hmac keys.
>> > there are classes for this but if there are some example
>> > this will spend time :)
>> >
>> > decho
Re: XML Signature
Posted by Nedelcho Stanev <de...@gmx.co.uk>.
Hello,
I tried to fix the situation :)
so i attach 2 files - simpleRSASign.cpp and simpleRSAValidate.cpp
and 2 projects simpleRSASign.vcproj and simpleRSAValidate.vcproj and
makefile.in for unix platform
cpp files must be in xml-security-root\src\samples
and visual c project files must be in
xml-security-root\Projects\Samples\simpleRSASign
for simpleRSASign.vcproj and
xml-security-root\Projects\Samples\simpleRSAValidate
for simpleRSAValidate.vcproj.
makefile.in must be also in xml-security-root\src\samples
where xml-security-root is directory where xml-security package is
installed.
This is a example how to sign document from memory with RSA keys
and to validate signed document.
If this is not for distribution, at least can help to someone like me
who looking about code for this.
regards,
decho
----- Original Message -----
From: "Berin Lautenbach" <be...@wingsofhermes.org>
To: <se...@xml.apache.org>
Sent: Sunday, May 23, 2004 12:39 AM
Subject: Re: XML Signature
> Decho,
>
> We probably do need to put some sample code in place for this. However
> have a look in templatesign.cpp, that has some code in place for loading
> RSA/DSA keys and using them to sign.
>
> Cheers,
> Berin
>
>
> Nedelcho Stanev wrote:
>
> > Hello all,
> >
> > where i can find example for signature with priv/pub keys?
> > in distribution ( xml-security-c-1.1.0 ) there are example
> > for validating of signature with certificate but example
> > for signing is with hmac keys.
> > there are classes for this but if there are some example
> > this will spend time :)
> >
> > decho
>
Re: XML Signature
Posted by Nedelcho Stanev <de...@gmx.co.uk>.
Hello,
10x for answer Berin.
I will try :) if i found some problems will ask again.
regards,
decho
----- Original Message -----
From: "Berin Lautenbach" <be...@wingsofhermes.org>
To: <se...@xml.apache.org>
Sent: Sunday, May 23, 2004 12:39 AM
Subject: Re: XML Signature
> Decho,
>
> We probably do need to put some sample code in place for this. However
> have a look in templatesign.cpp, that has some code in place for loading
> RSA/DSA keys and using them to sign.
>
> Cheers,
> Berin
>
[snip]
Re: XML Signature
Posted by Nedelcho Stanev <de...@gmx.co.uk>.
Hello,
This is my obsolete email. Yep i got templatesign example worked.
and after this i send second email with rsasign/validate examples.
thanks berin.
regards,
decho
----- Original Message -----
From: "Berin Lautenbach" <be...@wingsofhermes.org>
To: <se...@xml.apache.org>
Sent: Monday, May 24, 2004 6:21 AM
Subject: Re: XML Signature
> I think you got this worked out? Just in case, you can take any full
> signature and re-use as input into templatesign.
>
> I posted an HMAC example to the list some time back - you might want to do
> a search on eyebrowse ( http://nagoya.apache.org/eyebrowse )
>
> Cheers,
> Berin
>
>
> > Hello again,
> >
> > Looking on this example - templatesign.
> > where i can find example template?
> > when i try to sign some mine xml , i got error
> > where we looking for <Signature> tag.
> >
> > regards,
> > decho
> >
> > ----- Original Message -----
> > From: "Berin Lautenbach" <be...@wingsofhermes.org>
> > To: <se...@xml.apache.org>
> > Sent: Sunday, May 23, 2004 12:39 AM
> > Subject: Re: XML Signature
> >
> >
> >> Decho,
> >>
> >> We probably do need to put some sample code in place for this.
> >> However have a look in templatesign.cpp, that has some code in place
> >> for loading RSA/DSA keys and using them to sign.
> >>
> >> Cheers,
> >> Berin
>
>
>
Re: XML Signature
Posted by Berin Lautenbach <be...@wingsofhermes.org>.
I think you got this worked out? Just in case, you can take any full
signature and re-use as input into templatesign.
I posted an HMAC example to the list some time back - you might want to do
a search on eyebrowse ( http://nagoya.apache.org/eyebrowse )
Cheers,
Berin
> Hello again,
>
> Looking on this example - templatesign.
> where i can find example template?
> when i try to sign some mine xml , i got error
> where we looking for <Signature> tag.
>
> regards,
> decho
>
> ----- Original Message -----
> From: "Berin Lautenbach" <be...@wingsofhermes.org>
> To: <se...@xml.apache.org>
> Sent: Sunday, May 23, 2004 12:39 AM
> Subject: Re: XML Signature
>
>
>> Decho,
>>
>> We probably do need to put some sample code in place for this.
>> However have a look in templatesign.cpp, that has some code in place
>> for loading RSA/DSA keys and using them to sign.
>>
>> Cheers,
>> Berin
Re: XML Signature
Posted by Nedelcho Stanev <de...@gmx.co.uk>.
Hello again,
Looking on this example - templatesign.
where i can find example template?
when i try to sign some mine xml , i got error
where we looking for <Signature> tag.
regards,
decho
----- Original Message -----
From: "Berin Lautenbach" <be...@wingsofhermes.org>
To: <se...@xml.apache.org>
Sent: Sunday, May 23, 2004 12:39 AM
Subject: Re: XML Signature
> Decho,
>
> We probably do need to put some sample code in place for this. However
> have a look in templatesign.cpp, that has some code in place for loading
> RSA/DSA keys and using them to sign.
>
> Cheers,
> Berin
Re: XML Signature
Posted by Berin Lautenbach <be...@wingsofhermes.org>.
Decho,
We probably do need to put some sample code in place for this. However
have a look in templatesign.cpp, that has some code in place for loading
RSA/DSA keys and using them to sign.
Cheers,
Berin
Nedelcho Stanev wrote:
> Hello all,
>
> where i can find example for signature with priv/pub keys?
> in distribution ( xml-security-c-1.1.0 ) there are example
> for validating of signature with certificate but example
> for signing is with hmac keys.
> there are classes for this but if there are some example
> this will spend time :)
>
> decho