X.509 Certificate Serial Number

I am programming a Certificate Authority in java for the uni class, now I do not know which is the best option for the certificate serial number.

  • Simple static counter from 0 to veryBigNumber
  • some huge random number BigInt

Is there a good reason to choose one over the other ... or none of them?

thanks,

+5
source share
6 answers

I would recommend using a random number, but keep a list of these serial numbers in the database. This will do two things.

  • You will never republish the same serial number.
  • You can specify the serial number of the certificate, even if it is remote.

, # 1 , , , № 2 - - , , -.

+2

0 veryBigNumber , bigRandomNumber - .

- , , , .

+2

, . , , , .

, , . , ( ) , , .

+2

, (Issuer distinguished name, serial number) . , , . 20- . , , , .

SSL- (Alex Sotirov et al.), MD5, . . , - , , MD5. MD5.

+1

, Serial, .... , , ..

0

I accidentally came across this question by accident, and from the answers you might think that a predictable serial number is not a security issue. I would say that this is a problem and that random serial numbers are much safer. Wed Flame attack et al. here or here or wikipedia article " Predictable serial number attack .

0
source

All Articles