{"action":"created","issue":{"url":"https://api.github.com/repos/elastic/logstash-forwarder/issues/399","labels_url":"https://api.github.com/repos/elastic/logstash-forwarder/issues/399/labels{/name}","comments_url":"https://api.github.com/repos/elastic/logstash-forwarder/issues/399/comments","events_url":"https://api.github.com/repos/elastic/logstash-forwarder/issues/399/events","html_url":"https://github.com/elastic/logstash-forwarder/issues/399","id":59217183,"number":399,"title":"Openssl command from documentation produces unusable certificates","user":{"login":"gebi","id":659,"avatar_url":"https://avatars.githubusercontent.com/u/659?v=3","gravatar_id":"","url":"https://api.github.com/users/gebi","html_url":"https://github.com/gebi","followers_url":"https://api.github.com/users/gebi/followers","following_url":"https://api.github.com/users/gebi/following{/other_user}","gists_url":"https://api.github.com/users/gebi/gists{/gist_id}","starred_url":"https://api.github.com/users/gebi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gebi/subscriptions","organizations_url":"https://api.github.com/users/gebi/orgs","repos_url":"https://api.github.com/users/gebi/repos","events_url":"https://api.github.com/users/gebi/events{/privacy}","received_events_url":"https://api.github.com/users/gebi/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-02-27T10:22:33Z","updated_at":"2015-03-15T04:21:38Z","closed_at":null,"body":"Hi,\r\n\r\nThe openssl command from https://github.com/elasticsearch/logstash-forwarder/blob/master/README.md#generating-an-ssl-certificate produces a certificate without a `DN`, which makes the certificate validation of go reject it.\r\n\r\n```\r\nopenssl req -x509 -batch -nodes -newkey rsa:2048 -keyout logstash-forwarder.key -out logstash-forwarder.crt -days 365\r\n```\r\n\r\nThe correct command would be without `-batch` and input the machines hostname used to connect as DN (all other values could be left at their default values, \"Internet Widgits Pty Ltd\" ftw):\r\n```\r\nopenssl req -x509 -nodes -newkey rsa:2048 -keyout logstash-forwarder.key -out logstash-forwarder.crt -days 365\r\n```"},"comment":{"url":"https://api.github.com/repos/elastic/logstash-forwarder/issues/comments/80840199","html_url":"https://github.com/elastic/logstash-forwarder/issues/399#issuecomment-80840199","issue_url":"https://api.github.com/repos/elastic/logstash-forwarder/issues/399","id":80840199,"user":{"login":"jordansissel","id":131818,"avatar_url":"https://avatars.githubusercontent.com/u/131818?v=3","gravatar_id":"","url":"https://api.github.com/users/jordansissel","html_url":"https://github.com/jordansissel","followers_url":"https://api.github.com/users/jordansissel/followers","following_url":"https://api.github.com/users/jordansissel/following{/other_user}","gists_url":"https://api.github.com/users/jordansissel/gists{/gist_id}","starred_url":"https://api.github.com/users/jordansissel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jordansissel/subscriptions","organizations_url":"https://api.github.com/users/jordansissel/orgs","repos_url":"https://api.github.com/users/jordansissel/repos","events_url":"https://api.github.com/users/jordansissel/events{/privacy}","received_events_url":"https://api.github.com/users/jordansissel/received_events","type":"User","site_admin":false},"created_at":"2015-03-15T04:21:38Z","updated_at":"2015-03-15T04:21:38Z","body":"#428 up for review."}}