how to generate my own timestamp
843811Dec 3 2009 — edited Jan 5 2010Hi everyone,
At this time, i have to generate a timestamp for a record of a database. I have to canonicalizate the data, obtain the hash of it and do the timestamping. I have googled a lot, but im confused. I think that the tsp library of bouncy castle only allow to send a timestamp request to a TSA, so its not what i need. So, i dont know if is "criptographically correct", i think that i have to do the canonicalization, then obtain the hash, create a temporal with the hash and date and sign this in pkcs7. If this is correct, i dont have any idea of doing de canonicalization or the pkcs7 singature. Also, i have seen examples of sign with cms at bouncycastle library, but i dont understand at all the parameteres needed for my requirements.
I hope someone could understand what im trying to do (i didnt explained so well) :)
Thanks!