SSL for Wordpress Multisite Domain Mapping

I made wordpress multisite with openlitespeed. In order to support domain mapping, I added "*" to the listener, so how do I set the SSL certificate?
Do I have to add a virtual host and redirect to the root doc of the main domain? then set ssl on the virtual host? if so, how to set it to automatically add virtual hosts when we map domains like in cpanel.


You can set multiple virtual hosts to each domain, and then set the ssl path from each SSL tab of web admin. You can also consider the virtual hosts template method which should save you some time.