export validity time of cert
specify PEM structure name