Quick background case: If I use Softaculous to install WP in cPanel, I can specify which protocol I would like the site to be in... (so they have something that addresses this).
However with my multisite network, whenever I (or a user) creates a new site, the site URL is created exclusively as
http protocol, and needs to be updated manually later to
So far I have searched high and low and not found anything (code, tutorial or packaged plugin) that does this. Everything I've found focuses on fixing the problem after the fact via redirects and/or find and replace (which is not what this question is about).
In my research I have found
wpmu_new_blog... maybe this could be used to set the protocol somehow?
(Incorporating a comment of mine):
Also found What does $scheme in site_url function do?, which references
$scheme, which may be relevant (not sure if this can be incorporated with the
Perhaps these components could be used to create a (hopefully) "simple"
I don't know if that is a valid approach, or how these components could be used together, but that is my research has brought so far.