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.

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 @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.