Probably the title is wrong, but here I try to explain my problem:
I want my users to access UCP with WebRTC enabled and working. I know that for that to happen I need a certificate which has to be accepted by the browsers.
What I do for my other APPS (nextcloud, odoo, etc.) is to use a reverse proxy server which also generates Let’s Encrypt certificates. I have just one public IP address and the port 80 in this IP is forwarded to the reverse proxy server.
What I did, for simplicity, was to access the PBX directly without reverse proxy. I manually copied the certificates (eg. pbx.mydomain.com) from the reverse proxy to the PBX server, then applied the certificate to UCP and apache from the GUI and everything is working great.
UCP is working fine, with the WebRTC and all.
The problem is that this certificate is going to expire soon, what is normal in Let’s Encrypt, but I won’t have the benefit of auto renewal as I have in my other apps because I migrated the certificate manually. I will have to do it again every time the certificate is near expiration.
I want your suggestions of how can I automate this process. I can have a script to copy the certificates daily, but I don’t know exactly where to put them or if I need some extra work. Also I think I should put the certificates in apache configuration. Thank you.