Canadian government site canada.gc.ca SSL certificate expires, breaks links
If you head to https://canada.gc.ca right now, ideally it should redirect automatically to the newer canada.ca government domain.
However, on the latest versions of Firefox, Safari, and Chrome with HSTS (HTTP Strict Transport Security) enabled, the redirect would fail due to an SSL error — about half the time for reasons outlined below.
As observed by Security Report, this is because the SSL/TLS certificate used by the Canadian government’s former website canada.gc.ca has expired as of November 5th, 2020.
While the newer canada.ca domain, with a valid certificate, has been adopted by the Canadian government for providing access to public services, numerous Canadian government websites, like this one, continue to have multiple links present to the older www.canada.gc.ca and canada.gc.ca domains, which are now failing, as observed by Security Report.
The older links, under ideal circumstances, would have redirected seamlessly to canada.ca.
Although the expired SSL certificate covers multiple domains, as shown in the screenshot below, the problem seems to be uniquely impacting the canada.gc.ca and www.canada.gc.ca domains when accessed over HTTPS.
The problem may also appear to occur on and off because both canada.gc.ca and www.canada.gc.ca domains use multiple servers (DNS A records).
It is only the https://205.193.117.94/ server with an expired certificate.
Therefore, you are likely to see SSL errors a few times when your web browser resolves the canada.gc.ca domain to 205.193.117.94.
To reproduce this issue successfully, try copying-and-pasting https://www.canada.gc.ca or https://canada.gc.ca in different web browsers a few times. It may be better to use fresh incognito sessions on each try to have the issue reveal itself.
Expiring and revoked SSL certificates have become a recurring nuisance.
Earlier this month, GitHub’s layout broke due to an expired CDN SSL certificate.
Last month, Mac users with HP printers were left unable to print after HP had worked with Apple to revoke SSL certificates of select printer models, without a heads up.
Copies of the expired SSL certificate and Entrust’s CA chain certificate issued to www.canada.gc.ca are provided below:
https://www.canada.gc.ca/home.html
Peer’s Certificate has expired.
HTTP Strict Transport Security: true
HTTP Public Key Pinning: false
Certificate chain:
-----BEGIN CERTIFICATE-----
MIIHkzCCBnugAwIBAgIRAMr5PmGH1MDHAAAAAFDrRkowDQYJKoZIhvcNAQELBQAw
gboxCzAJBgNVBAYTAlVTMRYwFAYDVQQKEw1FbnRydXN0LCBJbmMuMSgwJgYDVQQL
Ex9TZWUgd3d3LmVudHJ1c3QubmV0L2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HsFXwt35u
Lcw=
-----END CERTIFICATE-----
Update: clarified the problem may reveal itself only a few times due to canada.gc.ca pointing to two servers (DNS A records), only one of which has an expired certificate.