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