Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » U++ Core » [SOLVED] Purpose of HttpRequest::SSLCertificate
Re: Purpose of HttpRequest::SSLCertificate [message #51446 is a reply to message #51438] Tue, 26 March 2019 12:09 Go to previous messageGo to previous message
Xemuth is currently offline  Xemuth
Messages: 387
Registered: August 2018
Location: France
Senior Member
Hi Mirek,

Thanks for your reply.

By looking deeply the code of CORE/SSL. In
 bool TcpSocket::SSLImp::Start() 

this Happen :
if(socket.cert.GetCount())
    context.UseCertificate(socket.cert, socket.pkey, socket.asn1);

I guess, the purpose of this is to change the certificate when socket.cert.GetCount() > 0
but the probleme is, with this kind of code :
	HttpRequest requete3(requete2.GetRedirectUrl());
	requete3.GET();
	requete3.StdHeaders(true);
	requete3.SSLCertificate("TEST","TEST",false );
	Cout() <<  requete3.Execute();

this :
  if(socket.cert.GetCount())  
is never equal to true.

may be that attaching the socket to the SSLImp structure does not work well, Or I'm just stupid and didnt understood how to use it Very Happy

What you think about it ?

Thanks in advance.

Best regard
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: The right container
Next Topic: Zlib problem
Goto Forum:
  


Current Time: Thu May 09 21:27:40 CEST 2024

Total time taken to generate the page: 0.02882 seconds