Checking expiry of my own certificates
Nikos Mavrogiannopoulos
nmav at gnutls.org
Mon Jun 7 20:08:36 CEST 2010
Michael Welsh Duggan wrote:
> On Mon, 7 Jun 2010 11:37:11 -0400, Simon Josefsson wrote:
>
>> Michael Welsh Duggan <mwd at cert.org> writes:
>>
>>> However, we don't see a way to do that with the certificate/key
>>> pair that we load. gnutls_x509_crt_list_verify() looks close,
>>> however it does not check the activation/expiration times, and we
>>> haven't found a function that lets me get a certificate list from
>>> a gnutls_certificate_credentials_t structure.
>> Doesn't gnutls_x509_crt_list_verify check times? If I read the code for
>> gnutls_certificate_verify_peers2, it calls
>> _gnutls_x509_cert_verify_peers which calls gnutls_x509_crt_list_verify.
>> I can't find any time checks outside of that function.
>
> Yes, you are correct. gnutls_x509_crt_list_verify() does verify the
> times.
>
> I meant to write that gnutls_x509_crt_verify() does not the times.
>
> However, we are still confused on how to get from a
> gnutls_certificate_credentials_t struct to the list of certificates
> that we can pass to gnutls_x509_crt_list_verify().
You cannot. You can use gnutls_certificate_verify_peers2() to use that
list for verification, or you can load the trusted certificates
independently using gnutls_x509_crt_list_import().
regards,
Nikos
More information about the Gnutls-help
mailing list