Title: Replace site&#8217;s hostname with CNAME errors
Last modified: August 8, 2018

---

# Replace site’s hostname with CNAME errors

 *  [jdyach](https://wordpress.org/support/users/jdyach/)
 * (@jdyach)
 * [7 years, 10 months ago](https://wordpress.org/support/topic/replace-sites-hostname-with-cname-errors/)
 * I created a CNAME in cpanel and am attempting to use it to customize the links
   to my files hosted on S3. I have read through many tutorials and forums but haven’t
   found any solutions. When I enable this feature, my hosted resources all return
   the error:
    Failed to load resource: net::ERR_CERT_AUTHORITY_INVALID
 * I am using HTTPS, and links use HTTPS, but when I try to directly follow the 
   links that are generated with the CNAME I get the insecure browser message “Your
   connection is not private” screen. If I remove the “S” and follow the same links(
   HTTP) then the resource is accessible.
 * So somewhere along the way there is a security issue? I have a self-hosted cpanel-
   generated SSL on my domain and requested a wildcard one from Amazon for my domain
   as well.
 * Does anyone know how to solve this? I know I am missing a step or some crucial
   information, but can’t seem to find answers anywhere. Is there something I need
   to configure in W3TC, my server, or S3?
 * Any help is appreciated!
 * EDIT: site pw is “sirules”
 * Thanks,
    j
    -  This topic was modified 7 years, 10 months ago by [jdyach](https://wordpress.org/support/users/jdyach/).
      Reason: updated w/ site access
    -  This topic was modified 7 years, 10 months ago by [jdyach](https://wordpress.org/support/users/jdyach/).
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Freplace-sites-hostname-with-cname-errors%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Thread Starter [jdyach](https://wordpress.org/support/users/jdyach/)
 * (@jdyach)
 * [7 years, 10 months ago](https://wordpress.org/support/topic/replace-sites-hostname-with-cname-errors/#post-10572004)
 * UPDATE: I requested a new wildcard Let’s Encrypt SSL for my domain (so no longer
   self-signed) and that got rid of the ERR_CERT_AUTHORITY_INVALID error.
 * Now the error I am getting is ERR_CERT_COMMON_NAME_INVALID
    Subject: *.s3.amazonaws.
   com
 * I gather this is because my links are now pointing to the CNAME address, and 
   not the default *.s3.amazonaws.com, so it doesn’t match the cert.
 * So any ideas on how I get around this?
 *  Thread Starter [jdyach](https://wordpress.org/support/users/jdyach/)
 * (@jdyach)
 * [7 years, 10 months ago](https://wordpress.org/support/topic/replace-sites-hostname-with-cname-errors/#post-10572207)
 * According to these articles:
    [https://www.h3xed.com/web-development/using-https-with-amazon-s3-and-your-domain?cadd=1#comments](https://www.h3xed.com/web-development/using-https-with-amazon-s3-and-your-domain?cadd=1#comments)
   [https://stackoverflow.com/questions/42441828/https-on-s3-without-cloudfront-possible](https://stackoverflow.com/questions/42441828/https-on-s3-without-cloudfront-possible)
   Amazon S3 doesn’t support domain/subdomain mapping using a CNAME, with HTTPS.
   Why then would “Replace site’s hostname with a CNAME” be an available option?
   Surely this issue has been encountered before.
 * I don’t want to use CloudFront if i don’t have to, but will that really be the
   only solution for me to get this working?
 * Thanks,
    j
    -  This reply was modified 7 years, 10 months ago by [jdyach](https://wordpress.org/support/users/jdyach/).
      Reason: added second article source
 *  Plugin Contributor [Marko Vasiljevic](https://wordpress.org/support/users/vmarko/)
 * (@vmarko)
 * [7 years, 10 months ago](https://wordpress.org/support/topic/replace-sites-hostname-with-cname-errors/#post-10574902)
 * Hello,
 * There is a possibility that you have a misconfiguration somewhere in your DNS
   or the SSL certificate is not installed correctly.
    If that’s the case this might
   not be related to W3 Total Cache.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Replace site’s hostname with CNAME errors’ is closed to new replies.

 * ![](https://ps.w.org/w3-total-cache/assets/icon-256x256.png?rev=1041806)
 * [W3 Total Cache](https://wordpress.org/plugins/w3-total-cache/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/w3-total-cache/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/w3-total-cache/)
 * [Active Topics](https://wordpress.org/support/plugin/w3-total-cache/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/w3-total-cache/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/w3-total-cache/reviews/)

## Tags

 * [CNAME](https://wordpress.org/support/topic-tag/cname/)
 * [SSL](https://wordpress.org/support/topic-tag/ssl/)

 * 3 replies
 * 2 participants
 * Last reply from: [Marko Vasiljevic](https://wordpress.org/support/users/vmarko/)
 * Last activity: [7 years, 10 months ago](https://wordpress.org/support/topic/replace-sites-hostname-with-cname-errors/#post-10574902)
 * Status: not resolved