Add option to specify certificate expiration (in days)

Hi,

I included your suggestion to set tm_begin to tm_end for non-positive days.
Please review.

Best regards,
Maciej