Acme.sh script to obtain certificate if SSH port is not 22
Budget: $10 – $30 AUD
PROBLEM
We have currently moved our webserver from SSH port 22 to 19999 and we have problems obtaining certificates from acme.sh. Currently our /etc/ssh/sshd_config on the server has the following line which disallows all port 22 traffic:
Port 19999
Now if we run the following acme.sh command:
./acme.sh --debug --server letsencrypt --issue -w /var/www/html/redmine -d www.our-domain.com
Now acme says that it cannot establish connection.
If we revert back to port 22 it works just fine.
TASK
Replicate the situation on your own server and supply us with an amended acme.sh command to get let's encrypt certificate so that it can be used with our custom SSH port.
A very easy question to anybody who dealt with acme.sh and let's encrypt certificates extensively.
And $20 is yours once we confirmed it works on our end.
We have currently moved our webserver from SSH port 22 to 19999 and we have problems obtaining certificates from acme.sh. Currently our /etc/ssh/sshd_config on the server has the following line which disallows all port 22 traffic:
Port 19999
Now if we run the following acme.sh command:
./acme.sh --debug --server letsencrypt --issue -w /var/www/html/redmine -d www.our-domain.com
Now acme says that it cannot establish connection.
If we revert back to port 22 it works just fine.
TASK
Replicate the situation on your own server and supply us with an amended acme.sh command to get let's encrypt certificate so that it can be used with our custom SSH port.
A very easy question to anybody who dealt with acme.sh and let's encrypt certificates extensively.
And $20 is yours once we confirmed it works on our end.