I have the following setup:
A Domain example.com
2 Servers: server1.example.com and server2.example.com
I would like to use srv records to have expressive domain names for each of my services. For example ssh.server1.example.com and imap.server2.example.com, and map these to specific ports using the srv records.
Now as I have understood letsencrypt needs to run on port 80 to verify a domain. If I now have ssh.server1.example.com mapped to server1.example.com and port 2222, would it be possible to get a certificate from letsencrypt? Will they just use the IP in the srv record and still look at port 80, or do I absolutely need an A record. I would not like to do that, neither would I map *.example.com somewhere.
Thanks in advance!