Keep http VirtualHosts on port 80, so always create http VirtualHosts before creating them on https port 443.
I don't know if this is the best way, but it works.
The Apache documentation on this subject specifies that you need both VirtualHost, one on port 80 and the other on port 443.
We can read in the file wamp64/bin/apache/apache2.4.58/conf/extra/httpd-ssl.conf
# This is the Apache server configuration file providing SSL support.
# When we also provide SSL we have to listen to the
# standard HTTP port and to the HTTPS port
To avoid, as they say in my house, mixing wipes and towels, the VirtualHost port 80 are defined in the httpd-vhosts.conf file and the VirtualHost https port 443 are defined in the httpd-ssl.conf file.
Don't forget to uncomment the lines in the httpd.conf file:
Include conf/extra/httpd-ssl.conf
LoadModule socache_shmcb_module modules/mod_socache_shmcb.so
LoadModule ssl_module modules/mod_ssl.so
Then, you can put the certificates wherever you like, as the paths are defined in the https-ssl.conf file.
There's no need to copy them into the Windows certificate store, it works in https without doing so.
You'll find examples of the files in the c:\wamp64\scripts\httpsFiles\ folder.
---------------------------------------------------------------
Documentation Apache -
Documentation PHP -
Documentation MySQL -
Wampserver install files & addons