OpenSSL and managed certificates on iOS

I'm trying manage certificates on iOS.

I included an openssl library in my project, but I cant get the date of expire the certificate, that is to say, the value "notAfter" that say the date when the certificate will expiry.

In a certificate:
Validity
Not Before: Oct 29 17:39:10 2000 GMT
Not After : Oct 29 17:39:10 2001 GMT

This value is useful to remove it connections when the CA cert has beed expire.
Any suggestion ?
Thanks.
OpenSSL and managed certificates on iOS
 
 
Q