Re: interactive ssl cert handling



On 03/28/2010 07:21 PM, Clint Adams wrote:
> Could someone advise on the best way to implement a callback
> (in soup_ssl_get_client_credentials?) so that a libsoup-using
> application can do interactive SSL certificate validation?

You can't. You can either accept all certificates or automatically
reject all bad ones. As of 2.30, there's an API for being able to accept
bad ones but provide a UI hint (SOUP_SESSION_SSL_STRICT /
SOUP_MESSAGE_CERTIFICATE_TRUSTED), but there's not yet a way to pop up
confusing dialogs that the user doesn't understand. This will eventually
be added, when TLS support for GSocket is finished and libsoup is ported
to that; hopefully for 2.32/3.0

-- Dan


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]