Configurations having certificates - any way to extract info, like expiration date from them

Hi all

Many devices configurations are stored in NA and i see certificates stored there as well. Does anyone know of a way to extract that info into useful information directly from the configuration or do i need to run a show command via Diagnostic to determine expiration date.

Thank you