Apache certificate throws warning Potential Security Risk Ahead

HI,

Today generated certificate for our domain name for Apache. Our domain name is https://microsensehospitality.com. While opening the website on browser, throws warning.

Warning: Potential Security Risk Ahead

If click know more got below information

https://www.microsensehospitality.com/

Unable to communicate securely with peer: requested domain name does not match the server’s certificate.

HTTP Strict Transport Security: false
HTTP Public Key Pinning: false

Can you help me to resolve it.

When you request your certificate, you need to include both microsensehospitality.com and the www.microsensehospitality.com subdomain.

The missing www subdomain on your certificate is the reason for the browser warning.

Thank you for your reply.

Can I regenerate certificates for both using certboot

Yes, you could update the certificate by running something like:

certbot --apache --cert-name microsensehospitality.com -d microsensehospitality.com -d www.microsensehospitality.com
1 Like

Thank you. Its working now.

1 Like

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