[gnutls-help] Detect whether certificate is self-signed

Ted Zlatanov tzz at lifelogs.com
Wed Dec 24 13:28:22 CET 2014

On Sun, 21 Dec 2014 18:19:38 +0100 David Engster <deng at randomsample.de> wrote: 

DE> Nikos Mavrogiannopoulos writes:

>> Said that, the easiest way to check for a self-signed certificate is
>> using gnutls_x509_crt_check_issuer() against itself.

DE> ...that's way simpler. :-)

Could this be abstracted into a function so, if GnuTLS implements it
differently in the future (following the RFC or something else), clients
don't have to be changed?  It seems to be fairly useful.


More information about the Gnutls-help mailing list