These forums are locked and archived, but all topics have been migrated to the new forum. You can search for this topic on the new forum: Search for Feature: Let's Encrypt certifcates & ServerAlias on the new forum.
Could you add following feature:
Like with:
grep -E "ServerName|ServerAlias" /etc/apache2/sites-available/"$mydomain".conf | sed -E 's/ServerName |ServerAlias //g' | sort | uniq