Problem while using CryptRetrieveTimeStamp() to timestamp data for TSA RRS feed

  • Question

  • Hi,

    We are developing VC++ application using Crypto APIs for windows 7 OS.

    While using CryptRetrieveTimeStamp() to timestamp data for TSA http://timestamp.verisign.com/scripts/timstamp.dll we get CRYPT_E_ASN1_BADTAG error that is “ASN.1 bad tag value met”.

    However when we use “http://timestamp.comodoca.com/rfc3161”as TSA, CryptRetrieveTimeStamp() API works successfully.

    Appreciate any details on probable cause of failure.



    • Moved by Shu 2017 Friday, June 19, 2015 7:15 AM from VC++ forum
    Thursday, June 18, 2015 5:21 AM

All replies

  • Hi Ajay,

    I move your thread to Application Security for Windows Desktop forum for better support.


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.

    Friday, June 19, 2015 7:14 AM