Adding a new domain will write the correct entries, for 1 simple domain at least.
Problems occur, when you have more domains. For example you add domain.com (works) but also want to add a second domain linked to this site. So you manually add domain2.com to the same page. now if you visit the page via domain.com your certificate will work, if you visit from domain2.com the connection will fail because of an certificate error.
If you migrate your OLS server NONE of the certificates will work on the new server. First of all not all certificates get copied in the process and even if you manually copy them from one server to the other, the configuration of OLS is wrong and nothing will work.
I wasted 3 full days now with trying to get OLS to work with aaPanel, but my conclusion is.....it's not working.
If you run a new server and start fresh, OLS works ok, but if you want to use it with AApanels other functions.....it breaks. Only NginX and Apache work with all of AApanels features.