Use certbot to create cert by dns verification
sudo certbot certonly \
--manual \
--preferred-challenges=dns \
--email your_email@example.com \
--agree-tos \
--no-eff-email \
-d example.com
It will ask you add a TXT record.
sudo certbot certonly \
--manual \
--preferred-challenges=dns \
--email your_email@example.com \
--agree-tos \
--no-eff-email \
-d example.com
It will ask you add a TXT record.