I had the same problem and I made this plugin for that.
https://gist.github.com/jdembowski/aa3cce8ad0d6007b3f4f49a87477f72b
It doesn’t do any checking so make sure that the vhost and cert are in place and working before you use this.
Copy this as https-new-sites.php
into wp-content/mu-plugins
and create a test site. If anything goes awry, delete the plugin and new site and try again.
oh that’s great, just what I needed, on and tested. All the sites get certs via Cloudflare so I don’t need any checks, so for me perfect. Thanks for sharing!
Andy.
]]>