Thanks you it's good.
Now, i'mlooking up the difference between my sign and the third party sign. I could see my sign have 2 attributes more.
The attributes are :
OID : 1.2.840.113549.1.9.4 (MessageDigest)
OID : 1.2.840.113549.1.9.16.2.16 (?????)

How can i do for this attributes are not include in signature with CMS ?
I use :

Message digest attribute is always added if the signature contains one or more signed attributes. Only unsigned attributes can be added to the signature if you wish to prevent the message digest from being included to it.

The second OID stands for the SB_OID_COMMITMENT_TYPE type. This attribute is not added to the signature, unless you are explicitly setting TElCMSSignature.CommitmentTypeIndication.Included to true.

Your code puts the whole OCSP response to the signature, while the verifying party only seems to expect the internal BasicOCSPResponse structure. Please use the following code to get the basic response and add it as an attribute (writing on the knee, so minor mistakes/typos are legal):

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.