I am using ICS to make a TLS connection using a client certificate in .p12 
format.  This can be done by calling LoadFromFile on the SslCertX509 field of 
TSslContext, which in turn calls TX509Base.LoadFromP12File.

I suspect that there is a bug in the handling of the IncludePKey parameter of 
this procedure - I initially passed croYes to assert that the .p12 file must 
contain the private key, but it was not loaded.  On inspecting the code it 
appears that the private key is only loaded if IncludePKey is set to croTry.  
The situation for IncludeInters appears to be similar, but I haven't tested 

I am using croTry in my code now and the certificate loads and I can make a 
connection no problem :)... but I don't think that this is the intended 
behavior - is that correct?


This e-mail message has been inspected for malicious content.

The information contained in this message and or attachments is intended only 
for the person
or entity to which it is addressed and may contain confidential and/or 
privileged material. Any
review, retransmission, dissemination or other use of, or taking of any action 
in reliance upon,
this information by persons or entities other than the intended recipient is 
prohibited. If you
received this in error, please contact the sender and delete the material from 
any system and
destroy any copies.
Please note that the views and opinions expressed in this message may be those 
of the
individual and not necessarily those of Foodstuffs South Island Ltd.

Thank you.
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be

Reply via email to