# Something is wrong with my company's website

During some free time on my wonderful vacation to Denver last week, I noticed an error with the SSL certificate on my company's website. Being the company's Information Systems & Security Manager, I should have noticed this earlier.  

Low and behold there was an error right on my phone screen.... 

![Frosty Acres SSL/TLS certificate error](https://cdn.hashnode.com/res/hashnode/image/upload/v1632406359004/XnzNUDxim.jpeg)

Now that I think about it, I may have heard about it from one of our member's Managed Service Provider in an email not too long ago after I told the member that their SPF record was incorrect and their emails were not being delivered successfully. *That is another story...* 

### So what really was the issue?

As you can see in the picture above, the warning I received was that the certificate did not match the URL.  

So let's take a look at the certificate in more detail... 

![Frosty Acres SSL Certificate](https://cdn.hashnode.com/res/hashnode/image/upload/v1632406526467/0TU3xYQIk.jpeg)

The certificate was issued to "[www.frostyacres.com](www.frostyacres.com)".  

*But that looks correct, right?*

In a sense, it does.  However, the first image was making a request to "[frostyacres.com](frostyacres.com)" and not "[www.frostyacres.com](www.frostyacres.com)".  The browser is looking for the certificate for "[frostyacres.com](https://frostyacres.com)".

### So how do you fix it?

To fix this issue, you must go back and have a cert reissued for "[frostyacres.com](https://frostyacres.com)" with "[www.frostyacres.com](https://www.frostyacres.com)" as a **Certificate Subject Alternative Name**.  

I should have known this because this is how my SSL certificate is configured on my personal website [brandonscloud.com](https://brandonscloud.com). 

![Brandons's Cloud SSL Certificate](https://cdn.hashnode.com/res/hashnode/image/upload/v1632406967265/DfMQ-OxiIe.jpeg)

The certificate for my personal website is issued to brandonscloud.com and has www.brandonscloud.com as an **Alternative Name**

Since we used a free SSL certificate from [LetsEncrpty ](https://letsencrypt.org/) and our web server is running on a common Linux distribution, I had to run several terminal commands to get [Certbot](https://certbot.eff.org/)  to reissue the certificate. Certbot is a free, open-source software tool for automatically using Let’s Encrypt certificates on manually-administrated websites to enable HTTPS.

Several commands later, I had a valid certificate. 

![New Certbot Certificate](https://cdn.hashnode.com/res/hashnode/image/upload/v1632408102358/J-BLwh6Wg.png)

However, I did manage to break a few things but had my web developer next to me and we quickly got the website back online within a few minutes.   

![New Frosty Acres SSL certificate](https://cdn.hashnode.com/res/hashnode/image/upload/v1632408241710/BNdb87MPR.jpeg)

The new certificate looks good and we shouldn't see any issues.

I hope you enjoyed the read.  Please feel free to leave any comments. 




