iDevice GnuTLS issue with iOS 4.2 - libimobiledevice

Nikos Mavrogiannopoulos nmav at gnutls.org
Wed Nov 24 09:29:29 CET 2010


On 11/24/2010 06:25 AM, Nikias Bassen wrote:
> Hi,
> 
> we found out that the certificate checking is more strict now as it seems. I
> have the following question. Using openssl, we do the following:
> 
> 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.

regards,
Nikos




More information about the Gnutls-devel mailing list