My browser shows unverified certificate

hello, ive installed a lets encrypt certificate using this tutorial and everything went as it supposed to be ,
ive tested my certificate using
the only problem is when i open my website “” the browser tells me that it could not verify the certificate! ive tested it on chrome safari firefox, whats am i doing wrong? how to solve this problem? thanks in advance,

What web server are you using? Ok see you are using apache.

Did you install the certificates correctly on your Vhost ??

Your SSL cert test fine with Qualsys so it’s just an Apache config problem

Your certificate is only valid for the domain name, not You redirect to the www subdomain when someone visits, and since the certificate does not include that domain, you get a browser warning.

The remediation steps depend on how you obtained the certificate initially. If you used the apache plugin, you might want to add a ServerAlias line to your vhosts and then re-run the certbot command you used initially. Happy to provide more detailed instructions if you tell us what commands you used to get the certificate in the first place.


You could as @pfg mentioned re-generate the cert to add on the www or you can just run your site without the www, then just change your redirect to go to and not

thanks for your answer that seems to be so logic, but coudnt i just add a domain to my existing certificate?
im new to this kind of thing, i was just following this tutorial, thanks in advance

Adding a domain is essentially creating a new certificate. If you used letsencrypt / certbot to create it though, use the --expand command to add the additional domain name.

1 Like

ive used certbot-auto --apache -d
so should i just do : certbot-auto --apache --expand -d ?

You would have to add both domains, i.e. -d -d

Alternatively, you can just add a ServerAlias to your vhosts, as that’s where the client gets the list of domains from (it parses your ServerName or ServerAlias directives).

1 Like

see User Guide — Certbot 2.7.0.dev0 documentation

You need to include in all the domain names so It would be

certbot-auto --apache --expand -d -d

1 Like

thanks guys that really helped ! ive ended up adding a ServerAlias. thanks

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.