I am baffled about how to create an ssl cert on one of my servers but use it on the subdomain for spaces. If I create a DNS entry for images.mydomain.com so Certbot can find it and issue an SSL cert. By definition, I am defining that my server’s IP is responsible to respond for that URL. How can I then copy that cert to the Spaces API and expect that it will now be responding for that subdomain? Would I not need to change my DNS to have a CNAME for the subdomain to point to CDN URL? If I do that how will I be able to then have Certbot find the original server to update my ssl cert after 90 days. I am befuddled. I anyone can explain this to me I would greatly appreciate it.
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!
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.
Sign up for Infrastructure as a Newsletter.
Working on improving health and education, reducing inequality, and spurring economic growth? We'd like to help.
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Hi there,
It would indeed work as you described it, but if you do it that way, you would need to manually reissue the certificate every 90 days and again manually add the updated certificate to your account.
What you could do instead is to use the SSL automation provided by DigitalOcean. For that you would need the following:
Settings
->Security
-> Click onAdd Certificate
and choose your domain name followed by the subdomain that you will use for your space and click on generate.That way you will not have to worry about manually issuing and updating your SSL certificate every 90 days.
In case that you need it, you can find the documentation here.
Let me know if you have any questions. Regards, Bobby