www alias throwing ssl error --ubuntu server 1 click WP

Posted June 22, 2021 194 views
Let's Encrypt

Hi I have setup a ubuntu 1-click WP server, and while setting up Lets Encrypt I only set it up for and not for alias and is redirected to Now for some user when they open it shows them invalid ssl cert error. Can I still setup Lets encrypt for www ? or i will need to remove the non ssl first? and if so how can it be removed?


These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Submit an Answer
1 answer

Hello, @Sunny9616

You can revoke/delete the current SSL Certificate and then issue another one but include the www version as well.

To revoke the SSL:

  • sudo certbot delete –cert-name

To obtain a new SSL:

  • sudo certbot --apache -d your_domain -d www.your_domain

You can also check this article:


by Kathleen Juell
by Erika Heidi
Let's Encrypt is a Certificate Authority (CA) that provides an easy way to obtain and install free TLS/SSL certificates, thereby enabling encrypted HTTPS on web servers. In this tutorial, you will use Certbot to obtain a free SSL certificate for Apache on Ubuntu 18.04 and set up your certificate to renew automatically.