Question

Subdomain site needs HTTPS/SSL Cert

Hello all, here is my dilemma. here is my setup

  • domain registered with google domain
  • main website is hosted on netlify
  • droplet on digital ocean running node

I need to use or assign an SSL cert to my api.mysite.com. When I use the UI to assign a new cert to this sub domain I get the following error message “Failed to validate nameserver records: a non DigitalOcean Name Server was found for <mysite.com> domain.”

Any suggestions?


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.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

Hi @blocksyweb,

I’ll recommend using Certbot to install an SSL for your subdomain located on your Droplet. Take a look at this tutorial here:

https://www.digitalocean.com/community/tutorials/how-to-secure-nginx-with-let-s-encrypt-on-ubuntu-20-04

It will provide you with an example of how to issue an SSL certificate for the domains on a specific droplet, in your case for api.mysite.com.