Letsencrypt certificates - two domains (pbx.example.com, pbx5.example.com)

Going to test what you posted.

Question.
Since FreePBX generates its own pem file when you import, how do you handle the renew?

A post hook as mentioned in another post? Some other method?

Okay, tried this and things do not want to work right. What @dicko posted works but…

I am unable to assign the certificate to Apache in Sysadmin.
image

So I poked a bit. The linked files are there and the fwconsole command to import works.

You can see the new .pem file was created

So i deleted it from Certificate manager (it only deleted the pem file as it should)
image

Then tried to use the “Import Locally” button, and nope…

Edit:
I deleted all certs, but left the self signed CA itself.

image

I then imported the certbot cert.

image

Then I tried to make it default in the GUI and got this error.

So i did it from CLI and it worked.

image

But I am still unable to use the certificate for Apache, even though it is the only certificate.
image
image