• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 300
  • Last Modified:

Downloading files using WinInet

How to download a file using HTTPS connection from a server? The file is  digitally signed by verisign CA.

I use wininet functions (CInternetFile->Read...) to download the file. But I got the signed file only. Not the original format. What are the steps I have to follow to retrieve the original format.

  • 2
1 Solution
Have youy looked here?
   Signing Data
in particular,...
   Decoding Signed Data

...and the example C code looks to be right on point.

Also note, that it is irrelevant whether you used WinInet to get the file or somebody sent you an email with an attachment or if somebody tied two cans together with a string and yells ones and zeros into them -- once you have the signed file, you then work with it to verify it and decrypt it.

-- Dan
URLDownLoadToFile does that.
My comment should be considered a correct answer.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Introducing Cloud Class® training courses

Tech changes fast. You can learn faster. That’s why we’re bringing professional training courses to Experts Exchange. With a subscription, you can access all the Cloud Class® courses to expand your education, prep for certifications, and get top-notch instructions.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now