Lets Encrypt for alias domain


Is there a way to manage auomatically Let’s Encrypt certificates for an alias domain?

I have a domain XYZ.com where Let’s Encrypt activated.
Then I’ve added an alias domain and was hoping it’ll generate the certififcate for both the domain and it’s alias domain.
But instead I’ve got a Let’s Encrypt error 400
If I remove the alias, the 400 error disappears

Am I doing something wrong?

Check your logs why 400 error. When a alias has been added in 1.4 we always create a new certificate…