My domain is: mucit.kim
I ran this command: sudo certbot mucit.kim
It produced this output:NET::ERR_CERT_COMMON_NAME_INVALID
My web server is (include version): ubuntu 22
My domain is: mucit.kim
I ran this command: sudo certbot mucit.kim
It produced this output:NET::ERR_CERT_COMMON_NAME_INVALID
My web server is (include version): ubuntu 22
No, it didn't, and no, that isn't the command you ran. What's the exact command you did run, and what was its output?
I see a redirection loop:
curl https://mucit.kim/
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>301 Moved Permanently</title>
</head><body>
<h1>Moved Permanently</h1>
<p>The document has moved <a href="https://mucit.kim/">here</a>.</p>
<hr>
<address>Apache/2.4.41 (Ubuntu) Server at mucit.kim Port 80</address>
</body></html>
Requests to: http://mucit.kim/
Redirect to: https://mucit.kim/
Requests to: https://mucit.kim/
Redirect to: https://mucit.kim/
I was playing Cloudflare settings so the loop redireciton is about it.
I get NET::ERR_CERT_COMMON_NAME_INVALID error
I just write the code when I setup the SSL on my web server.
I get NET::ERR_CERT_COMMON_NAME_INVALID error on the browser. If you need I can send my apache conf files
That's because the cert being served ("www.mucit.kim
") doesn't match the name being requested ("mucit.kim
").
I fix it;
In my -le-ssl.conf file I add these lines:
Include /etc/letsencrypt/options-ssl-apache.conf
SSLCertificateFile /etc/letsencrypt/live/mucit.kim/fullchain.pem
SSLCertificateKeyFile /etc/letsencrypt/live/mucit.kim/privkey.pem
It solved.
Thanks
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.