[xmlsec] Verify XML-File

2006-01-31 Thread Jürgen Heiss
Hi, I signed a XML-File with a dummy certificate (using the name Mr. Max. Dummy). The file was signed without any problem. So, the problem is now that I don't know how to get the information about the the certificate signer when I verify the xml File. Is there a way to get the Certificate

RE: [xmlsec] Question about keypairs

2006-02-02 Thread Jürgen Heiss
Well this is what I try to do, but I seem to doesn't work ;o( keyPair = xmlSecKeyGenerate(xmlSecKeyDataRsaId, 1024, xmlSecKeyDataTypePrivate); -Original Message- From: Aleksey Sanin [mailto:[EMAIL PROTECTED] Sent: Donnerstag, 02. Februar 2006 16:43 To: Jürgen Heiss Cc

RE: [xmlsec] Question about keypairs

2006-02-02 Thread Jürgen Heiss
Hi, I tryed to compile the xmlsec static, it compiles fine, but when I try to link I get the following errors: Do you have some ideas, our can I download the static library from somewhere? Thanks in advance, Jürgen Linking errors Microsoft (R) Program Maintenance Utility Version 7.10.3077

RE: [xmlsec] Question about keypairs

2006-02-02 Thread Jürgen Heiss
To: Jürgen Heiss Cc: xmlsec@aleksey.com Subject: Re: [xmlsec] Question about keypairs libxml2_a.lib(xmlIO.obj) : error LNK2019: unresolved external symbol _gzopen referenced in function _xmlGzfileOpen_real ... You need to link with libgz libxml2_a.lib(encoding.obj) : error LNK2019: unresolved

[xmlsec] Compile xmlsec static

2006-02-03 Thread Jürgen Heiss
Hi Aleksey, so I compiled the lib2xml by myself. After I tried to compile the xmlsec library once (static) But I still got 3 error, can you please tell me what went wrong? Thanks, Jürgen Generating Code... link.exe /nologo /LIBPATH:binaries /LIBPATH:D:\xmlsec1-1.2.9\lib /OPT:NOWIN98

[xmlsec] How to get keys

2006-02-06 Thread Jürgen Heiss
Hi, I tried to create a keypair. I works fine, but how can I write thiskeypair to a file now? Is there dome function for this. short Code xmlSecKeyPtr key = xmlSecKeyGenerate(xmlSecKeyDataRsaId, 512, xmlSecKeyDataTypePermanent);int res = xmlSecKeyIsValid(key);xmlSecKeyDataPtr keydata =

[xmlsec] Static Libraries

2006-02-08 Thread Jürgen Heiss
Hi, Is there someone who compiled the xmlsec library already as static? I need a static version, but I can't build one ;o( PLEASE HELP Thanks Jürgen ___ xmlsec mailing list xmlsec@aleksey.com http://www.aleksey.com/mailman/listinfo/xmlsec

[xmlsec] KeysManager

2006-02-09 Thread Jürgen Heiss
Hi, I wrote a small programm which create a KeyManager and loads PEM Keys from File. Now I whant to save the Keymanger, is this possible? Thanks Jürgen ___ xmlsec mailing list xmlsec@aleksey.com http://www.aleksey.com/mailman/listinfo/xmlsec

[xmlsec] Question about card readers

2006-03-02 Thread Jürgen Heiss
Hi Aleksey, Is there a way to use XMLSec with Chip Card Readers? thanks in advance Jürgen ___ xmlsec mailing list xmlsec@aleksey.com http://www.aleksey.com/mailman/listinfo/xmlsec

[xmlsec] Sign more the one document

2006-04-11 Thread Jürgen Heiss
Hi everbody, I signed a document with xmlSec using an aladdin token. With the help from Ed this works fine. I used the command line tool. Xmlsec sign --crypt mscrpto --output d:\signed.xml d:\template.xml So now my question, is there a way to sign directly more files. For example invoice1 ,

