1. Current Location: Home >  Router Encyclopedia >  The website certificate expired and couldn't be opened; after checking the certificate chain, I found the user certificate was the key

The website certificate expired and couldn't be opened; after checking the certificate chain, I found the user certificate was the key

https certificate chain three-layer introduction letter structure diagram: Root certificate ISRG Root X1 includes factory trust list, daily signature of intermediate certificates, and 90-day replacement of leaf certificates, with three types of certificates for error comparison

When I wrote that HTTPS packet capture post last month, I casually mentioned that our small site's certificate was signed by Let's Encrypt and expires on December 23, 2026. Someone left a comment asking a question that caught my attention: Who sent you this certificate? Why should browsers trust it? I opened my mouth but found I couldn't answer, so I simply skimmed through the certificate chain on our website from start to finish—from the three lines of text on the lock icon to the list of over 300 institutions in my phone system. After digging, I realized that the usual "certificate invalid" and "not secure" warnings, as well as the deeply hidden "install certificate" button on the phone, are all the same rules behind the scenes.

The lock opened those three lines of text—first understand them

Open any HTTPS website, click the small lock in the address bar, then click "Certificate," and a window will pop up. Don't be intimidated by the endless English content—the only thing truly valuable is three lines: who it was awarded to, who the issuer is, and how long it is valid.

Take my own small station for practical use. Type a command on your computer and take the certificate from the server as it is

:

openssl s_client -connect www.shunot.com:443 -servername www.shunot.com

Flipping through the certificate inside, the three key lines of information were: Issued to shunot.com; An intermediary organization called YR1 by Let's Encrypt, issuer; Valid from September 24 to December 23, 2026. Counting it up, it's exactly 90 days. This isn't a coincidence, it's a fixed rule at Let's Encrypt—their certificates are always renewed every 90 days, forcing webmasters to renew automatically, so you don't forget to replace a certificate after using it for over half a year. Business certificates often start at a year, and for convenience, personal webmasters tend to mess up on the day they expire: the website is fine in the morning, but at noon the screen suddenly fills with red text and won't open, and upon checking, the certificate has expired.

Here's a fun fact: besides the shunot.com, the certificate also says www.shunot.com—this is called SAN, and one certificate holds multiple names. So you can open it normally with or without www. It's not that the server did some kind of redirect magic, but that both names were registered on the certificate from the start.

The certificate chain is essentially an introduction letter, with one layer of endorsements after

another

Just looking at my certificate wasn't enough, so I added a parameter to pull the entire chain out: openssl s_client -showcerts. Wow, the server didn't hand over one card, but three, like nesting dolls:

it? , , , intermediate is higher;
Which page does it say? Who can testify for
Leaf certificateI am shunot.comLet's Encrypt's YR1
certificate, I am YR1Root YR
one levelI have Root YRISRG Root X1

The whole system is the introduction letter system. The website certificate says, 'I am shunot.com, YR1 can be a testimony.' You go to YR1, YR1 shows up his certificate and says, 'I am YR1, Root YR vouches.' Looking further up, Root YR said, "ISRG Root X1 testifies." Heading all the way to the ISRG Root X1, the chain ends—it doesn't need anyone to testify anymore, because its name is printed right out of the box on your phone and computer's trust list.

At first, I couldn't understand one thing: if Gen is so authoritative, why not just use Gen to issue visa documents to each website? Why do you have to do these two layers in between? Later, it was discovered that the private key of the root certificate was the lifeblood of the entire organization. Industry rules required it to be stored offline—locked in a computer room without network or even in a safe, never working in the fields. All daily signing tasks are handled by the intermediate certificate: if the intermediate private key is leaked or needs to be rotated, just revoke it and reissue a new one, and you're done without any harm. If the private key is directly exposed, all the websites signed by that agency are doomed. This has happened before. In 2011, a Dutch certificate authority called DigiNotar was stripped of its private key from the trusted list overnight because the private key was stolen, and the company went bankrupt that year.

The browser verification certificate means holding the list and matching the code

So what does this "trust list" actually look like? I counted on this computer: there are 302 certificates lying in the /etc/ssl/certs directory. Windows, Android, and Apple each maintain a similar list, mostly similar—over 300 organizations, but you might recognize fewer than five. The rest are DigiCert, Sectigo, GlobalSign, Entrust, all organizations you've never dealt with but are trusted worldwide.

So every time you open an HTTPS website, what actually happens in the backend is like this: the server hands over three certificates at once, the browser first checks who the referrer on the leaf card is, scrolls through its own list, checks the signature if found, then searches up, checking the root level by level, and the endpoint must be among those 302 names. If a link in the chain breaks or the destination is not on the list, call the police immediately. The entire verification takes only a few milliseconds; you won't notice it, but this set of "pairing codes" runs thousands of times on your phone every day.

This is also why the detective tool insists you have its certificate installed—more on this later, as this is the most crucial part of the entire text.

Three types of errors and three types of bugs—first read the small text on the error page

