Install custom sertificate

Hello there, I installed SSL certificate to my email server but it was an error.
I have 3 domains and it subs. The following structure might help describing this.
Domain :
Sub 1 :
Sub 2 :

The domain and the Sub 1 have correctly installed SSL Certificate from StarSSL but the Sub 2, was not correctly gain the certificate.

The problem is and certificates are gained by submitting the provided CSR on the admin page while gaining certificate by generating self-signed CSR.

I installed the certificate for into the path directive /home/user-data/ssl/ and the key file into /home/user-data/ssl/

And then nginx settings in /etc/nginx/conf.d/local.conf also changed by me in the certificate path. from /home/user-data/ssl/ to /home/user-data/ssl/

The access of the site in address _ is done without a problem. but after I restart my system the file /etc/nginx/conf.d/local.conf is automatically reset. Please help me keep this settings to be always exist…!indent preformatted text by 4 spaces

I’m not an expert, but I personally would either get a wildcard ssl (*, or a completely separate ssl for

Thanks for reply. If no way to keep that setting on, your advice will be a good choice.