{"action":"created","issue":{"url":"https://api.github.com/repos/openssl/openssl/issues/6180","repository_url":"https://api.github.com/repos/openssl/openssl","labels_url":"https://api.github.com/repos/openssl/openssl/issues/6180/labels{/name}","comments_url":"https://api.github.com/repos/openssl/openssl/issues/6180/comments","events_url":"https://api.github.com/repos/openssl/openssl/issues/6180/events","html_url":"https://github.com/openssl/openssl/issues/6180","id":320485086,"number":6180,"title":"openssl x509 -checkend incorrect result","user":{"login":"ghadf","id":38997848,"avatar_url":"https://avatars1.githubusercontent.com/u/38997848?v=4","gravatar_id":"","url":"https://api.github.com/users/ghadf","html_url":"https://github.com/ghadf","followers_url":"https://api.github.com/users/ghadf/followers","following_url":"https://api.github.com/users/ghadf/following{/other_user}","gists_url":"https://api.github.com/users/ghadf/gists{/gist_id}","starred_url":"https://api.github.com/users/ghadf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ghadf/subscriptions","organizations_url":"https://api.github.com/users/ghadf/orgs","repos_url":"https://api.github.com/users/ghadf/repos","events_url":"https://api.github.com/users/ghadf/events{/privacy}","received_events_url":"https://api.github.com/users/ghadf/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-05-05T06:43:51Z","updated_at":"2018-05-15T13:54:32Z","closed_at":"2018-05-15T13:54:32Z","author_association":"NONE","body":"`openssl x509 -checkend` may give an incorrect result when the time to check crosses 2050-01-01:\r\n```\r\n$ openssl version\r\nOpenSSL 1.0.2n  7 Dec 2017\r\n\r\n$ openssl s_client -connect openssl.org:443 </dev/null 2>/dev/null | openssl x509 -checkend $(($(date +%s -d '2050-01-01') - $(date +%s) - 2))\r\nCertificate will expire\r\n\r\n$ openssl s_client -connect openssl.org:443 </dev/null 2>/dev/null | openssl x509 -checkend $(($(date +%s -d '2050-01-01') - $(date +%s) - 1))\r\nCertificate will not expire\r\n\r\n$ openssl s_client -connect openssl.org:443 </dev/null 2>/dev/null | openssl x509 -noout -text | grep \"Not After\"\r\n            Not After : Jul 16 11:35:05 2018 GMT\r\n```\r\nAfter some digging, this may be related to #4915, ie X509_cmp_time returns 0. In any case, I notice that a return value of 0 is reported as \"Certificate will not expire\" rather than an error."},"comment":{"url":"https://api.github.com/repos/openssl/openssl/issues/comments/389175215","html_url":"https://github.com/openssl/openssl/issues/6180#issuecomment-389175215","issue_url":"https://api.github.com/repos/openssl/openssl/issues/6180","id":389175215,"user":{"login":"mattcaswell","id":7422273,"avatar_url":"https://avatars0.githubusercontent.com/u/7422273?v=4","gravatar_id":"","url":"https://api.github.com/users/mattcaswell","html_url":"https://github.com/mattcaswell","followers_url":"https://api.github.com/users/mattcaswell/followers","following_url":"https://api.github.com/users/mattcaswell/following{/other_user}","gists_url":"https://api.github.com/users/mattcaswell/gists{/gist_id}","starred_url":"https://api.github.com/users/mattcaswell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mattcaswell/subscriptions","organizations_url":"https://api.github.com/users/mattcaswell/orgs","repos_url":"https://api.github.com/users/mattcaswell/repos","events_url":"https://api.github.com/users/mattcaswell/events{/privacy}","received_events_url":"https://api.github.com/users/mattcaswell/received_events","type":"User","site_admin":false},"created_at":"2018-05-15T13:54:31Z","updated_at":"2018-05-15T13:54:31Z","author_association":"MEMBER","body":"PRs #6181 and #6182 were merged so I think this can be closed now."}}
{"actor":{"display_login":"mattcaswell"}}