Added checks for not well defined expiration date.
Added more methods to cert