In most cases, it is impossible for a website to use a self-signed (not recognized by CA) HTTPS certificate. In this case, any browser will block it.
But there are exceptions, such as12306.cn.
For some unknown reason, 12306 will use this certificate. It is not recommended to import the root certificate provided by this website, which will have serious security problems. You can visit/then add exceptions according to the page prompts. It is not recommended to add exceptional access to any other websites!