[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now


Downloading files using WinInet

Posted on 2006-05-11
Medium Priority
Last Modified: 2010-04-24
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.

Question by:prabha_venkat
  • 2
LVL 49

Accepted Solution

DanRollins earned 2000 total points
ID: 16694285
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

Expert Comment

ID: 16697696
URLDownLoadToFile does that.
LVL 49

Expert Comment

ID: 16938800
My comment should be considered a correct answer.

Featured Post

Prep for the ITIL® Foundation Certification Exam

December’s Course of the Month is now available! Enroll to learn ITIL® Foundation best practices for delivering IT services effectively and efficiently.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The following diagram presents a diamond class hierarchy: As depicted, diamond inheritance denotes when two classes (e.g., CDerived1 and CDerived2), separately extending a common base class (e.g., CBase), are sub classed simultaneously by a fourt…
In Easy String Encryption Using CryptoAPI in C++ (http://www.experts-exchange.com/viewArticle.jsp?aid=1193) I described how to encrypt text and recommended that the encrypted text be stored as a series of hexadecimal digits -- because cyphertext may…
We’ve all felt that sense of false security before—locking down external access to a database or component and feeling like we’ve done all we need to do to secure company data. But that feeling is fleeting. Attacks these days can happen in many w…
Is your data getting by on basic protection measures? In today’s climate of debilitating malware and ransomware—like WannaCry—that may not be enough. You need to establish more than basics, like a recovery plan that protects both data and endpoints.…
Suggested Courses

873 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question