VBA WinHTTP to download file from password proteced https website

Ok, I did it. Here the code: Sub SaveFileFromURL() Dim FileNum As Long Dim FileData() As Byte Dim WHTTP As Object mainUrl = “https://www.website.com/” fileUrl = “https://www.website.com/dir1/dir2/file.xls” filePath = “C:\myfile.xls” myuser = “username” mypass = “password” ‘@David Zemens, I got this by examining webpage code using Chrome, thanks! strAuthenticate = “start-url=%2F&user=” & myuser & “&password=” … Read more

How to give ASP.NET access to a private key in a certificate in the certificate store?

Create / Purchase certificate. Make sure it has a private key. Import the certificate into the “Local Computer” account. Best to use Certificates MMC. Make sure to check “Allow private key to be exported” Based upon which, IIS 7.5 Application Pool’s identity use one of the following. IIS 7.5 Website is running under ApplicationPoolIdentity. Open … Read more