Mac SERVER question

I have ran everything pretty much correctly until the last phase of installing the certificate.

I installed Homebrew and type this command:

sudo certbot certonly --standalone -d apple.dineatselect.com

I get this in return:

Saving debug log to /var/log/letsencrypt/letsencrypt.log
Plugins selected: Authenticator standalone, Installer None
Obtaining a new certificate
Performing the following challenges:
tls-sni-01 challenge for apple.dineatselect.com
Cleaning up challenges
Problem binding to port 443: Could not bind to IPv4 or IPv6.

I am not sure what I am doing wrong on this one.

I did a port scan for the IP address and apple.dineatselect.com and port 443 is open

Also, I turned off the server as I read to do on a standalone installation. That didn’t fix it.

I then even turned off the firewall to do this to allow all incoming traffic in case I Missed something. Still no go.

Any help would be awesome. Thanks.

Jeff

Jeff,

Something is answering on 443 so your attempt to turn it off has failed…

one of these commands should clue you in on what process is attached to 443:

lsof -n -i4TCP:443 | grep LISTEN
lsof -n -iTCP:443 | grep LISTEN
lsof -n -i:443 | grep LISTEN

kill the process and retry your command

I used all three of those commands and here are the results:

httpd 3057 root 6u IPv6 0xea28031aaf73b8d1 0t0 TCP *:https (LISTEN)
httpd 3063 _www 6u IPv6 0xea28031aaf73b8d1 0t0 TCP *:https (LISTEN)
httpd 3064 _www 6u IPv6 0xea28031aaf73b8d1 0t0 TCP *:https (LISTEN)
httpd 3065 _www 6u IPv6 0xea28031aaf73b8d1 0t0 TCP *:https (LISTEN)
httpd 3066 _www 6u IPv6 0xea28031aaf73b8d1 0t0 TCP *:https (LISTEN)
httpd 3067 _www 6u IPv6 0xea28031aaf73b8d1 0t0 TCP *:https (LISTEN)
httpd 3068 _www 6u IPv6 0xea28031aaf73b8d1 0t0 TCP *:https (LISTEN)
httpd 3678 _www 6u IPv6 0xea28031aaf73b8d1 0t0 TCP *:https (LISTEN)
httpd 3679 _www 6u IPv6 0xea28031aaf73b8d1 0t0 TCP *:https (LISTEN)
httpd 3680 _www 6u IPv6 0xea28031aaf73b8d1 0t0 TCP *:https (LISTEN)
apple:~ office$ sudo lsof -n -iTCP:443 | grep LISTEN
httpd 3057 root 6u IPv6 0xea28031aaf73b8d1 0t0 TCP *:https (LISTEN)
httpd 3063 _www 6u IPv6 0xea28031aaf73b8d1 0t0 TCP *:https (LISTEN)
httpd 3064 _www 6u IPv6 0xea28031aaf73b8d1 0t0 TCP *:https (LISTEN)
httpd 3065 _www 6u IPv6 0xea28031aaf73b8d1 0t0 TCP *:https (LISTEN)
httpd 3066 _www 6u IPv6 0xea28031aaf73b8d1 0t0 TCP *:https (LISTEN)
httpd 3067 _www 6u IPv6 0xea28031aaf73b8d1 0t0 TCP *:https (LISTEN)
httpd 3068 _www 6u IPv6 0xea28031aaf73b8d1 0t0 TCP *:https (LISTEN)
httpd 3678 _www 6u IPv6 0xea28031aaf73b8d1 0t0 TCP *:https (LISTEN)
httpd 3679 _www 6u IPv6 0xea28031aaf73b8d1 0t0 TCP *:https (LISTEN)
httpd 3680 _www 6u IPv6 0xea28031aaf73b8d1 0t0 TCP *:https (LISTEN)
apple:~ office$ sudo lsof -n -i4TCP:443 | grep LISTEN
httpd 3057 root 6u IPv6 0xea28031aaf73b8d1 0t0 TCP *:https (LISTEN)
httpd 3063 _www 6u IPv6 0xea28031aaf73b8d1 0t0 TCP *:https (LISTEN)
httpd 3064 _www 6u IPv6 0xea28031aaf73b8d1 0t0 TCP *:https (LISTEN)
httpd 3065 _www 6u IPv6 0xea28031aaf73b8d1 0t0 TCP *:https (LISTEN)
httpd 3066 _www 6u IPv6 0xea28031aaf73b8d1 0t0 TCP *:https (LISTEN)
httpd 3067 _www 6u IPv6 0xea28031aaf73b8d1 0t0 TCP *:https (LISTEN)
httpd 3068 _www 6u IPv6 0xea28031aaf73b8d1 0t0 TCP *:https (LISTEN)
httpd 3678 _www 6u IPv6 0xea28031aaf73b8d1 0t0 TCP *:https (LISTEN)
httpd 3679 _www 6u IPv6 0xea28031aaf73b8d1 0t0 TCP *:https (LISTEN)
httpd 3680 _www 6u IPv6 0xea28031aaf73b8d1 0t0 TCP *:https (LISTEN)

I found 3057 running and canceled that process. The rest seems to be a program listening for web traffic that I thought would be my server but that is closed. I can’t find a process that is listening after the server program is closed. Anything else I can look into?

Could the port 443 that is listening be on the remote server that redirects that domain name to my person computer?

the server is not off.

It looks like its not easy to get apple to turn off the server:

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.