I have generated certificate using hashicop vault in my ansible playbook that setups up server. How can I check if certificate is valid ? How can I check how much more time certificate is valid. So that I can generated new certificate only when current one is about to expire.