There is an application VueJs (Nuxt) and its admin panel on WordPress, communicate through the REST API, are located on the same domain, the admin panel is in a subfolder. Now the domain has a self-signed certificate from LetsEncrypt, Certbot. Everything works fine, except that periodically, when you go through an advertisement, the client displays a message that the certificate is unsafe. Therefore, a paid COMODO certificate was purchased.
After it is installed, Vue stops working with an error500 Server error. NuxtServerError. Unable to verify the first certificate
In this case, the admin panel works correctly and shows the correct certificate data.
It is surprising that if you deliberately enter a non-existent website address, the frontend error page 404 opens, which contains navigation, after which you can fully use the website, navigate through the pages before the first manual reboot (for example, ctrl + R).
What could be the reason for this error?