Question

ERR_SSL_PROTOCOL_ERROR when making a request to my servers droplet IP

Hey guys,

I have been working on a project which I decided to upload to digitalOcean.

I have an App for my client and a droplet for my server. When I visit my clients webpage and I make a request to the server ( https://ipadress:80/api-route ) I get ERR_SSL_PROTOCOL_ERROR, same happens when I try to visit the route directly.

How I understand the problem is that my server needs to have an SSL certificate set up but as the server is just an IP adress and does not has a domain how will I be able to fix the issue?


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
July 25, 2022

Hi @bubblyturquoiseshrimp,

You can’t have an SSL certficate on an IP address. Additionally, you won’t be able to use port 80 and https together.

First, I’ll recommend using a domain name and secondly, if you need to use a specific port like so https://domain:80/443/9000 then I’ll recommend using Nginx as a reverse proxy as well.

Try DigitalOcean for free

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

Sign up

card icon
Get our biweekly newsletter

Sign up for Infrastructure as a Newsletter.

Sign up
card icon
Hollie's Hub for Good

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

Learn more
card icon
Become a contributor

You get paid; we donate to tech nonprofits.

Learn more
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
Get started for free

Enter your email to get $200 in credit for your first 60 days with DigitalOcean.

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