This got essential after Facebook mandatorily required https as referrer url for facebook login.
This guide I followed entirely and it worked like a charm: https://www.proy.info/how-to-enable-localhost-https-on-wamp-server/
I used answer of alexkb at https://stackoverflow.com/questions/2355568/create-a-openssl-certificate-on-windows for creating cert and private key.
openssl req -x509 -nodes -days 365 -newkey rsa:2048 -keyout privatekey.key -out certificate.crt
For setting up virtual host, paste following in httpd-vhosts.conf
say you setup https://social.dev.com then you also need to setup in etc/hosts for social.dev.com without https. So one entry in hosts file for http and one for https.
Options Indexes FollowSymLinks MultiViews