Hello,
I'm using Virtual Host Templates, and I'm trying to set up the SSL configuration to automatically use files generated by Lets Encrypt. By default, Lets Encrypt SSL certificates and keys are put a folder like this:
I found mention of a variable $VH_DOMAIN to reference the domain part of the template, but that doesn't seem to work here. With the following is set on the SSL page of my template:
Private Key: /etc/letsencrypt/live/$VH_DOMAIN/privkey.pem
Certificate: /etc/letsencrypt/live/$VH_DOMAIN/fullchain.pem
Looking at the error log, it seems the variable $VH_DOMAIN does not resolve:
> Path for certificate file is invalid: /etc/letsencrypt/live/$VH_DOMAIN/fullchain.pem
Also, if an alias domain matches, what will $VH_DOMAIN resolve to (the specific alias or the domain)? Since I'm trying to set up SSL, I need a variable that exactly matches the domain the user requested.
Thanks,
Mike Kasprzak