iDevice GnuTLS issue with iOS 4.2 - libimobiledevice

Nikos Mavrogiannopoulos nmav at gnutls.org
Wed Nov 24 12:17:49 CET 2010


On Wed, Nov 24, 2010 at 11:05 AM, Nikias Bassen <nikias at gmx.li> wrote:
>> > if (SSL_CTX_use_certificate_file(ssl_ctx,
>> >   "/path/to/certificate.pem",
>> >   SSL_FILETYPE_PEM) != 1) {
>> >     debug_info("WARNING: Could not load RootCertificate");
>> > }
>> > if (SSL_CTX_use_RSAPrivateKey_file(ssl_ctx,
>> >   "/path/to/privatekey.pem",
>> >   SSL_FILETYPE_PEM) != 1) {
>> >     debug_info("WARNING: Could not load RootPrivateKey");
>> > }
>> > What is the equivalent to this when using gnutls?
>> Check gnutls_certificate_set_x509_key_file() and the examples in the
>> gnutls manual.
> These functions are intended for the server, right? Remember we are on the
> client side. Does that make any difference?

No. They are functions for the one that wants to use certificate (it can be
either server or client). The only distinction between server and
client in gnutls
is being done in gnutls_init(). Most of the other functions are applicable to
both unless they mention otherwise in the description.

regards,
Nikos




More information about the Gnutls-devel mailing list