[xmlsec] (no subject)
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 = (*((dsigCtx).signKey)).dataList; tmp = (xmlSecKeyDataPtr)xmlSecPtrListGetItem(key->dataList, pos);x509 = xmlSecMSCryptoKeyDataX509GetCert(tmp,pos); http://www.w3.org/2000/09/xmldsig#"; xmlns:eb="http://www.ebinterface.at/schema/2p0/"; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; xsi:schemaLocation="http://www.ebinterface.at/schema/2p0/ http://www.ebinterface.at/schema/2p0/Invoice.xsd";>http://www.w3.org/2000/09/xmldsig#";>http://www.w3.org/2001/10/xml-exc-c14n#"/>http://www.w3.org/2000/09/xmldsig#rsa-sha1"/>http://www.w3.org/2000/09/xmldsig#enveloped-signature"/>http://www.w3.org/2001/10/xml-exc-c14n#"/>http://www.w3.org/2000/09/xmldsig#sha1"/>h9SEnrXYucR7MbDm/8Y6eozke+4=kDMo0A6QWH+x69kRFhcaLXD/FYG2zwBTz1kSJpFtiAMaSiyY5E5TpWQXkhju0SajVl1ho+hn jGGyaL3RR+lYNT+56fpWn0IjmQX4nTXXsBzCuD6PNDMajcfLM47fjL8rN1Xjq+xlmXYeH0lx 7boQKwEaWUuP4XYMG0YdSiz54zU=Public key of certificatewFhWwYRl32Bop5lAO1A/QtlqfB3keVfC5VjF2F78BNuQI5IURQOnQoqDt5upCPr0yCzMNWU2 iwNY6iBrg+XQeqz5IjctP1gDv5LgRnFi2aqABOPOkGQV6CG1M/IfN0w4BxMcCifkYkNdDip6 BLKWD7lSxXgCBxJyZ66ZCFbj1w0=AQABMIIFezCCBGOgAwIBAgICA5MwDQYJKoZIhvcNAQEFBQAwgcwxCzAJBgNVBAYTAkFUMRAwDgYD VQQIEwdBdXN0cmlhMQ8wDQYDVQQHEwZWaWVubmExOjA4BgNVBAoTMUFSR0UgREFURU4gLSB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ARBglghkgBhvhCAQEEBAMCBPAw UQYDVR0gBEowSDBGBggqKAAYAQEBAzA6MDgGCCsGAQUFBwIBFixodHRwOi8vd3d3LmEtY2Vy dC5hdC9jZXJ0aWZpY2F0ZS1wb2xpY3kuaHRtbDA7BglghkgBhvhCAQgELhYsaHR0cDovL3d3 dy5hLWNlcnQuYXQvY2VydGlmaWNhdGUtcG9saWN5Lmh0bWwwNAYJYIZIAYb4QgENBCcWJUEt Q0VSVCBBRFZBTkNFRCBDZXJ0aWZpY2F0aW9uIFNlcnZpY2UwDgYHKigAGAQBAAQDAQH/MA0G CSqGSIb3DQEBBQUAA4IBAQANGWHWLZHDXGJeISXmONePjdLKBay4jOiUzrN+xBeCwX5nwoAz Ogs/F75x1vDE2NTbQ2LLjlXJlTXwTDlZEt05GhHc7Ic6uX99pSrc2iWTyGP+XxnjV4CPB9y0 nOLOHrVcIdrTzfGgEtOSBVm3cO6FCwdFJKhRjf+vW9C7vkFhqFQoO/9lM2YILvFyvoi1jnZG rjEFEbx/Gi9dMZbic/agIThnyCBs4PieIN5bEo0AaOrRC0Lj0/QNrXHh/S85pYsKb1EICz/r pRHwpDZ1kxORCeW9Z13yCadInNdgYtdHLXJi1W50Jl6CFJF89BJDMiXdujw/yFRWk2wEmHn3 NBtnFA-23542006-07-252006-07-25FirmaAnnas SportweltLinzer Str. 12Altheim4950ÖsterreichHerr SebastianATU74589652230ANNAFun & WorkoutHerzog Friedrich Pl.Mauerbach3001A+43 1 970 30[EMAIL PROTECTED]Herr WalterSport & FitnessATU44026601230A001FirmaAnnas SportweltLinzer Str. 12Altheim4950ÖsterreichHerr Sebastian10001Rennrad 26 "100011.0015.6020.00381.51381.5110002Luxus Mountain Bike "oversized"100021.0018.1020.00624.22624.221005.7320.00201.151206.88Die Erste201204789234789Herr Maier2006-08-152006-08-012.0024.142006-08-081.0012.07http://www.funwork.co.atEBIFA100gerRechnungtrueWir erlauben uns wie folgt zu verrechnen.Wir danken für Ihren Auftrag. ___ xmlsec mailing list xmlsec@aleksey.com http://www.aleksey.com/mailman/listinfo/xmlsec
[xmlsec] need help get cert in memory
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 x509 = xmlSecMSCryptoKeyDataX509GetCert(tmp,pos); Is there a way to load the cert from file ___ xmlsec mailing list xmlsec@aleksey.com http://www.aleksey.com/mailman/listinfo/xmlsec
Re: [xmlsec] (no subject)
Most likely, xmlsec finds the key in the KeyManager by the key name. You can disable KeyName lookups though. Aleksey Jürgen Heiss wrote: 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 = (*((dsigCtx).signKey)).dataList; tmp = (xmlSecKeyDataPtr)xmlSecPtrListGetItem(key->dataList, pos); x509 = xmlSecMSCryptoKeyDataX509GetCert(tmp,pos); ___ xmlsec mailing list xmlsec@aleksey.com http://www.aleksey.com/mailman/listinfo/xmlsec
Re: [xmlsec] need help get cert in memory
You can parse KeyInfo node and then itterate through the list of KeyData objects. Look inside xmlsec code for examples. Aleksey Jürgen Heiss wrote: 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 x509 = xmlSecMSCryptoKeyDataX509GetCert(tmp,pos); Is there a way to load the cert from file ___ xmlsec mailing list xmlsec@aleksey.com http://www.aleksey.com/mailman/listinfo/xmlsec ___ xmlsec mailing list xmlsec@aleksey.com http://www.aleksey.com/mailman/listinfo/xmlsec
RE: [xmlsec] (no subject)
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. You can disable KeyName lookups though. Aleksey Jürgen Heiss wrote: > 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 = (*((dsigCtx).signKey)).dataList; > > tmp = (xmlSecKeyDataPtr)xmlSecPtrListGetItem(key->dataList, pos); > x509 = xmlSecMSCryptoKeyDataX509GetCert(tmp,pos); ___ xmlsec mailing list xmlsec@aleksey.com http://www.aleksey.com/mailman/listinfo/xmlsec