Question

How to enable the ssl certificate for my droplet IP address

Hello to all,

I have deploying my spring boot rest application in my debian 10 server and I make differents api rest call with http://my_ip_address:8080 but the problem is that in my angular web client who differents user make requests I have enabled the ssl certificate to establish the secure navigation for them and now I can’t call my services with http protocol.

And when I try to generate the ssl certificate with openssl, the web browser bloc always the rest api call and tell that the certificate didn’t provide from the competent authority.

My question is how can I do to generate the ssl certificate for my public IP address for my droplet.

Thanks


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.

Bobby Iliev
Site Moderator
Site Moderator badge
June 16, 2020
Accepted Answer

Hi there @sinclairjaza,

I would recommend taking a look at this answer here by ryanpq:

https://www.digitalocean.com/community/questions/ssl-for-ip-address

He mentions that unfortunately the free LetsEncrypt CA does not support this which leaves you with two options:

  • Create a self-signed ssl certificate. This has the benefit of being free and fairly easy to set up but will result in a security warning in most browsers since they look for a trusted authority to have issued the certificate. If you are creating this for internal use this may be the best option.

  • Purchase an SSL certificate from a provider. For this I’d recommend reaching out to a few providers to find one that will support issuing a certificate for your public IP address.

Hope that this helps! Regards, Bobby

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.