I am looking to find out how to extract the time stamp information (when the file is signed) from p7s file.
I am currently extracting the time stamp through asn1parse and using the string (id-smime-aa-timeStampToken)
The content in my parsed file looks like below.
19120:d=7 hl=2 l= 11 prim: OBJECT :id-smime-aa-timeStampToken
19133:d=7 hl=4 l=2165 cons: SET
19137:d=8 hl=4 l=2161 cons: SEQUENCE
I am extracting data from offset 19137 with length of 2165 ( which i assumed present in same line as offset hl=4 l=2161 ), not sure that is correct , but i am getting correct time details.
But is there any way to extract the timestamp directly from p7s?