{"action":"created","issue":{"url":"https://api.github.com/repos/guzzle/guzzle/issues/1298","labels_url":"https://api.github.com/repos/guzzle/guzzle/issues/1298/labels{/name}","comments_url":"https://api.github.com/repos/guzzle/guzzle/issues/1298/comments","events_url":"https://api.github.com/repos/guzzle/guzzle/issues/1298/events","html_url":"https://github.com/guzzle/guzzle/pull/1298","id":115434488,"number":1298,"title":"SSL Stream Context Options Expanded","user":{"login":"Blackout","id":111248,"avatar_url":"https://avatars.githubusercontent.com/u/111248?v=3","gravatar_id":"","url":"https://api.github.com/users/Blackout","html_url":"https://github.com/Blackout","followers_url":"https://api.github.com/users/Blackout/followers","following_url":"https://api.github.com/users/Blackout/following{/other_user}","gists_url":"https://api.github.com/users/Blackout/gists{/gist_id}","starred_url":"https://api.github.com/users/Blackout/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Blackout/subscriptions","organizations_url":"https://api.github.com/users/Blackout/orgs","repos_url":"https://api.github.com/users/Blackout/repos","events_url":"https://api.github.com/users/Blackout/events{/privacy}","received_events_url":"https://api.github.com/users/Blackout/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-11-06T05:09:06Z","updated_at":"2015-11-15T09:00:29Z","closed_at":"2015-11-15T09:00:29Z","pull_request":{"url":"https://api.github.com/repos/guzzle/guzzle/pulls/1298","html_url":"https://github.com/guzzle/guzzle/pull/1298","diff_url":"https://github.com/guzzle/guzzle/pull/1298.diff","patch_url":"https://github.com/guzzle/guzzle/pull/1298.patch"},"body":"* Added support for SSL Stream Context Options 'allow_self_signed' & 'verify_peer_name' via options array\r\n* Added StreamHandler::add_allow_self_signed() & StreamHandler::add_verify_peer_name()\r\n* Cleaned up StreamHandler::add_verify() as some code was unreachable\r\n\r\nExample usage:\r\n\r\n```\r\n// Allow self signed certificates & dont verify the peer name\r\n$client = new GuzzleHttp\\Client(['allow_self_signed' => true, 'verify_peer_name' => false]);\r\n```"},"comment":{"url":"https://api.github.com/repos/guzzle/guzzle/issues/comments/156791290","html_url":"https://github.com/guzzle/guzzle/pull/1298#issuecomment-156791290","issue_url":"https://api.github.com/repos/guzzle/guzzle/issues/1298","id":156791290,"user":{"login":"mtdowling","id":190930,"avatar_url":"https://avatars.githubusercontent.com/u/190930?v=3","gravatar_id":"","url":"https://api.github.com/users/mtdowling","html_url":"https://github.com/mtdowling","followers_url":"https://api.github.com/users/mtdowling/followers","following_url":"https://api.github.com/users/mtdowling/following{/other_user}","gists_url":"https://api.github.com/users/mtdowling/gists{/gist_id}","starred_url":"https://api.github.com/users/mtdowling/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mtdowling/subscriptions","organizations_url":"https://api.github.com/users/mtdowling/orgs","repos_url":"https://api.github.com/users/mtdowling/repos","events_url":"https://api.github.com/users/mtdowling/events{/privacy}","received_events_url":"https://api.github.com/users/mtdowling/received_events","type":"User","site_admin":false},"created_at":"2015-11-15T09:00:29Z","updated_at":"2015-11-15T09:00:29Z","body":"It's already possible to add custom stream handler options: http://docs.guzzlephp.org/en/latest/faq.html#how-can-i-add-custom-stream-context-options. I don't think the parameters added in this pull request are easily mapped to curl (verify peer is actually already an option covered by the `verify` request option).\r\n\r\nI think the best thing to do is just use custom stream context options."}}