I have some old/new troubles. When I add timestamp, the code is below, I get the same error that before.
Is my timestamp code ok?

This code looks okay.
Could you try to sign your xml document with and without timestamp and compare the difference. If the signed data is the same you should receive the same digest values and signature value. Timestamp object is placed in UnsignedSignatureProperties element that doesn't change a main signature.

Quote

Do you give me warranty that when we buy the SecureBlackBox we will be able to remove SignedSignatureProperties.ID?

The code that allows to change those IDs is already in repository, and will be included in the next version.

However, it will be possible to remove it in next version. But I wouldn't recommend to do this as Id is required for signature timestamp. Timestamp element is referencing signature value (data that will be timestamped) by an Id.

Quote

I set the SignedProperties.ID after Generate and before Sign.

It should be ok to set an Id like this.
With your old code (that you post before) I could sign with or without timestamp and SignedProperties has a correct ID.

The problem is that we have to use specific schemas for creating our signature. They do not allow IDs on elements like SignatureValue and SignedSignatureProperties.Those two schemas are:

[URL=http://www.gzs.si/e-poslovanje/sheme/eSlog_1-5_EnostavniRacun_signature.xsd]Schema for signature[/URL]
[URL=http://www.gzs.si/e-poslovanje/sheme/eSlog_1-5_EnostavniRacun_XAdES.xsd]Schema for XAdES[/URL]

Quote

However, it will be possible to remove it in next version. But I wouldn't recommend to do this as Id is required for signature timestamp. Timestamp element is referencing signature value (data that will be timestamped) by an Id.

After removing ID with new release version, will signing and timestamping still work ok?

[URL=http://www.gzs.si/e-poslovanje/sheme/eSlog_1-5_EnostavniRacun_signature.xsd]Schema[/URL] in our country has no ID for SignatureValue.
In my message I wasn't precise. When I compare xml with timestamp and without timestamp the xml with timestamp has different digestvalue in second reference and SignatureValue ID is added and SignatureValue text is different.
Everything else is the same in both files.

After removing ID with new release version, will signing and timestamping still work ok?

Yes, it will timestamp ok, as internally Id is not used. But you will not be able to verify this timestamp, maybe with some tweaks.
Do you have any sample signature with signature timestamp that follow your schema?

We use cookies to help provide you with the best possible online experience. By using this site, you agree that we may store and access cookies on your device. You can find out more about and set your own preferences here.