How to make my router admin panel be accessible only by lan domain?

Just ignore the errors. It’s way too complicated to adjust the certs just for trusting in a browser.
Or you can try this script: How-To: Let's Encrypt on GLDDNS domain