Why 12306's Self-Signed Certificates Backfired: Trust, Browsers, and Security Risks
The article explains why China's 12306 railway system initially used self-signed certificates from an untrusted CA, the security risks of manual root certificate installation, how browser trust store changes broke access, and why 12306 eventually switched to publicly trusted CAs like DigiCert and CFCA.
Reading font

Background: 12306's Self-Signed Certificate
China's 12306 railway ticketing system originally used certificates issued by the China Railway Digital Certificate Authentication Center (SRCA) . This CA was unilaterally designated by the state but never passed public audits such as WebTrust — effectively making it a self-signed CA. The article clarifies that "self-signed" here does not imply technical superiority; anyone can self-sign certificates, and self-signed certificates are common in closed internal systems. However, deploying them on the public internet is inappropriate because HTTPS security depends on certificate trustworthiness.
Why Public Trust Matters for HTTPS
On the public internet, HTTPS security requires that certificates be trusted by default. Trust derives from the CA's guarantees and the root certificate stores maintained by major internet infrastructure — operating systems and browsers. Trust is evaluated on two dimensions: credibility and technical competence. At the time, SRCA lacked public audit certification, yet 12306 forced its certificates on all users.
Browser Evolution Breaks the Manual Install Model
In the IE era, importing a third-party root certificate into the system made IE and IE-based browsers trust it automatically. 12306 provided an installation process that worked for those browsers. However, with the rise of Firefox and Chromium-based browsers, the trust model changed. Modern browsers either maintain their own independent root stores or apply additional verification layers (e.g., reading system roots but enforcing their own allowlists). Consequently, even after users manually installed the SRCA root certificate, many still encountered red security warnings when visiting 12306.
During early HTTPS adoption, users could bypass red warnings, leading to widespread "red-letter" access. This conditioned users to ignore security warnings, making it impossible to distinguish a genuine man-in-the-middle attack (where an attacker presents a forged certificate) from 12306's own self-signed certificate warnings.
Security Risks of an Untrusted CA
Beyond browser compatibility, the article analyzes technical trustworthiness. 12306's early implementation was notoriously poor — described as a "ragtag team" — and SRCA was not a professional certificate management authority. It lacked authoritative technical capability and transparent management practices, yet demanded unconditional trust of its root certificate.
If SRCA's systems were compromised and its private keys stolen, attackers could issue malicious certificates for any purpose — not only HTTPS but also code-signing certificates for drivers and software. Windows blocks installation of high-risk software (e.g., kernel drivers) unless signed by a trusted CA. Trusting a reckless CA would allow malware to reach the kernel layer, evading antivirus solutions.
Common Reasons for CA Revocation
Major browsers and operating systems revoke trust from CAs that exhibit misbehavior. Historical revocations typically involve:
System compromise leading to theft of root or intermediate signing keys.
Violation of baseline requirements, such as lax validation or non-compliant certificate lifetimes.
Mismanagement or operational errors: mis-issuance, failure to revoke certificates promptly.
SRCA and 12306 did not necessarily meet the standards of a publicly trusted CA in terms of technical capability or internal governance, and no independent body was positioned to audit them. This is why installing their root certificate in the public domain was inadvisable — not because the government or China Railway were deemed malicious, but because the overall risk profile was too high.
12306's Transition to Publicly Trusted CAs
Notably, 12306 did recognize the value of public CAs: its early payment gateway used certificates from VeriSign , then the world's largest CA. Yet it persisted with self-signed certificates for other pages. Eventually, 12306 abandoned self-signed certificates entirely, first adopting DigiCert certificates and later switching to CFCA — a domestically operated, publicly trusted CA. This resolved the manual installation burden and reduced user security risks.
Conclusion
The root cause was a traditional mindset: 12306 likely believed its own institutional credibility surpassed that of any third-party CA for the general public. It overlooked the broader security risks introduced by bypassing the public trust infrastructure. The migration to recognized public CAs eliminated user friction and lowered systemic risk. Today, 12306 uses CFCA certificates and no longer requires manual root certificate installation.
For questions about attribution, corrections or content rights, please contactand we will review it promptly.