Do you have a Let’s Encrypt SSL certificate configured, or do you have a custom certificate?
If you have a custom certificate, could you please check in the “Certificates” module of VitalPBX if the “chain” field has a value? If it doesn’t, you can set the content of the chain file provided by the certificate issuer in this field. Alternatively, you can copy the content from the “Certificate” field to the “chain” field.
After that, please try running the commands I provided again.