[xmlsec] RE: Sign more the one document

2006-04-12 Thread Jürgen Heiss
Hi Alexsey, How can I make a template with refereces to three files? For examples d:\invoice1.xml, d:\invoice2.xml;d:\invoice 3.xml? Thanks in advance Jürgen ___ xmlsec mailing list xmlsec@aleksey.com http://www.aleksey.com/mailman/listinfo/xmlsec

RE: [xmlsec] Help by References

2006-04-12 Thread Jürgen Heiss
Sorry this was an posting mistake from my side ;o( It look like this. ?xml version=1.0 encoding=UTF-8? dsig:Signature xmlns:dsig=http://www.w3.org/2000/09/xmldsig#; dsig:SignedInfo dsig:CanonicalizationMethod

[xmlsec] How to verify

2006-04-20 Thread Jürgen Heiss
Hi everybody, I sign a xml file, but how somebody can check this signature now if I give him this file? The signatur looks like this. [] dsig:Signature xmlns:dsig=http://www.w3.org/2000/09/xmldsig#; dsig:SignedInfo dsig:CanonicalizationMethod

RE: [xmlsec] How to verify

2006-04-20 Thread Jürgen Heiss
Here is a signed XML file, can you try to verify this? Thanks -Original Message- From: Aleksey Sanin [mailto:[EMAIL PROTECTED] Sent: Donnerstag, 20. April 2006 16:56 To: Jürgen Heiss Cc: xmlsec@aleksey.com Subject: Re: [xmlsec] How to verify I sign a xml file, but how somebody can

[xmlsec] How to get Certificate from signed xml file

2006-05-02 Thread Jürgen Heiss
Hi, How I can get the certificate from a signed xml file and save this vertificate as a file on my local machine? Thanks for any help ___ xmlsec mailing list xmlsec@aleksey.com http://www.aleksey.com/mailman/listinfo/xmlsec

RE: [xmlsec] How to get Certificate from signed xml file

2006-05-03 Thread Jürgen Heiss
-Original Message- From: Aleksey Sanin [mailto:[EMAIL PROTECTED] Sent: Dienstag, 02. Mai 2006 17:45 To: Jürgen Heiss Cc: xmlsec@aleksey.com Subject: Re: [xmlsec] How to get Certificate from signed xml file Well i find my certificate, but how to export now? I believe you found

[xmlsec] Question about Revokeliste

2006-05-22 Thread Jürgen Heiss
Hi, Can someone please tell my how the check I certificate with the revolke Liste? How I have to load the Revoke List and how to check? Is there maybe an example? thanks ___ xmlsec mailing list xmlsec@aleksey.com

RE: [xmlsec] Question about Revokeliste

2006-05-23 Thread Jürgen Heiss
Hi Alexsey, I'm using MsCrypto Api. But I still have problems to load the crl ;o( -Original Message- From: Aleksey Sanin [mailto:[EMAIL PROTECTED] Sent: Dienstag, 23. Mai 2006 03:41 To: Jürgen Heiss Cc: xmlsec@aleksey.com Subject: Re: [xmlsec] Question about Revokeliste Aleksey

[xmlsec] Need urgent help for verify

2006-05-31 Thread Jürgen Heiss
Hi, I use the following code to verify a signed file. The problem is now, the xmlSecDSigCtxVerify crahses if the certificate isn't installed on my machine!?! How can I check this file? Can I excract the certificate and load it into a xmlSecKeysMngrPtr? thanks for any help. some code

[xmlsec] RE: Need urgent help for verify

2006-05-31 Thread Jürgen Heiss
Does really now one have any idea? Hi, I use the following code to verify a signed file. The problem is now, the xmlSecDSigCtxVerify crahses if the certificate isn't installed on my machine!?! How can I check this file? Can I excract the certificate and load it into a xmlSecKeysMngrPtr?

RE: [xmlsec] RE: Need urgent help for verify

2006-06-01 Thread Jürgen Heiss
? Where is this in the API ? in the Ctx ? - Original Message From: Aleksey Sanin [EMAIL PROTECTED] To: [EMAIL PROTECTED] Cc: Jürgen Heiss [EMAIL PROTECTED]; xmlsec@aleksey.com Sent: Wednesday, May 31, 2006 2:31:14 PM Subject: Re: [xmlsec] RE: Need urgent help for verify Does

RE: [xmlsec] RE: Need urgent help for verify

2006-06-01 Thread Jürgen Heiss
the document was signed. Thanks Jürgen -Original Message- From: Edward Shallow [mailto:[EMAIL PROTECTED] Sent: Donnerstag, 01. Juni 2006 12:30 To: Jürgen Heiss; 'Aleksey Sanin'; xmlsec@aleksey.com Subject: RE: [xmlsec] RE: Need urgent help for verify What do you mean the document

RE: [xmlsec] RE: Need urgent help for verify

2006-06-02 Thread Jürgen Heiss
Hi, Is there a way to load a PCCERT_CONTEXT into the KeyManager? For example something like. xmlSecPtrListAdd( PCCERT_CONTEXT,)? Thanks Jürgen ___ xmlsec mailing list xmlsec@aleksey.com http://www.aleksey.com/mailman/listinfo/xmlsec

RE: [xmlsec] RE: Need urgent help for verify

2006-06-02 Thread Jürgen Heiss
-Original Message- From: Jürgen Heiss Sent: Freitag, 02. Juni 2006 11:26 To: 'xmlsec@aleksey.com' Subject: RE: [xmlsec] RE: Need urgent help for verify Hi, Is there a way to load a PCCERT_CONTEXT into the KeyManager? For example something like. xmlSecPtrListAdd( PCCERT_CONTEXT

RE: [xmlsec] Trouble by verification

2006-08-23 Thread Jürgen Heiss
Its not directly an error msg ;o( The problem is that I get an dsig.signKey but the datalist from the signkey is empty! If I remove the blue lines it works! Any idea? -Original Message- From: Aleksey Sanin [mailto:[EMAIL PROTECTED] Sent: Mittwoch, 23. August 2006 17:02 To: Jürgen Heiss

RE: [xmlsec] Trouble by verification

2006-08-24 Thread Jürgen Heiss
17:35 To: Jürgen Heiss Cc: xmlsec@aleksey.com Subject: Re: [xmlsec] Trouble by verification There should be an error reported. Can you put a breakpoint in the xmlSecError() function? Can you try to verify the file using xmlsec command line tool? Aleksey Jürgen Heiss wrote: Its not directly

RE: [xmlsec] Trouble by verification

2006-08-24 Thread Jürgen Heiss
How is the command for the command line tool? Xmlsec --verify filename -Original Message- From: Aleksey Sanin [mailto:[EMAIL PROTECTED] Sent: Donnerstag, 24. August 2006 17:17 To: Jürgen Heiss Cc: xmlsec@aleksey.com Subject: Re: [xmlsec] Trouble by verification Note

RE: [xmlsec] Trouble by verification

2006-08-25 Thread Jürgen Heiss
Is there a way to get the certificate using the commandline tool? -Original Message- From: Jürgen Heiss Sent: Freitag, 25. August 2006 08:48 To: 'Aleksey Sanin' Cc: xmlsec@aleksey.com Subject: RE: [xmlsec] Trouble by verification Hi Aleksey, Well with the commandline tool it works

[xmlsec] KeyValue by MsCrypto

2006-08-25 Thread Jürgen Heiss
I sign my File by using an template. I till now works fine with mscrypto. But when I try to verify the files with openSSL. I got an Error. After debugging I found out that the problems are some missing tags. dsig:KeyValue dsig:RSAKeyValue

RE: [xmlsec] KeyValue by MsCrypto

2006-08-28 Thread Jürgen Heiss
, 25. August 2006 16:59 To: Jürgen Heiss Cc: xmlsec@aleksey.com Subject: Re: [xmlsec] KeyValue by MsCrypto So, I believe that openssl can not verify it because the KeyValue is empty... Thus, the question is: why mscrypto does not want to write public key info into the document?. Do you have any

RE: [xmlsec] KeyValue by MsCrypto

2006-08-28 Thread Jürgen Heiss
I sign like you using --pkcs12 I my pkcs12 File. But still it doen't work ;o( -Original Message- From: Aleksey Sanin [mailto:[EMAIL PROTECTED] Sent: Montag, 28. August 2006 08:56 To: Jürgen Heiss Cc: xmlsec@aleksey.com Subject: Re: [xmlsec] KeyValue by MsCrypto No, I didn't get any

[xmlsec] Need urgend help -- sign with mscrypto

2006-09-01 Thread Jürgen Heiss
Hi, I tried really everthing, but I can't sing this XML-File. The file will be signed but the Keyvalue Tags ARE EMPTY! I use the commandline tool: xmlsec --sign --crypto mscrypt template.xml Please give me a helping hand Thnkas jürgen Dummy.pfx Description: Dummy.pfx ?xml version=1.0

[xmlsec] Help by signing

2006-09-04 Thread Jürgen Heiss
Hi, I sign an xml template like. xmlsec --sign --crypto mscrypto --pkcs12 c:\cert.p12 --pwd sectret c:\template.xml This works fine ;o) but how can I sign an XMl file if I don't have the certifiacte as file? I mean if the Certifiacte is in the windows registry or if the cert file is on

RE: [xmlsec] Problems to verify with openssl

2006-09-05 Thread Jürgen Heiss
If its like this, why its works under mscrypto? -Original Message- From: Aleksey Sanin [mailto:[EMAIL PROTECTED] Sent: Dienstag, 05. September 2006 16:29 To: Jürgen Heiss Cc: xmlsec@aleksey.com Subject: Re: [xmlsec] Problems to verify with openssl func

[xmlsec] (no subject)

2006-09-06 Thread Jürgen Heiss
Hi, this is a signed file, which has a Keyvalue tag. When I try to verify this file the datalist is empty. But the certificate exists in the signed file how can i access the certificate? Any ideas? key = dsigCtx.signKey;size = xmlSecPtrListGetSize(key-dataList);sdata =

[xmlsec] need help get cert in memory

2006-09-06 Thread Jürgen Heiss
node = xmlSecFindNode(xmlDocGetRootElement(doc), "X509Certificate", xmlSecDSigNs);strcpy(certbase64, node-children-content); // so if I save certbase64 to a file like xxx.cer it will be a valid certifcate. Me question is now how can I get acces into the xmlsec on this certficate. like

RE: [xmlsec] (no subject)

2006-09-07 Thread Jürgen Heiss
How can I turn off Keyname lookups? -Original Message- From: Aleksey Sanin [mailto:[EMAIL PROTECTED] Sent: Mittwoch, 06. September 2006 17:32 To: Jürgen Heiss Cc: xmlsec@aleksey.com Subject: Re: [xmlsec] (no subject) Most likely, xmlsec finds the key in the KeyManager by the key name

RE: [xmlsec] (no subject)

2006-09-07 Thread Jürgen Heiss
Can you give me please a short example? Thanks Jürgen -Original Message- From: Aleksey Sanin [mailto:[EMAIL PROTECTED] Sent: Donnerstag, 07. September 2006 09:24 To: Jürgen Heiss Cc: xmlsec@aleksey.com Subject: Re: [xmlsec] (no subject) Search xmlsec command line utility sources

[xmlsec] Pin Caching

2006-10-09 Thread Jürgen Heiss
Hi, I'm using a ReinerSct Card Reader to sign my files. This Card reader use PinCaching. This means if I want to sign 3 files I only need totype in the PinCount and the PIN one time on the CardReader. do { if(xmlSecDSigCtxInitialize(dsigCtx, gKeysMngr) 0) {fprintf(stderr, "Error:

RE: [xmlsec] problems by xmlSecKeysMngrFindKey

2006-10-10 Thread Jürgen Heiss
I forgot to tell that I'm using mscrypto. From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Jürgen HeissSent: Dienstag, 10. Oktober 2006 11:06To: xmlsec@aleksey.comSubject: [xmlsec] problems by xmlSecKeysMngrFindKey I try to Find a Key but it always returns Null.

RE: [xmlsec] problems by xmlSecKeysMngrFindKey

2006-10-10 Thread Jürgen Heiss
pInit(NULL);xmlSecCryptoInit(); Also, do you get any error messages anywhere? Or the key is simply not found?Wouter On 10/10/06, Jürgen Heiss [EMAIL PROTECTED] wrote: I forgot to tell that I'm using mscrypto. From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] On Behalf

[xmlsec] Support for ecdsa-sha1

2007-02-28 Thread Jürgen Heiss
Hi Alex, Does the xmlsec Library support the the 'ecdsa-sha1' Signature Algorithm? I'm using mscrypto but I didn't find a way the verify a xml File which was signed with the 'ecdsa-sha1' algorithm. Thanks in advance and best regards Jürgen ___

RE: [xmlsec] Support for ecdsa-sha1

2007-02-28 Thread Jürgen Heiss
Hi Alex, Hmm, can you please tell me what I need to implant such an algorithm? Thanks Jürgen -Original Message- From: Aleksey Sanin [mailto:[EMAIL PROTECTED] Sent: Donnerstag, 01. März 2007 01:56 To: Jürgen Heiss Cc: xmlsec@aleksey.com Subject: Re: [xmlsec] Support for ecdsa-sha1

[xmlsec] Question about Card readers and token

2007-03-09 Thread Jürgen Heiss
Hi Aleksey, I have one more question about card readers and token. In the moment i use msCrypto to sign my XMl files. I simply set the dsig:keyName and the mscrypto takes the correct certificate. No matter if the certificate is on a chip card or an a token everything works fine. No I want to

[xmlsec] Troubles with xPointer

2007-03-12 Thread Jürgen Heiss
Hi, Something doesn't work with the xPointer. This is a part of my xmlfile. dsig:Reference Id=etsi-data-reference-0-1172582018-20293312-702 Type=http://uri.etsi.org/01903/v1.1.1#SignedProperties http://uri.etsi.org/01903/v1.1.1#SignedProperties

RE: [xmlsec] Problem with xpointer

2007-03-12 Thread Jürgen Heiss
Of course ;o) -Original Message- From: Aleksey Sanin [mailto:[EMAIL PROTECTED] Sent: Montag, 12. März 2007 16:39 To: Jürgen Heiss Cc: xmlsec@aleksey.com Subject: Re: [xmlsec] Problem with xpointer Did you setup ID attributes properly? http://www.aleksey.com/xmlsec/faq.html Aleksey

[xmlsec] Static compile

2007-03-20 Thread Jürgen Heiss
Hi Aleksey, Hi, I compiled libxml2, libxslt, xmlsec, and the openssl crypto Libary as Multithread Dll and static. This works fine, but when I try to load the library into my application I got the following link errors. xmlsec.obj : error LNK2001: unresolved external symbol __imp__xmlFree

RE: [xmlsec] Static compile

2007-03-20 Thread Jürgen Heiss
I made this defines! -Original Message- From: Aleksey Sanin [mailto:[EMAIL PROTECTED] Sent: Dienstag, 20. März 2007 15:42 To: Jürgen Heiss Cc: xmlsec@aleksey.com Subject: Re: [xmlsec] Static compile https://www.aleksey.com/xmlsec/api/xmlsec-notes-compiling-windows.html #define