go to this site and install this package. it will install php, mysql and apache as well.
in this package there is an option to run localhost at https:
I haven't had to set up SSL on Apache just yet, but you should probably follow this guide:
This will help you set up your Apache server to run SSL, which is what you're attempting to do when you run https. You will need mod_ssl, which may or may not have come with your apache installation. You will have to check in your modules folder in apache. You will then have to modify your Apache configuration file to get it set up for SSL. Remember, you will need an SSL certificate to use SSL.