Question

How to enable SSL for Subdomain - domain with name cheap, website on VPS and storage with DO

  • Hi i have my domain over at namecheap.com.
  • I have my website mydomain.com with my VPS provider.
  • I have my storage files in DO Spaces.

I have successfully created and connected to DO spaces by creating a CNAME over at my domain registrar NAMECHEAP. I created the CNAME for my subdomain. Everything works, however when i go to my files e.g. https://subdomain.mydomain.com/myfile.jpg i cannot see it due to no SSL being valid on the sub domain.

Now I need to attach an SSL to the subdomain, I have gone through the steps on DO - but I am not able create a subdomain in my DO panel because i do not have the domain registered with DO. My domain is with NAMECHEAP.

Any help would be appreciated as my website is currently not functioning and desperately need to attach an SSL to my subdomain.

Kind Regards


Submit an answer


This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

KFSys
Site Moderator
Site Moderator badge
August 7, 2020
Accepted Answer

Hi @Kay86,

Going over the documentation a couple of times, you would need to upload your custom SSL certificate from the panel. This means you’ll need to have it generated else where.

Another option would be to make your DNS managed by DigitalOcean. This would enable you to easily both manage your DNS from one place and use the Let’s Encrypt feature for creating SSL certificates for custom domains. There are pretty good articles about that here :

https://www.digitalocean.com/docs/spaces/how-to/customize-cdn-endpoint/

Additionally, there is a video showing how you can do this as well:

https://www.youtube.com/watch?v=ETfzaw4WNiw

Regards, KFSys

Thank you @KFSys i have resolved the issue by moving my domain to DO and then pointing the dns records and mx records to my vps whilst maintaining my subdomain cname on DO.

After 12 Hours of stress i have accomplished this, thank you.

Try DigitalOcean for free

Click below to sign up and get $200 of credit to try our products over 60 days!

Sign up

Become a contributor for community

Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.

DigitalOcean Documentation

Full documentation for every DigitalOcean product.

Resources for startups and SMBs

The Wave has everything you need to know about building a business, from raising funding to marketing your product.

Get our newsletter

Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.

New accounts only. By submitting your email you agree to our Privacy Policy

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.