Arno Garrels wrote:
> jlist wrote:
>> Hello Arno,
>> 
>> Thanks for the reply.
>> 
>>>> 3. After I generated the cert files, HttpsTst demo worked fine. My
>>>> question here is, is there an easy way to use an embedded cert and
>>>> key string, as opposed to external files? I notice that the
>>>> SslContext class takes file names.
>> 
>>> No way, however both are required only if the server requests a
>>> client certificate which is mostly not the case.
>> 
>> Do you mean it's not a good idea, or it's not technically possible?

Usually you do not need a certificate to connect to a SSL server.
Your client might however communicate with multiple servers requesting 
a client certificate. If that is case leave both properties unassigned 
and handle event OnSslCliCertRequest instead, this is demonstrated in
the HttpsTst demo.

>> Because to me the file content is just a string. Can I set a
>> string property in SslContext instead of a file name?

Uhh, sorry, I probably missed the point. What do you want to achieve?

--
Arno Garrels
-- 
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