Indy SSL Certificate

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.

LVL 12
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

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.


Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
AdrianSRUAuthor Commented:
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.

It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Programming Languages-Other

From novice to tech pro — start learning today.