Now Plesk makes it so easy for us to get Letsencrypt for our customer's website, we would also like that for out webmail and the Plesk panel.
These certificates don't work for other subdomains, but they would work for an URL
For the Plesk-panel I now made a solution by automatically creating a cname within our own domain for each client. On the Plesk panel I have a wildcard-certificate and that way all these cnames are valid.
If for some reason that client switches to another server of ours, they don't need to be notified as that cname always points to the A-record of that domain.
But it could be done more elegant even.
If nginx would be configured in a way that the URL /psa for each secure website would point to https://127.0.0.1:8443 then they would have their plesk panel using their own domainname in https
The same could be done for webmail with the URL /webmail
This would have to point to http://127.0.0.1:7080
The URL needs to be stripped and the subdomain changed, so https://domain.com/webmail becomes http://webmail.domain.com/ pointed to 127.0.0.1:7080
I think I could write this by harvesting the files in /etc/nginx/plesk.conf.d/webmails and /etc/nginx/plesk.conf.d/vhosts and creating an extra configs in /etc/nginx/urls.d which I include with a file in /etc/nginx/conf.d/zz090_url.conf
I could write a proof of concept....
I would prefer a solution from Plesk of course.....
These certificates don't work for other subdomains, but they would work for an URL
For the Plesk-panel I now made a solution by automatically creating a cname within our own domain for each client. On the Plesk panel I have a wildcard-certificate and that way all these cnames are valid.
If for some reason that client switches to another server of ours, they don't need to be notified as that cname always points to the A-record of that domain.
But it could be done more elegant even.
If nginx would be configured in a way that the URL /psa for each secure website would point to https://127.0.0.1:8443 then they would have their plesk panel using their own domainname in https
The same could be done for webmail with the URL /webmail
This would have to point to http://127.0.0.1:7080
The URL needs to be stripped and the subdomain changed, so https://domain.com/webmail becomes http://webmail.domain.com/ pointed to 127.0.0.1:7080
I think I could write this by harvesting the files in /etc/nginx/plesk.conf.d/webmails and /etc/nginx/plesk.conf.d/vhosts and creating an extra configs in /etc/nginx/urls.d which I include with a file in /etc/nginx/conf.d/zz090_url.conf
I could write a proof of concept....
I would prefer a solution from Plesk of course.....