try using ASN1_TIME_print to get ASN1_TIME data