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 error! Here are the tmeplate and the signed file. > Maybe I do something wrong. I can sign the file with mscrypto and I get KeyValue using the following command xmlsec.exe --sign --pkcs12 xmlsec/keys/rsakey.p12 --pwd secret template.xml The only idea I have is that for some reasons mscrypto does not give the key value for the key stored on a token. Though, it is strange since this is a public key... Where do you get the key from? Aleksey
<?xml version="1.0" encoding="ISO-8859-1"?> <eb:Invoice xmlns:eb="http://www.ebinterface.at/schema/2p0/" xmlns:dsig="http://www.w3.org/2000/09/xmldsig#" 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" eb:Cancellation="false" eb:GeneratingSystem="MESONIC WINLine 8.4 (Build 1112)"> <dsig:Signature xmlns:dsig="http://www.w3.org/2000/09/xmldsig#"> <dsig:SignedInfo> <dsig:CanonicalizationMethod Algorithm="http://www.w3.org/TR/2001/REC-xml-c14n-20010315"/> <dsig:SignatureMethod Algorithm="http://www.w3.org/2000/09/xmldsig#rsa-sha1"/> <dsig:Reference URI=""> <dsig:Transforms> <dsig:Transform Algorithm="http://www.w3.org/2000/09/xmldsig#enveloped-signature"/> </dsig:Transforms> <dsig:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1"/> <dsig:DigestValue>t9CYi0oPzfZXuVzKKKx/wSaAwj4=</dsig:DigestValue> </dsig:Reference> </dsig:SignedInfo> <dsig:SignatureValue>WxW5734Emf4kpGQWFNOCA9x0djPw6VNYK3NRTALozYrHcVmLqFjnec/a6L5qBZv6 bkW4HF5f34chLREq7DhehES0FETV3t7tXft9GrSMx1SN0WDu53o1UB1yC1XbQz2H E6dRq9bqDO2b+/S+G4pOPkAajChkiAdh3vhVSjOCMdM=</dsig:SignatureValue> <dsig:KeyInfo> <dsig:KeyName>Juergen Heiss, (Test)</dsig:KeyName> <dsig:KeyValue> </dsig:KeyValue> <dsig:X509Data> <X509Certificate xmlns="http://www.w3.org/2000/09/xmldsig#">MIIFezCCBGOgAwIBAgICA5MwDQYJKoZIhvcNAQEFBQAwgcwxCzAJBgNVBAYTAkFU MRAwDgYDVQQIEwdBdXN0cmlhMQ8wDQYDVQQHEwZWaWVubmExOjA4BgNVBAoTMUFS R0UgREFURU4gLSBBdXN0cmlhbiBTb2NpZXR5IGZvciBEYXRhIFByb3RlY3Rpb24x JTAjBgNVBAsTHEEtQ0VSVCBDZXJ0aWZpY2F0aW9uIFNlcnZpY2UxGDAWBgNVBAMT D0EtQ0VSVCBBRFZBTkNFRDEdMBsGCSqGSIb3DQEJARYOaW5mb0BhLWNlcnQuYXQw HhcNMDYwMzI4MDAwMDAwWhcNMDcwMzI4MDAwMDAwWjCBqjELMAkGA1UEBhMCQVQx EjAQBgNVBAcTCU1hdWVyYmFjaDEtMCsGA1UEChMkVGVzdDogTUVTT05JQyBEYXRl bnZlcmFyYmVpdHVuZyBHbWJIMRQwEgYDVQQLEwtEZXZlbG9wbWVudDEfMB0GA1UE AxMWSnVlcmdlbiBIZWlzcywgIChUZXN0KTEhMB8GCSqGSIb3DQEJARYSamhlaXNz QG1lc29uaWMuY29tMIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDAWFbBhGXf YGinmUA7UD9C2Wp8HeR5V8LlWMXYXvwE25AjkhRFA6dCioO3m6kI+vTILMw1ZTaL A1jqIGuD5dB6rPkiNy0/WAO/kuBGcWLZqoAE486QZBXoIbUz8h83TDgHExwKJ+Ri Q10OKnoEspYPuVLFeAIHEnJnrpkIVuPXDQIDAQABo4ICCTCCAgUwDAYDVR0TAQH/ BAIwADAdBgNVHQ4EFgQUfdYGf3dEJccoa1DrTQ0D9VbMIOcwHwYDVR0jBBgwFoAU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oiceDate>2006-05-03</eb:InvoiceDate> <eb:Delivery> <eb:Date>2006-05-03</eb:Date> <eb:Address> <eb:Salutation>Firma</eb:Salutation> <eb:Name>Annas Sportwelt</eb:Name> <eb:Street>Linzer Str. 12</eb:Street> <eb:Town>Altheim</eb:Town> <eb:ZIP>4950</eb:ZIP> <eb:Country>Österreich</eb:Country> <eb:Contact>Herr Sebastian</eb:Contact> </eb:Address> </eb:Delivery> <eb:Biller> <eb:VATIdentificationNumber>ATU74589652</eb:VATIdentificationNumber> <eb:InvoiceRecipientsBillerID>230ANNA</eb:InvoiceRecipientsBillerID> <eb:Address> <eb:Name>Fun & Workout</eb:Name> <eb:Street>Herzog Friedrich Pl.</eb:Street> <eb:Town>Mauerbach</eb:Town> <eb:ZIP>3001</eb:ZIP> <eb:Country>A</eb:Country> <eb:Phone>+43 1 970 30</eb:Phone> <eb:Email>[EMAIL PROTECTED]</eb:Email> <eb:Contact>Herr Walter</eb:Contact> <eb:AddressExtension>Sport & Fitness</eb:AddressExtension> </eb:Address> </eb:Biller> <eb:InvoiceRecipient> <eb:VATIdentificationNumber>ATU44026601</eb:VATIdentificationNumber> <eb:BillersInvoiceRecipientID>230A001</eb:BillersInvoiceRecipientID> <eb:Address> <eb:Salutation>Firma</eb:Salutation> <eb:Name>Annas Sportwelt</eb:Name> <eb:Street>Linzer Str. 12</eb:Street> <eb:Town>Altheim</eb:Town> <eb:ZIP>4950</eb:ZIP> <eb:Country>Österreich</eb:Country> <eb:Contact>Herr Sebastian</eb:Contact> </eb:Address> </eb:InvoiceRecipient> <eb:Details> <eb:ItemList eb:ListType="structured"> <eb:ListLineItem> <eb:ListElement eb:Usage="Number" eb:Type="IdentifierType">10001</eb:ListElement> <eb:ListElement eb:Usage="Description" eb:Type="StringType">Rennrad 26 "</eb:ListElement> <eb:ListElement eb:Usage="CustomersArticleNumber" eb:Type="IdentifierType">10001</eb:ListElement> <eb:ListElement eb:Usage="Quantity" eb:Type="DecimalType" eb:Unit="Units">1.00</eb:ListElement> <eb:ListElement eb:Usage="Weight" eb:Type="DecimalType">15.60</eb:ListElement> <eb:ListElement eb:Usage="ReductionRate" eb:Type="DecimalType">-7.85</eb:ListElement> <eb:ListElement eb:Usage="TaxRate" eb:Type="DecimalType">20.00</eb:ListElement> <eb:ListElement eb:Usage="UnitPrice" eb:Type="AmountType" eb:Unit="EUR">381.51</eb:ListElement> <eb:ListElement eb:Usage="Amount" eb:Type="AmountType" eb:Unit="EUR">351.56</eb:ListElement> </eb:ListLineItem> <eb:ListLineItem> <eb:ListElement eb:Usage="Number" eb:Type="IdentifierType">90</eb:ListElement> <eb:ListElement eb:Usage="Description" eb:Type="StringType">Versandkosten</eb:ListElement> <eb:ListElement eb:Usage="CustomersArticleNumber" eb:Type="IdentifierType">90</eb:ListElement> <eb:ListElement eb:Usage="Quantity" eb:Type="DecimalType" eb:Unit="Units">1.00</eb:ListElement> <eb:ListElement eb:Usage="Weight" eb:Type="DecimalType">0.00</eb:ListElement> <eb:ListElement eb:Usage="ReductionRate" eb:Type="DecimalType">-5.00</eb:ListElement> <eb:ListElement eb:Usage="TaxRate" eb:Type="DecimalType">20.00</eb:ListElement> <eb:ListElement eb:Usage="UnitPrice" eb:Type="AmountType" eb:Unit="EUR">0.00</eb:ListElement> <eb:ListElement eb:Usage="Amount" eb:Type="AmountType" eb:Unit="EUR">0.00</eb:ListElement> </eb:ListLineItem> <eb:ListLineItem> <eb:ListElement eb:Usage="Number" eb:Type="IdentifierType">99</eb:ListElement> <eb:ListElement eb:Usage="Description" eb:Type="StringType">Versicherung</eb:ListElement> <eb:ListElement eb:Usage="CustomersArticleNumber" eb:Type="IdentifierType">99</eb:ListElement> <eb:ListElement eb:Usage="Quantity" eb:Type="DecimalType" eb:Unit="Units">1.00</eb:ListElement> <eb:ListElement eb:Usage="Weight" eb:Type="DecimalType">0.00</eb:ListElement> <eb:ListElement eb:Usage="ReductionRate" eb:Type="DecimalType">-5.00</eb:ListElement> <eb:ListElement eb:Usage="TaxRate" eb:Type="DecimalType">20.00</eb:ListElement> <eb:ListElement eb:Usage="UnitPrice" eb:Type="AmountType" eb:Unit="EUR">6.90</eb:ListElement> <eb:ListElement eb:Usage="Amount" eb:Type="AmountType" eb:Unit="EUR">6.55</eb:ListElement> </eb:ListLineItem> </eb:ItemList> </eb:Details> <eb:Tax> <eb:VAT> <eb:Item> <eb:TaxedAmount eb:Currency="EUR">358.11</eb:TaxedAmount> <eb:Percentage>20.00</eb:Percentage> <eb:Amount eb:Currency="EUR">71.62</eb:Amount> </eb:Item> </eb:VAT> </eb:Tax> <eb:TotalGrossAmount eb:Currency="EUR">438.74</eb:TotalGrossAmount> <eb:PaymentMethod xsi:type="eb:UniversalBankTransactionType"> <eb:BeneficiaryAccount> <eb:BankName>Die Erste</eb:BankName> <eb:BankCode eb:BankCodeType="AT">20120</eb:BankCode> <eb:BankAccountNr eb:Currency="EUR">4789234789</eb:BankAccountNr> <eb:BankAccountOwner>Herr Maier</eb:BankAccountOwner> </eb:BeneficiaryAccount> </eb:PaymentMethod> <eb:PaymentConditions> <eb:DueDate>2006-05-24</eb:DueDate> <eb:Discount> <eb:PaymentDate>2006-05-10</eb:PaymentDate> <eb:Percentage>2.00</eb:Percentage> <eb:Amount eb:Currency="EUR">8.77</eb:Amount> </eb:Discount> <eb:Discount> <eb:PaymentDate>2006-05-17</eb:PaymentDate> <eb:Percentage>1.00</eb:Percentage> <eb:Amount eb:Currency="EUR">4.39</eb:Amount> </eb:Discount> </eb:PaymentConditions> <eb:PresentationDetails> <eb:URL>http://www.funwork.co.at</eb:URL> <eb:LayoutID>EBIFA100</eb:LayoutID> <eb:Language>ger</eb:Language> <eb:DocumentTitle>Rechnung</eb:DocumentTitle> <eb:SuppressZero>true</eb:SuppressZero> <eb:HeaderComment>Wir erlauben uns wie folgt zu verrechnen.</eb:HeaderComment> <eb:FooterComment>Wir danken für Ihren Auftrag.</eb:FooterComment> </eb:PresentationDetails> </eb:Invoice>
<?xml version="1.0" encoding="ISO-8859-1"?> <eb:Invoice xmlns:eb="http://www.ebinterface.at/schema/2p0/" xmlns:dsig="http://www.w3.org/2000/09/xmldsig#" 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" eb:Cancellation="false" eb:GeneratingSystem="MESONIC WINLine 8.4 (Build 1112)"> <dsig:Signature xmlns:dsig="http://www.w3.org/2000/09/xmldsig#"> <dsig:SignedInfo> <dsig:CanonicalizationMethod Algorithm="http://www.w3.org/TR/2001/REC-xml-c14n-20010315"/> <dsig:SignatureMethod Algorithm="http://www.w3.org/2000/09/xmldsig#rsa-sha1"/> <dsig:Reference URI=""> <dsig:Transforms> <dsig:Transform Algorithm="http://www.w3.org/2000/09/xmldsig#enveloped-signature"/> </dsig:Transforms> <dsig:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1"/> <dsig:DigestValue></dsig:DigestValue> </dsig:Reference> </dsig:SignedInfo> <dsig:SignatureValue></dsig:SignatureValue> <dsig:KeyInfo> <dsig:KeyName>Juergen Heiss, (Test)</dsig:KeyName> <dsig:KeyValue> </dsig:KeyValue> <dsig:X509Data> </dsig:X509Data> </dsig:KeyInfo> </dsig:Signature> <eb:InvoiceNumber>FA-2336</eb:InvoiceNumber> <eb:InvoiceDate>2006-05-03</eb:InvoiceDate> <eb:Delivery> <eb:Date>2006-05-03</eb:Date> <eb:Address> <eb:Salutation>Firma</eb:Salutation> <eb:Name>Annas Sportwelt</eb:Name> <eb:Street>Linzer Str. 12</eb:Street> <eb:Town>Altheim</eb:Town> <eb:ZIP>4950</eb:ZIP> <eb:Country>Österreich</eb:Country> <eb:Contact>Herr Sebastian</eb:Contact> </eb:Address> </eb:Delivery> <eb:Biller> <eb:VATIdentificationNumber>ATU74589652</eb:VATIdentificationNumber> <eb:InvoiceRecipientsBillerID>230ANNA</eb:InvoiceRecipientsBillerID> <eb:Address> <eb:Name>Fun & Workout</eb:Name> <eb:Street>Herzog Friedrich Pl.</eb:Street> <eb:Town>Mauerbach</eb:Town> <eb:ZIP>3001</eb:ZIP> <eb:Country>A</eb:Country> <eb:Phone>+43 1 970 30</eb:Phone> <eb:Email>[EMAIL PROTECTED]</eb:Email> <eb:Contact>Herr Walter</eb:Contact> <eb:AddressExtension>Sport & Fitness</eb:AddressExtension> </eb:Address> </eb:Biller> <eb:InvoiceRecipient> <eb:VATIdentificationNumber>ATU44026601</eb:VATIdentificationNumber> <eb:BillersInvoiceRecipientID>230A001</eb:BillersInvoiceRecipientID> <eb:Address> <eb:Salutation>Firma</eb:Salutation> <eb:Name>Annas Sportwelt</eb:Name> <eb:Street>Linzer Str. 12</eb:Street> <eb:Town>Altheim</eb:Town> <eb:ZIP>4950</eb:ZIP> <eb:Country>Österreich</eb:Country> <eb:Contact>Herr Sebastian</eb:Contact> </eb:Address> </eb:InvoiceRecipient> <eb:Details> <eb:ItemList eb:ListType="structured"> <eb:ListLineItem> <eb:ListElement eb:Usage="Number" eb:Type="IdentifierType">10001</eb:ListElement> <eb:ListElement eb:Usage="Description" eb:Type="StringType">Rennrad 26 "</eb:ListElement> <eb:ListElement eb:Usage="CustomersArticleNumber" eb:Type="IdentifierType">10001</eb:ListElement> <eb:ListElement eb:Usage="Quantity" eb:Type="DecimalType" eb:Unit="Units">1.00</eb:ListElement> <eb:ListElement eb:Usage="Weight" eb:Type="DecimalType">15.60</eb:ListElement> <eb:ListElement eb:Usage="ReductionRate" eb:Type="DecimalType">-7.85</eb:ListElement> <eb:ListElement eb:Usage="TaxRate" eb:Type="DecimalType">20.00</eb:ListElement> <eb:ListElement eb:Usage="UnitPrice" eb:Type="AmountType" eb:Unit="EUR">381.51</eb:ListElement> <eb:ListElement eb:Usage="Amount" eb:Type="AmountType" eb:Unit="EUR">351.56</eb:ListElement> </eb:ListLineItem> <eb:ListLineItem> <eb:ListElement eb:Usage="Number" eb:Type="IdentifierType">90</eb:ListElement> <eb:ListElement eb:Usage="Description" eb:Type="StringType">Versandkosten</eb:ListElement> <eb:ListElement eb:Usage="CustomersArticleNumber" eb:Type="IdentifierType">90</eb:ListElement> <eb:ListElement eb:Usage="Quantity" eb:Type="DecimalType" eb:Unit="Units">1.00</eb:ListElement> <eb:ListElement eb:Usage="Weight" eb:Type="DecimalType">0.00</eb:ListElement> <eb:ListElement eb:Usage="ReductionRate" eb:Type="DecimalType">-5.00</eb:ListElement> <eb:ListElement eb:Usage="TaxRate" eb:Type="DecimalType">20.00</eb:ListElement> <eb:ListElement eb:Usage="UnitPrice" eb:Type="AmountType" eb:Unit="EUR">0.00</eb:ListElement> <eb:ListElement eb:Usage="Amount" eb:Type="AmountType" eb:Unit="EUR">0.00</eb:ListElement> </eb:ListLineItem> <eb:ListLineItem> <eb:ListElement eb:Usage="Number" eb:Type="IdentifierType">99</eb:ListElement> <eb:ListElement eb:Usage="Description" eb:Type="StringType">Versicherung</eb:ListElement> <eb:ListElement eb:Usage="CustomersArticleNumber" eb:Type="IdentifierType">99</eb:ListElement> <eb:ListElement eb:Usage="Quantity" eb:Type="DecimalType" eb:Unit="Units">1.00</eb:ListElement> <eb:ListElement eb:Usage="Weight" eb:Type="DecimalType">0.00</eb:ListElement> <eb:ListElement eb:Usage="ReductionRate" eb:Type="DecimalType">-5.00</eb:ListElement> <eb:ListElement eb:Usage="TaxRate" eb:Type="DecimalType">20.00</eb:ListElement> <eb:ListElement eb:Usage="UnitPrice" eb:Type="AmountType" eb:Unit="EUR">6.90</eb:ListElement> <eb:ListElement eb:Usage="Amount" eb:Type="AmountType" eb:Unit="EUR">6.55</eb:ListElement> </eb:ListLineItem> </eb:ItemList> </eb:Details> <eb:Tax> <eb:VAT> <eb:Item> <eb:TaxedAmount eb:Currency="EUR">358.11</eb:TaxedAmount> <eb:Percentage>20.00</eb:Percentage> <eb:Amount eb:Currency="EUR">71.62</eb:Amount> </eb:Item> </eb:VAT> </eb:Tax> <eb:TotalGrossAmount eb:Currency="EUR">438.74</eb:TotalGrossAmount> <eb:PaymentMethod xsi:type="eb:UniversalBankTransactionType"> <eb:BeneficiaryAccount> <eb:BankName>Die Erste</eb:BankName> <eb:BankCode eb:BankCodeType="AT">20120</eb:BankCode> <eb:BankAccountNr eb:Currency="EUR">4789234789</eb:BankAccountNr> <eb:BankAccountOwner>Herr Maier</eb:BankAccountOwner> </eb:BeneficiaryAccount> </eb:PaymentMethod> <eb:PaymentConditions> <eb:DueDate>2006-05-24</eb:DueDate> <eb:Discount> <eb:PaymentDate>2006-05-10</eb:PaymentDate> <eb:Percentage>2.00</eb:Percentage> <eb:Amount eb:Currency="EUR">8.77</eb:Amount> </eb:Discount> <eb:Discount> <eb:PaymentDate>2006-05-17</eb:PaymentDate> <eb:Percentage>1.00</eb:Percentage> <eb:Amount eb:Currency="EUR">4.39</eb:Amount> </eb:Discount> </eb:PaymentConditions> <eb:PresentationDetails> <eb:URL>http://www.funwork.co.at</eb:URL> <eb:LayoutID>EBIFA100</eb:LayoutID> <eb:Language>ger</eb:Language> <eb:DocumentTitle>Rechnung</eb:DocumentTitle> <eb:SuppressZero>true</eb:SuppressZero> <eb:HeaderComment>Wir erlauben uns wie folgt zu verrechnen.</eb:HeaderComment> <eb:FooterComment>Wir danken für Ihren Auftrag.</eb:FooterComment> </eb:PresentationDetails> </eb:Invoice>
_______________________________________________ xmlsec mailing list xmlsec@aleksey.com http://www.aleksey.com/mailman/listinfo/xmlsec