Fix SSL certificate for www prefix Ubuntu 18 + Apache 2

Job ID: 32490159

Budget: $10 – $20 USD

I have installed the SSL let's encrypt certificate in my server for my domain.
If i go to https://mydomain.com it works perfectly
But if i go to https://www.mydomain.com/ show this error to the browsers Warning: Potential Security Risk Ahead
I need my website working for www and non www with https
Related categories: PHP System Admin Linux Apache SSL