If certificate verification fails, Chrome will not just say "Error" but will write a line of small text on the error page, such as NET::ERR_CERT_DATE_INVALID. This line of English is the medical record book, with three common errors and three diseases:

The cause. . to think about where they are COMMON_NAME_INVALID connected (name The

first action to report a keyword error is the root
DATE_INVALID (Incorrect validity period) The certificate has really expired, or your phone or computer is incorrectly timedFirst, check the system time
AUTHORITY_ INVALID (issuer unknown) self-visa certificate, or someone pretending
mismatched).certificate was signed for Site A, but you are visiting Site B to check if you typed the URL incorrectly

DATE_INVALID the most unfair type: the website is fine, but just because your computer motherboard battery is drained and the time goes back to 1970, the browser checks the certificate validity "hasn't started yet" and immediately condemns you for failing. After the home router loses power, the time resets to zero, and HTTPS websites on that machine always report this error. I previously wrote NTP timing post specifically complaining—not just timed tasks but certificates are harmed. So when you encounter a certificate error, spend five seconds checking the date in the bottom right corner before deciding whether to try something else.

AUTHORITY_INVALID depends on the occasion. The NAS backend at home uses a self-signed form, and the browser is full of red text. This is the 'you know what you're doing'—your own device, your own local network. I wrote a solution < a href="https://www.shunot.com/en/nas/1063.html" > in the WebDAV articleThe red text can continue. But if you access online banking via public WiFi in internet cafes or hotel lobbies, if you skip this mistake, don't click "continue access" and just turn and leave—in that context, it means someone might be standing between you and the real website. If the name doesn't match, it's actually the least likely type. Most of the time, it's a typo in the URL or a telecom operator interfering on the page. It's similar to the issue of typing errors. If you look at my post status code in plain language, you'll understand.

The "user certificate" on your phone is your home key

Writing this, the most important thing to mention: the act of carrying the certificate is much more serious than most people think.

When 12306 first launched online ticketing in 2011, I used a certificate signed by the China Railway Digital Certificate Authentication Center (SRCA), which was not on any browser's trusted list. So hundreds of millions of people nationwide did the same thing before buying tickets: download the root certificate installation package from the 12306 official website and manually install it on a computer. Once the browser is installed, there are no more errors. Later, 12306 was replaced with a certificate signed by an international commercial CA, and this installation package was finally removed. The main point of the security debate back then was: installing a root certificate was like giving the agency a pass to "testify for any website"—they signed whatever they trusted, with no upper limit.

This is

exactly the path the packet detection tool has taken. If you want to capture HTTPS packets on your phone, the tool will ask you to install its root certificate first. After installing it, it stands between you and all the websites: you want to access online banking, it first pretends to be online banking and unlocks your request, then returns it with its own certificate. The browser checks the certificate is signed by the "person on the list" and lets you through. You only feel the internet speed is a bit slow the whole time. WiFi master key tools, certain "internet behavior management" clients, and some unknown red envelope cheats—when it comes to requesting certificates, the logic is the same—they don't want the certificate, but a copy of your home key.

Google later patched up a loophole: after Android 7, manually installed certificates were only recognized by browsers, while apps like WeChat and Bank defaulted to them. So now, if you want to root or stuff app packages into the system directory, it's a lot of trouble. But the browser layer of peeking is not affected by this patch.

Here's how to find it: On Android, go to 'Set → Security and Privacy→ More Security Settings → Encryption and Credentials→ Trusted Credentials', and go to the 'User' tab. The 300 labels on the system label are factory-installed, so you don't need to touch them unless you can use them; Every extra page in the user tag is worth asking yourself: Did I install this? What is it for? Can't remember, just click in and delete it, it's a minute's worth of experience. On iOS, you can see the same thing in 'Settings → General→ About Local → Certificate Trust Settings.'

Wrap up: Use it in three steps to daily life

After untying this chain, I set myself three small habits, which are not complicated. First, when you encounter a certificate error, read the small text first; if expired, check the time; if the name is incorrect, check the website first. Don't blindly click "Continue visiting" or close the page. Second, the "User Certificate" tab on your phone is flipped through quarterly, and any unknown sources are cleared on the spot. Third, if you have devices with self-visa forms—like NAS or printer management pages—remember why they are red in text, so you can tell when you see the same red text outside. Browser locks and < a href="https://www.shunot.com/en/lybk/1117.html" > HTTPS encryption, remember the cookies you logged in, The password storage keybank is a team, with four components each managing a segment. Together, that's what gives you a sense of security when you go online every day. Understanding the certificate chain won't guarantee a huge increase in security, but at least next time that lock turns red, you know where to look first.

Read More


Copyright Notice Scan to read on mobile
All Rights Reserved: 《SHUNOT》 => 《The website certificate expired and couldn't be opened; after checking the certificate chain, I found the user certificate was the key》
Article URL: https://www.shunot.com/en/lybk/1224.html
Unless otherwise stated, all articles are original by 《SHUNOT》. Reposting is welcome! Please indicate the original URL when reposting, thank you.

Contact Us

Online Consultation: Click here to send me a message

WeChat ID: master_135

Scan to follow