After days brooding over how to enable LE for my server, I finally reach out to the community for help as I seem to have exceptionally failed
First things first, if I am fairly computer savvy I am quite the beginner in anything related to server set-up and management, so please bear with me.
I have installed the overly disparaged macOS server 5.5 (High Sierra) since I need a cheap, allegedly easy way to set up a private server with a few services. In order to have a remote access to my server I use a free dyndns hostname. After a lengthy process to get to the right settings to access the services online, I have come to understand SSL certificates - or the lack thereof - were key to ensure reliable remote access as auto-certification could generate issue with services like webdav or vpn.
I have then tried to install LE on the server following the various guidelines notably available here.
I have successfully come to the point where the following folders are created:
~/letsencrypt
/etc/letsencrypt
I then followed the guide on Certbot to try to issue and recuperate the certificates. This is where I hit the wall. I relentlessly get the error message: āProblem binding to port 80: Could not bind to IPv4 or IPv6.ā
Any comment/input would be greatly appreciated at this pointā¦
Thanks in advance for taking the time to consider my issue.
Best,
Thanks @_az for taking the time to reply! Greatly appreciated
This is where I reach my limits and I am not sure I understand the whole issue very well.
I do have a server but I forwarded the ports so it should not run on port 80. I tried to close the server app anyway but the result was the same. When I ran the command on the terminal sudo lsof -i :80 to see where something is listening and indeed I get server PIDS pointing to apacheā¦ but as I said, I am not sure what to do from there.
Thanks @stevenzhu!
It seems I have a problem with my Apache configuration. I tried to run cerbot as root and I had an error message (Error while running apachectl configtest.) A few logs ending with : Syntax error on line 23 of /private/etc/apache2/other/httpd_webdavsharing.conf:\nPort must be specified\nā,)
Thanks for you patience @stevenzhu
The line <VirtualHost *: 8079> is not there.
There is a bunch of RewriteCond, otherwise the RewriteRule points to port 81$1 (!) and the ProxyPassReserve to Port 81. It does not look promisingā¦
you must create a fake network interface and map the macOS services on that interface, so you can use port 80 on your main interface. Few macOS services are using at default port 80 and 443