I am attempting to use certbot to add SSL encryption to my wiki js installation. My droplet is on and I am logged into the remote shell. After running: ‘certbot certonly --standalone’ and entering my domains, I get this error:
Could not bind TCP port 80 because it is already in use by another process on this system (such as a web server). Please stop the program in question and then try again.
The activity monitor (on my mac) is not showing any processes on port 80.
I had nginx installed (on my mac), but uninstalled it using brew (not using it)
I use pm2 (on my mac)to start up a local node.js server, but all stopped these processes
I am not sure what process might be blocking port 80.
Further, I am not sure if the warning is about some process in my droplet using port 80 or my MacBook??? When I list active ports in my droplet, I see two instances of ‘docker-pr’ listening on port 80. Could this be an issue?
Following the certbot documentation, I tried using --webroot instead of --standalone (‘certbot certonly --webroot’). The issue here so far is that I don’t know how to specify the webroot location. I’ve dug through the directories but don’t see where this path is.
My confusion is that I am supposing the droplet server is using port 80. I need to be logged in to the server to run certbot. I can’t run certbort if my droplet is off.
Thanks!
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!
Im having the same issue, maybe this helps you https://unix.stackexchange.com/questions/702133/how-does-certbot-bind-port-could-not-bind-tcp-port-80-because-it-is-already-in
If you find a solution please post it here!
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
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
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.