You can create a self-signed SSL certificate and then create a web application with SSL and your own certificate on your local computer in IIS (use a URL like http: //dummy.test and add this to the hosts file in the c: \ folder windows \ system32 \ drivers \ etc, specify it 127.0.0.1), then run VS, join the w3wp.exe process, and you can debug it.
SSL IIS 6.0 Resource Kit SelfSSL