BJCA’s serial-number flaw affected 407 certificates
Beijing Certificate Authority (BJCA) said on December 3 that it had completed new safeguards after issuing 407 certificates with predictable serial numbers. It fixed the faulty generator on November 6. Two affected root certificates remained valid after the revocations. BJCA said it found no indication that the flaw compromised its signing keys. BJCA’s incident report · December 3 update
How the flaw went undetected
An issuer uses a serial number to identify a certificate, including when it revokes one. The number is public once the certificate is issued. Making it hard to predict beforehand helps defend against forgeries that depend on anticipating what the issuer will sign. Browser rules require at least 64 bits of output from a cryptographically secure random-number generator. Certificate serial numbers in RFC 5280 · Mozilla’s root store policy
BJCA traced the defect to software in use since 2019. Its generator started with too little randomness. The serial numbers it produced could look random and pass length checks even though they were predictable. BJCA says the hardware that generated its private signing keys used a separate source of randomness. BJCA’s investigation
Which certificates BJCA revoked
A researcher alerted BJCA on October 30. The authority suspended external TLS certificate issuance on November 2. It subsequently revoked 50 certificates that were still valid.
- 16 belonged to subordinate authorities that could issue certificates.
- 34 belonged to subscribers or to services that report whether certificates are still valid.
Those 50 came from a total of 407 affected certificates, which included two roots, 16 subordinates and 389 subscriber or status-service certificates. BJCA identified the two affected roots still valid after the revocations as Global Root CA1 and Global Root CA2. BJCA’s impact report
On November 6, BJCA switched to hardware-generated randomness for serial numbers. Its December 3 update reports that by November 30 it had added checks for this defect, expanded code review to cover how the generator starts, and expanded its annual risk-assessment procedure to cover random-number generation. BJCA’s remediation record