{"action":"created","issue":{"url":"https://api.github.com/repos/MISP/MISP/issues/740","labels_url":"https://api.github.com/repos/MISP/MISP/issues/740/labels{/name}","comments_url":"https://api.github.com/repos/MISP/MISP/issues/740/comments","events_url":"https://api.github.com/repos/MISP/MISP/issues/740/events","html_url":"https://github.com/MISP/MISP/issues/740","id":119693048,"number":740,"title":"Sync through proxy","user":{"login":"elhoim","id":178521,"avatar_url":"https://avatars.githubusercontent.com/u/178521?v=3","gravatar_id":"","url":"https://api.github.com/users/elhoim","html_url":"https://github.com/elhoim","followers_url":"https://api.github.com/users/elhoim/followers","following_url":"https://api.github.com/users/elhoim/following{/other_user}","gists_url":"https://api.github.com/users/elhoim/gists{/gist_id}","starred_url":"https://api.github.com/users/elhoim/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/elhoim/subscriptions","organizations_url":"https://api.github.com/users/elhoim/orgs","repos_url":"https://api.github.com/users/elhoim/repos","events_url":"https://api.github.com/users/elhoim/events{/privacy}","received_events_url":"https://api.github.com/users/elhoim/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/MISP/MISP/labels/potential-bug","name":"potential-bug","color":"eb6420"},{"url":"https://api.github.com/repos/MISP/MISP/labels/support","name":"support","color":"cc317c"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2015-12-01T10:59:10Z","updated_at":"2015-12-11T14:11:43Z","closed_at":null,"body":"Trying to sync through a proxy.\r\nConnecting to another MISP using HTTPS. No SNI, but the certificate is for **\\*.domain.com** and I try to connect to **misp.domain.com**.\r\n\r\nThe error message on the job page is \"Unable to perform enableCrypto operation on CakeSocket\".\r\nNo additional messages in resque-worker-error.log / resque-scheduler-error.log / error.log or debug.log\r\nNo additional messages in MISP app logs.\r\nEnabling debug does not help since it is executed in a job.\r\n\r\nWgetting the page, after adding the same copy/pasted proxy credentials in the shell; works to get the homepage on the same server.\r\n\r\nUsing debian wheezy latest, php v5.4.45, cakephp v2.7.7, MISP v2.3.169."},"comment":{"url":"https://api.github.com/repos/MISP/MISP/issues/comments/163944846","html_url":"https://github.com/MISP/MISP/issues/740#issuecomment-163944846","issue_url":"https://api.github.com/repos/MISP/MISP/issues/740","id":163944846,"user":{"login":"RichieB2B","id":1461970,"avatar_url":"https://avatars.githubusercontent.com/u/1461970?v=3","gravatar_id":"","url":"https://api.github.com/users/RichieB2B","html_url":"https://github.com/RichieB2B","followers_url":"https://api.github.com/users/RichieB2B/followers","following_url":"https://api.github.com/users/RichieB2B/following{/other_user}","gists_url":"https://api.github.com/users/RichieB2B/gists{/gist_id}","starred_url":"https://api.github.com/users/RichieB2B/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RichieB2B/subscriptions","organizations_url":"https://api.github.com/users/RichieB2B/orgs","repos_url":"https://api.github.com/users/RichieB2B/repos","events_url":"https://api.github.com/users/RichieB2B/events{/privacy}","received_events_url":"https://api.github.com/users/RichieB2B/received_events","type":"User","site_admin":false},"created_at":"2015-12-11T14:11:43Z","updated_at":"2015-12-11T14:11:43Z","body":"I think I fixed the issue. After overcoming a general issue with SSL via proxies in https://github.com/cakephp/cakephp/pull/7834 I managed to add the Proxy-Authorization header to the CONNECT request in https://github.com/cakephp/cakephp/pull/7836\r\n\r\nYou can try this fork that includes above PRs: https://github.com/RichieB2B/cakephp/tree/2.7+fixes"}}