Many domains and sub-domains local.conf

I think I need to change something in the Mailinabox maintenance files to not create different blocks in local.conf but to issue certificates and provide the certificate information in local.conf for each domain but in the same block.

How do I do that?