Timestamp and signature problems

Hello, everybody!
I have a problem when attaching a timestamp to a signature using the BouncyCastle provider.
I have read the [RFC 3161|http://www.ietf.org/rfc/rfc3161.txt] and in chapter 2.4.1 it states that the messageImprint contained in the request "SHOULD contain the hash of the datum to be time-stamped."
Also, in the appendix A of the same RFC, it's stated: "The value of messageImprint field within TimeStampToken shall be a hash of the value of signature field within SignerInfo for the signedData being time-stamped."
My problem is as follows:
I'm creating a request generator, using TimeStampRequestGenerator class in the org.bouncycastle.tsp package of the BouncyCastle provider. Then the request is created using the generate method of the TimeStampRequestGenerator object
TimeStampRequestGenerator reqGen = new TimeStampRequestGenerator();
reqGen.setCertReq (true);
TimeStampRequest request = reqGen.generate(TSPAlgorithms.SHA1, hash, BigInteger.valueOf(100));Please, be aware that the hash variable is generic. But what value must this variable have? The value of the a hash function for the unsigned data or the value of a hash function for the signature field in the SignerInfo? What is the right way to build the request?
The request should be build using the hash of the unsigned data? Then, after generating the pkcs7 file with the timestamped attached as an unsigned attribute, when a verification is performed, should I verify that the value in the messageImprint has the same value with the hash of the signature field in the SignerInfo? If so, it means I'm doingsomething wrong,because those values cannot be equal at all.
Or the request should be built using the hash of the signature. And when the verification is performed, the messageImprint will contain the correct value, as stated in the Appendix A of the RFC3161?
So my problem is what value must be passed for the hash when building the request?
Any help qould be appreciated.
Thank you!

problem solved
I had interpreting in the wrong way the RFC3161 that states that if adding the timestamp to a signature in a pkcs7 file the hash that needs to be sent to the TSA must be the hash of the signature field in the SignerInfo of the data.
Which is correct if I stay a little bit to think because the timestamp is for the signature, not for the unsigned data.
So, when creating the request for the TSA, the hash has to be the the hash for the signature.

Similar Messages

  • Itunes not workin and the problem displays - m signature:   Problem Event Name:     BEX   Application Name:     iTunes.exe   Application Version:     10.5.3.3   Application Timestamp:     4f14cc3d   Fault Module Name:     QuickTime.qts_unloaded   Fault Mo

    i tunes not working and the problem its displaying is
      m signature:
      Problem Event Name:    BEX
      Application Name:    iTunes.exe
      Application Version:    10.5.3.3
      Application Timestamp:    4f14cc3d
      Fault Module Name:    QuickTime.qts_unloaded
      Fault Module Version:    0.0.0.0
      Fault Module Timestamp:    4cf45322
      Exception Offset:    706e1040
      Exception Code:    c0000005
      Exception Data:    00000008
      OS Version:    6.1.7601.2.1.0.256.1
      Locale ID:    1033
      Additional Information 1:    0a9e
      Additional Information 2:    0a9e372d3b4ad19135b953a78882e789
      Additional Information 3:    0a9e
      Additional Information 4:    0a9e372d3b4ad19135b953a78882e789
    Read our privacy statement online:
      http://go.microsoft.com/fwlink/?linkid=104288&clcid=0x0409
    If the online privacy statement is not available, please read our privacy statement offline:
      C:\Windows\system32\en-US\erofflps.txt
      please help.

    im having this problem to ive uninstalled and installed but this still comes up!!
    Problem signature:
      Problem Event Name:    BEX
      Application Name:    iTunes.exe
      Application Version:    10.7.0.21
      Application Timestamp:    504d85d9
      Fault Module Name:    StackHash_0a9e
      Fault Module Version:    0.0.0.0
      Fault Module Timestamp:    00000000
      Exception Offset:    00000000
      Exception Code:    c0000005
      Exception Data:    00000008
      OS Version:    6.1.7601.2.1.0.768.3
      Locale ID:    5129
      Additional Information 1:    0a9e
      Additional Information 2:    0a9e372d3b4ad19135b953a78882e789
      Additional Information 3:    0a9e
      Additional Information 4:    0a9e372d3b4ad19135b953a78882e789

  • My system is crashing and vies the following:  Problem signature:   Problem Event Name:     APPCRASH   Application Name:     Acrobat.exe   Application Version:     11.0.10.32   Application Timestamp:     547e97af   Fault Module Name:     Accessibility.api

    My system is crashing
    Problem signature:
      Problem Event Name: APPCRASH
      Application Name: Acrobat.exe
      Application Version: 11.0.10.32
      Application Timestamp: 547e97af
      Fault Module Name: Accessibility.api
      Fault Module Version: 11.0.10.32
      Fault Module Timestamp: 547e9587
      Exception Code: c0000005
      Exception Offset: 00038776
      OS Version: 6.1.7601.2.1.0.256.48
      Locale ID: 1033
      Additional Information 1: 0a9e
      Additional Information 2: 0a9e372d3b4ad19135b953a78882e789
      Additional Information 3: 0a9e
      Additional Information 4: 0a9e372d3b4ad19135b953a78882e789
    Read our privacy statement online:
      http://go.microsoft.com/fwlink/?linkid=104288&clcid=0x0409
    If the online privacy statement is not available, please read our privacy statement offline:
      C:\Windows\system32\en-US\erofflps.txt

    Hi Sue,
    Does this happen with any particular file or all files?
    Since the crash report above mentions accessibility.api, so are you working on any related function like adding tags etc. when Acrobat crashes?
    Disable all the 3rd party services working in the background and check.
    Regards,
    Rave

  • I upgraded i tunes and it crashed...in winows 32 bit ista home premimum and error is ...Problem signature:   Problem Event Name:     APPCRASH   Application Name:     iTunes.exe   Application Version:     11.1.4.62   Application Timestamp:     52ddbf7a   F

    i m using window vista32 after itunes upgrade.. itunes crash ..
    Problem signature:
      Problem Event Name:          APPCRASH
      Application Name:          iTunes.exe
      Application Version:          11.1.4.62
      Application Timestamp:          52ddbf7a
      Fault Module Name:          ntdll.dll
      Fault Module Version:          6.0.6000.16386
      Fault Module Timestamp:          4549bdc9
      Exception Code:          c0000005
      Exception Offset:          00062086
      OS Version:          6.0.6000.2.0.0.768.3
      Locale ID:          16393
      Additional Information 1:          a183
      Additional Information 2:          96f68295953afa2675d1551e001cfa2f
      Additional Information 3:          5630
      Additional Information 4:          5482da5e28e2dc79b1d40bd90d8c9b

      Fault Module Name:          ntdll.dll
      Fault Module Version:          6.0.6000.16386
    Even if you don't have any third-party plug-ins or add-ons, try opening iTunes in safe mode as per the instructions in the following document:
    iTunes: Troubleshooting issues with third-party iTunes plug-ins
    If iTunes opens in safe mode, quit iTunes and then try launching it again normally. Does it launch without the error messages this time?

  • My itunes will not work and this is the error message. Problem signature:   Problem Event Name:     BEX   Application Name:     iTunes.exe   Application Version:     11.0.1.12   Application Timestamp:     50c8fc7e   Fault Module Name:     QuickTime.qts_un

    Problem signature:
      Problem Event Name:          BEX
      Application Name:          iTunes.exe
      Application Version:          11.0.1.12
      Application Timestamp:          50c8fc7e
      Fault Module Name:          QuickTime.qts_unloaded
      Fault Module Version:          0.0.0.0
      Fault Module Timestamp:          4ea5d609
      Exception Offset:          653f1040
      Exception Code:          c0000005
      Exception Data:          00000008
      OS Version:          6.1.7601.2.1.0.768.3
      Locale ID:          1033
      Additional Information 1:          0a9e
      Additional Information 2:          0a9e372d3b4ad19135b953a78882e789
      Additional Information 3:          0a9e
      Additional Information 4:          0a9e372d3b4ad19135b953a78882e789

    I am encountering the same thing as I am trying to restore my iPhone. How to fix this? I tried repairing iTunes. Still having the issue.

  • Problem signature:   Problem Event Name:     BEX   Application Name:     iTunes.exe   Application Version:     10.3.1.55   Application Timestamp:     4deec351   Fault Module Name:     MSVCR80.dll_unloaded   Fault Module Version:     0.0.0.0   Fault Module

    Installed itunes for 64 bit windows 7 as instructed.
    Installation successful, but upon opening itunes, I get this message:
    Problem signature:
      Problem Event Name:    BEX
      Application Name:    iTunes.exe
      Application Version:    10.3.1.55
      Application Timestamp:    4deec351
      Fault Module Name:    MSVCR80.dll_unloaded
      Fault Module Version:    0.0.0.0
      Fault Module Timestamp:    4dcddbf3
      Exception Offset:    72c129e1
      Exception Code:    c0000005
      Exception Data:    00000008
      OS Version:    6.1.7600.2.0.0.768.3
      Locale ID:    1033
      Additional Information 1:    0a9e
      Additional Information 2:    0a9e372d3b4ad19135b953a78882e789
      Additional Information 3:    0a9e
      Additional Information 4:    0a9e372d3b4ad19135b953a78882e789
    Read our privacy statement online:
      http://go.microsoft.com/fwlink/?linkid=104288&clcid=0x0409
    If the online privacy statement is not available, please read our privacy statement offline:
      C:\Windows\system32\en-US\erofflps.txt
    I've uninstalled and installed 3 times and get the same problem.
    Please advise!

    I am encountering the same thing as I am trying to restore my iPhone. How to fix this? I tried repairing iTunes. Still having the issue.

  • Description Faulting Application Path:     C:\Program Files\Safari\Safari.exe  Problem signature Problem Event Name:     APPCRASH Application Name:     Safari.exe Application Version:     5.34.57.2 Application Timestamp:     4f982b5e Fault Module Name:   

    Description
    Faulting Application Path:    C:\Program Files\Safari\Safari.exe
    Problem signature
    Problem Event Name:    APPCRASH
    Application Name:    Safari.exe
    Application Version:    5.34.57.2
    Application Timestamp:    4f982b5e
    Fault Module Name:    KERNELBASE.dll
    Fault Module Version:    6.1.7601.18015
    Fault Module Timestamp:    50b83b16
    Exception Code:    80000003
    Exception Offset:    0003491e
    OS Version:    6.1.7601.2.1.0.256.1
    Locale ID:    1033
    Additional Information 1:    0a9e
    Additional Information 2:    0a9e372d3b4ad19135b953a78882e789
    Additional Information 3:    0a9e
    Additional Information 4:    0a9e372d3b4ad19135b953a78882e789
    Extra information about the problem
    Bucket ID:    3349202712

    im having this problem to ive uninstalled and installed but this still comes up!!
    Problem signature:
      Problem Event Name:    BEX
      Application Name:    iTunes.exe
      Application Version:    10.7.0.21
      Application Timestamp:    504d85d9
      Fault Module Name:    StackHash_0a9e
      Fault Module Version:    0.0.0.0
      Fault Module Timestamp:    00000000
      Exception Offset:    00000000
      Exception Code:    c0000005
      Exception Data:    00000008
      OS Version:    6.1.7601.2.1.0.768.3
      Locale ID:    5129
      Additional Information 1:    0a9e
      Additional Information 2:    0a9e372d3b4ad19135b953a78882e789
      Additional Information 3:    0a9e
      Additional Information 4:    0a9e372d3b4ad19135b953a78882e789

  • CS5 has stopped working pop up everytime when selecting fonts. details:  Problem signature:   Problem Event Name:APPCRASH   Application Name:Illustrator.exe   Application Version:15.1.0.39   Application Timestamp:4d76c9e3   Fault Module Name:CoolType.dll

    Stops responding, etc
    details
    Problem signature:
      Problem Event Name:    APPCRASH
      Application Name:    Illustrator.exe
      Application Version:    15.1.0.39
      Application Timestamp:    4d76c9e3
      Fault Module Name:    CoolType.dll
      Fault Module Version:    5.7.83.9418
      Fault Module Timestamp:    4c296b69
      Exception Code:    c0000005
      Exception Offset:    00021ae1
      OS Version:    6.1.7601.2.1.0.768.3
      Locale ID:    1033
      Additional Information 1:    8e1b
      Additional Information 2:    8e1b636bd3438ac15d03ef1549553b25
      Additional Information 3:    1b31
      Additional Information 4:    1b316dab8b65bf468124c367b4a50e14

    But I am assuming that when I make the installer, the 32-bit Run Time Engine is appened with the installer, as show below
    Since from the picture you can see its including the support installers from '\Program Files (x86)\'
    The application runs queries to fetch data from database in SQL server 2008, and for that I am using a Microsoft SQL Native Client 2008 R2 64 bit ( this is the only version that installs on either PC, even the one on which I developed my LV Application).
    I am not using any driver, only toolkits for reports - and for that I un-checked the "Remove unused polymorphic VI instances" when making the executable, otherwise LV throws up an exception that share variable are not being included.
    Yes I did reboot every time after I ran the installation.
    Still getting the same error.

  • My itunes wount open when i try to open it this message comes up Problem signature:   Problem Event Name:     BEX   Application Name:     iTunes.exe   Application Version:     10.6.3.25   Application Timestamp:     4fd16377   Fault Module Name:     CRYPTU

    when i try to open my Itunes this Message comes up
    Problem signature:
      Problem Event Name:    BEX
      Application Name:    iTunes.exe
      Application Version:    10.6.3.25
      Application Timestamp:    4fd16377
      Fault Module Name:    CRYPTUI.dll_unloaded
      Fault Module Version:    0.0.0.0
      Fault Module Timestamp:    4ce7b847
      Exception Offset:    68221040
      Exception Code:    c0000005
      Exception Data:    00000008
      OS Version:    6.1.7601.2.1.0.768.3
      Locale ID:    5129
      Additional Information 1:    0a9e
      Additional Information 2:    0a9e372d3b4ad19135b953a78882e789
      Additional Information 3:    0a9e
      Additional Information 4:    0a9e372d3b4ad19135b953a78882e789
    Read our privacy statement online:
      http://go.microsoft.com/fwlink/?linkid=104288&clcid=0x0409
    If the online privacy statement is not available, please read our privacy statement offline:
      C:\Windows\system32\en-US\erofflps.txt

    Taken at face value, you're having trouble with a Windows operating system file there.
    Perhaps try an sfc /scannow. For instructions, see the following Microsoft document:
    How to use the System File Checker tool to troubleshoot missing or corrupted system files on Windows Vista or on Windows 7

  • My itunes wont work. I keep getting this Problem signature:   Problem Event Name:     BEX   Application Name:     iTunes.exe   Application Version:     10.7.0.21   Application Timestamp:     504d85d9   Fault Module Name:     QuickTime.qts_unloaded   Fault

    My itunes usnt working. I keep getting this message.
    Problem signature:
      Problem Event Name:          BEX
      Application Name:          iTunes.exe
      Application Version:          10.7.0.21
      Application Timestamp:          504d85d9
      Fault Module Name:          QuickTime.qts_unloaded
      Fault Module Version:          0.0.0.0
      Fault Module Timestamp:          4f8f8a5b
      Exception Offset:          70be1040
      Exception Code:          c0000005
      Exception Data:          00000008
      OS Version:          6.0.6002.2.2.0.768.3
      Locale ID:          1033
      Additional Information 1:          b9b5
      Additional Information 2:          063aa4ebde4a7a45f8c482e6ed282861
      Additional Information 3:          b251
      Additional Information 4:          0639314542445d4694fa87cff3be7aa4

    Fault Module Name:          QuickTime.qts_unloaded
      Fault Module Version:          0.0.0.0
    Try updating your QuickTime player to the most recent version.

  • Problem signature:   Problem Event Name:     BEX   Application Name:     iTunes.exe   Application Version:     11.0.1.12   Application Timestamp:     50c8fc7e   Fault Module Name:     StackHash_0a9e   Fault Module Version:     0.0.0.0   Fault Module Times

    ITunes app crashed after startup with following errors.
    Problem signature:
      Problem Event Name:                        BEX
      Application Name:                             iTunes.exe
      Application Version:                           11.0.1.12
      Application Timestamp:                     50c8fc7e
      Fault Module Name:                          StackHash_0a9e
      Fault Module Version:                        0.0.0.0
      Fault Module Timestamp:                  00000000
      Exception Offset:                                00000000
      Exception Code:                                  c0000005
      Exception Data:                                   00000008
      OS Version:                                          6.1.7601.2.1.0.256.4
      Locale ID:                                             1033
      Additional Information 1:                  0a9e
      Additional Information 2:                  0a9e372d3b4ad19135b953a78882e789
      Additional Information 3:                  0a9e
      Additional Information 4:                  0a9e372d3b4ad19135b953a78882e789
    Any ideas, tried reinstalling ITunes, no change.

    I am encountering the same thing as I am trying to restore my iPhone. How to fix this? I tried repairing iTunes. Still having the issue.

  • Description: A problem caused this program to stop interacting with Windows. Problem signature: Problem Event Name: AppHangB1 Application Name: firefox.exe Application Version: 1.9.2.3855 Application Timestamp: 4c48d5ce Hang Signature: 9962

    I am having this problem, in the first window when I try to do anything.
    Description:
    A problem caused this program to stop interacting with Windows.
    Problem signature:
    Problem Event Name: AppHangB1
    Application Name: firefox.exe
    Application Version: 1.9.2.3855
    Application Timestamp: 4c48d5ce
    Hang Signature: 9962
    Hang Type: 0
    OS Version: 6.0.6002.2.2.0.768.3
    Locale ID: 1033
    Additional Hang Signature 1: 5df72ce88195c0212c542e9c8c172716
    Additional Hang Signature 2: 2b94
    Additional Hang Signature 3: 9acafbb8ad01bf9d2eb258d8fddad3ca
    Additional Hang Signature 4: 9962
    Additional Hang Signature 5: 5df72ce88195c0212c542e9c8c172716
    Additional Hang Signature 6: 2b94
    Additional Hang Signature 7: 9acafbb8ad01bf9d2eb258d8fddad3ca
    == This happened ==
    Every time Firefox opened
    == User Agent ==
    Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US) AppleWebKit/533.4 (KHTML, like Gecko) Chrome/5.0.375.99 Safari/533.4

    I suspect a RAM or hardware problem.

  • I downloaded the latest version and I get this error when I open it. Problem signature:   Problem Event Name:     InPageError   Error Status Code:     c0000185   Faulting Media Type:     00000003   OS Version:     6.1.7601.2.1.0.768.3. Any clue why or how

    I downloaded the latest version and I get this error when I open it. Problem signature:   Problem Event Name:
    InPageError   Error Status Code:
    c0000185   Faulting Media Type:
    00000003   OS Version:
    6.1.7601.2.1.0.768.3. Any clue why or how to fix?

    InPageError
    That one's consistent with disk/file damage. The first thing I'd try with that is running a disk check (chkdsk) over your C drive.
    XP instructions in the following document: How to perform disk error checking in Windows XP
    Vista instructions in the following document: Check your hard disk for errors
    Windows 7 instructions in the following document: How to use CHKDSK (Check Disk)
    Select both Automatically fix file system errors and Scan for and attempt recovery of bad sectors, or use chkdsk /r (depending on which way you decide to go about doing this). You'll almost certainly have to schedule the chkdsk to run on startup. The scan should take quite a while ... if it quits after a few minutes or seconds, something's interfering with the scan.
    Does the chkdsk find/repair any damage? If so, can you get itunes to launch properly afterwards?

  • We now use Acrobat xi for special active forms we created that include certifications and signature fields, some of the forms are programmed to create other forms, will we have a problem upgrading to DC

    We now use Acrobat xi for special active forms we created that include certifications and signature fields, some of the forms are programmed to create other forms, will we have a problem upgrading to DC
    Our users use a form template to create other adobe forms with calculated fields, signature fields (using digital signatures)
    , and buttons. Will we be able to continue developing these forms if we upgrade to Acrobat DC?

    Hi Alex ,
    In general ,you would not have any issues and problems moving to Acrobat DC .It has a different user interface and with more enhanced features .
    You would be able to develop the kind of forms you are referring to .
    You could refer to the following document to get more information about Acrobat DC .
    FAQ | Adobe Acrobat DC
    If in case you are referring to any particular issue or problem or if you face any regarding Acrobat DC ,we are always here to help you with that .
    Please feel free to write us back .
    Regards
    Sukrit Dhingra

  • Hello friends, my itunes has stopped working. and the problem report stated the following: Fault Module Name:     KERNELBASE.dll   Fault Module Version:     6.1.7601.17514.................. please can anybody help me?hello friends, my itunes has stopped w

    Hello everybody> my itunes has stopped working and the problem report stated the following:
    Problem signature:
      Problem Event Name:    APPCRASH
      Application Name:    iTunes.exe
      Application Version:    10.5.3.3
      Application Timestamp:    4f14cc3d
      Fault Module Name:    KERNELBASE.dll
      Fault Module Version:    6.1.7601.17514
      Fault Module Timestamp:    4ce7b8f0
      Exception Code:    80000003
      Exception Offset:    0003381b
      OS Version:    6.1.7601.2.1.0.256.1
      Locale ID:    1033
      Additional Information 1:    0a9e
      Additional Information 2:    0a9e372d3b4ad19135b953a78882e789
      Additional Information 3:    0a9e
      Additional Information 4:    0a9e372d3b4ad19135b953a78882e789
    can anybody help me?

    Are you seeing a similar message when launching QuickTime Player?
    What security software is installed on the computer? Have you tried testing in an admin account or after uninstalling tthe security software?
    Use one of the following articles to guide you through removing iTunes and the related QuickTime files.
    Removing and Reinstalling iTunes, QuickTime, and other software components for Windows XP
    Removing and reinstalling iTunes, QuickTime, and other software components for Windows Vista or Windows 7

Maybe you are looking for

  • Can no longer see old or saved messages in iphone mail inbox

    I updated my phones software yesterday upon request and now i can no longer see old or saved messages in my inbox.  I can see the n ew ones when they arrive, and this problem is restricted only to the inbox as i can see messages in the junk and sent

  • Powerbook as a dvd drive

    I have a old macintosh G4 tower and one of my two harddrives died, so I need to reinstall OSX on it. problem is I only have OSX install disks that are DVDs and I don't have a dvd driver on the tower. so does anyone know if it would be possible to use

  • Function module for BOM cost

    Hi guys,         Is anybody tell me that, is there any function module to display the cost of the bom, by displaying all the materials with individual cost. Thanks in advance, K. R. Chakradhar

  • UTF8 Conversion error

    The thin driver sometimes gives this error: Fail to convert between UTF8 and UCS2 when accessing Oracle 8i set to UTF8 charset. Is this a known bug? Does anyone know a workaround?

  • Creative Cloud, Photoshop asks for key code

    I am running Creative Cloud on Mac and suddenly photoshop wont let me log in, it wants an activation code? I upgraded Lightroom and since then I have this problem, other programmes are fine