How to validate an SSL certificate from Namecheap on an Object storage

I am trying to host a site and a back-end using Linode.

My approach is that I use a Debian node to run my database and I created an object storage to upload the website files meaning my index.html etc.

I got a Domain from Namecheap and got an SSL from them. For the content let's just say the domain is mydomain.me.

I added the name servers of Linode to my Namecheap's domain dashboard and added the domain in Linode's Domains tab letting it pre-configure my records using my Debian node I mentioned above, it created few A and AAAA records pointing to the node's IP.

I configured my node to serve the .well-known folder with the file to authenticate my domain and I verified that this is ok cause when hitting the mydomain.me on the web it has secure connection and authenticated certificate.

I deleted one A record and one AAAA record that was using the subdomain www to redirect on the node and instead created a CNAME record for www to redirect to my Object Storage. So now I should have www.mydomain.me pointing to my bucket and indeed if I use the dig command on Linux like so:

dig www.mydomain.me

The answer section shows a CNAME pointing to the bucket with the website- before the [cluster-id].

I used the command tool s3cmd to configure the bucket as a static site and I had no errors there either.

Now to authenticate my bucket I've done the following.

  1. Added the same .well-known folder with the text file to validate the domain since from what I see Namecheap wants to find the file in both mydomain.me and www.mydomain.me.
  2. Made sure when creating the bucket to name it mydomain.me and added the certificate and secret to the SSL/TLS tab that did accepted.

Both have done nothing to authenticate the domain under the subdomain www and I receive error from the browser that my connection is not secure.

It's my first time trying to actually publish a site I wrote with an actual domain so I'm not informed well with the domain part. Any advice is welcome.

Thank you in advance.

2 Replies

We have a guide that walks you through exactly what you're looking to do - have you had a chance to review this yet? Configure a Custom Domain (with a TLS/SSL Certificate)

Thank you for your reply and sorry for my late response to you.

Indeed I have gone through the guide multiple times. I believe and please correct me if I'm wrong that the step above on my question are from the guide you mention.

Sadly I'm still unable to validate my domain when my site is hosted on the bucket.

Reply

Please enter an answer
Tips:

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (https://www.google.com)

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct