Server was deletet

Hey, my firewall just logged me out of my system and i had to reset the OS, i had used let’s encrypt before and i wanted to use it agin, when i just had installed it, it worked fine at www.domain.com but when i try to use domain.com without the “www” i get and untrusted cerficate in chrome, and other browsers. When i do an SSL Report on my domain it says:

Common names: www.domain.co MISMATCH
Trusted: No NOT TRUSTED

Sounds like you got a cert for www.domain.com only. If you also want it to work without www. then you need to request a cert with both names by using multiple -d flags.

If you run a test on www.domain.com at the SSL Labs site, https://www.ssllabs.com/ssltest/, it will list what domains actually exist in your installed certificate.

If you run a test on www.domain.com at the SSL Labs site, https://www.ssllabs.com/ssltest/3, it will list what domains actually exist in your installed certificate.

Why not just use the openssl tool to look into it?

openssl x509 -noout -text -in /etc/letsencrypt/live/www.domain.com/cert.pem | grep DNS