Issue #27 check cert and key files