[Last Call] Learn how to a build a cloud-first strategyRegister Now


Indy SSL Certificate

Posted on 2006-04-04
Medium Priority
Last Modified: 2008-01-09
I am attempting to write an HTTPS client program with Borland C++ Builder 5.  I am using the Indy components because of their SSL support.  So far I have everything working with HTTP but now I am trying to work SSL into it.

I have downloaded the Indy SSL DLL files but I am having a hard time getting the certificate loaded.  The website I am trying to access is not mine so I do not have direct access to the certificate, but with Internet Explorer I can copy the certificate in the following formats:

DER encoded binar X.509 (.CER)
Base-64 encoded X.509 (.CER)
Cryptographic Message Syntax Standard - PKCS #7 Certiricates (.P7B)

I don't know how to have my program load the certificate and use it for the SSL connection.  When I set the IdSSLIOHandlerSocket->SSLOptions->CertFile variable to the path of the certificate file I get the error "Could not load certificate."

I would like step-by-step instructions for how to get Indy SSL working with the TIdHTTP component.

Thank you in advance for your responses.

Question by:AdrianSRU

Accepted Solution

Mainiacfreakus earned 2000 total points
ID: 16375296
Here are examples for how to do it in Delphi...
I am afraid that I don't know C++ that well to help you much futher.
However if you need more help you are welcome to ask and I will do my best.


LVL 12

Author Comment

ID: 16376235
Worked great!  I was trying to get much too complicated with downloading the certificate and trying to specify it in the SSL connection.

Thank you very much.


Featured Post

Vote for the Most Valuable Expert

It’s time to recognize experts that go above and beyond with helpful solutions and engagement on site. Choose from the top experts in the Hall of Fame or on the right rail of your favorite topic page. Look for the blue “Nominate” button on their profile to vote.

Question has a verified solution.

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

The purpose of this article is to demonstrate how we can use conditional statements using Python.
Q&A with Course Creator, Mark Lassoff, on the importance of HTML5 in the career of a modern-day developer.
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …
The viewer will be introduced to the member functions push_back and pop_back of the vector class. The video will teach the difference between the two as well as how to use each one along with its functionality.
Suggested Courses
Course of the Month17 days, 16 hours left to enroll

830 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