I am programming a Certification Authority in java for a uni class, now I don't know what's the best option for the serial number of the Certificate.
Is there any good reason for choosing one over the other... or none of them??
thanks,
I would recommend that you use a random number, but keep a list of those issued serial numbers in a database. This will allow for two things.
Of course #1 requires that you check against the known list on generation and to generate a new random number if a collision occurs, and #2 isn't much of anything in terms of security or validation but an interesting prospect never-the-less.