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

Try DigitalOcean for free

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

Sign up

Get our biweekly newsletter

Sign up for Infrastructure as a Newsletter.

Hollie's Hub for Good

Working on improving health and education, reducing inequality, and spurring economic growth? We'd like to help.

Become a contributor

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

Welcome to the developer cloud

DigitalOcean makes it simple to launch in the cloud and scale up as you grow — whether you're running one virtual machine or ten thousand.

Learn more
DigitalOcean Cloud Control Panel