For Programmers: Free Programming Magazines  


Home > Archive > Delphi > January 2006 > HTTP SSL Connection & Invalid Certificates









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author HTTP SSL Connection & Invalid Certificates
arek

2006-01-10, 4:12 am

Hello

I have a problem connecting to webserver thru SSL protocol. I want to send
SOAP request using THTTPRIO component (but which component it is does not
matter I think). There are calls to HttpOpenRequest and HttpSendRequest from
wininet. I must to connect to webserver which have SSL certificate signed by
themselves not by the certified authority center (CA root certificate is not
trusted). So this certificate is bad. I have set option in THTTPRIO
soIgnoreInvalidCerts which puts flags INTERNET_FLAG_IGNORE_CERT_DATE_INVALID
and INTERNET_FLAG_IGNORE_CERT_CN_INVALID to HttpOpenRequest. Connection is
opened successfully, but when I want to send data using HttpSendRequest an
error occurs. Error says that there is not valid certificate.

What can I do?

Regards,
Arek


Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com