{"action":"created","issue":{"url":"https://api.github.com/repos/ipfs/ipfs-cluster/issues/279","repository_url":"https://api.github.com/repos/ipfs/ipfs-cluster","labels_url":"https://api.github.com/repos/ipfs/ipfs-cluster/issues/279/labels{/name}","comments_url":"https://api.github.com/repos/ipfs/ipfs-cluster/issues/279/comments","events_url":"https://api.github.com/repos/ipfs/ipfs-cluster/issues/279/events","html_url":"https://github.com/ipfs/ipfs-cluster/issues/279","id":285609100,"node_id":"MDU6SXNzdWUyODU2MDkxMDA=","number":279,"title":"server gave HTTP response to HTTPS client","user":{"login":"jbenet","id":138401,"node_id":"MDQ6VXNlcjEzODQwMQ==","avatar_url":"https://avatars2.githubusercontent.com/u/138401?v=4","gravatar_id":"","url":"https://api.github.com/users/jbenet","html_url":"https://github.com/jbenet","followers_url":"https://api.github.com/users/jbenet/followers","following_url":"https://api.github.com/users/jbenet/following{/other_user}","gists_url":"https://api.github.com/users/jbenet/gists{/gist_id}","starred_url":"https://api.github.com/users/jbenet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jbenet/subscriptions","organizations_url":"https://api.github.com/users/jbenet/orgs","repos_url":"https://api.github.com/users/jbenet/repos","events_url":"https://api.github.com/users/jbenet/events{/privacy}","received_events_url":"https://api.github.com/users/jbenet/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2018-01-03T06:40:49Z","updated_at":"2018-06-01T15:11:24Z","closed_at":"2018-06-01T15:11:24Z","author_association":"MEMBER","body":"Trying to use basic auth w/ https\r\n\r\nmy cluster node's config has:\r\n\r\n```\r\n  \"api\": {\r\n    \"restapi\": {\r\n      ...\r\n      \"basic_auth_credentials\": {\r\n        \"theuser\": \"thepass\"\r\n      }\r\n    }\r\n  },\r\n```\r\n\r\n\r\n`ipfs-cluster-ctl` fails\r\n```\r\n> ipfs-cluster-ctl --host /ip4/1.2.3.4/tcp/9094 --basic-auth \"theuser:thepass\" id\r\nAn error occurred:\r\n  Code: 0\r\n  Message: Get https://1.2.3.4:9094/id: http: server gave HTTP response to HTTPS client\r\n```\r\n\r\nGuessing i have to enable \"https\" on ipfs-cluster-service somehow. but not sure how. config opt?\r\n\r\n---\r\n\r\n`ipfs-cluster-ctl --force-http` works\r\n```\r\n> ipfs-cluster-ctl --host /ip4/1.2.3.4/tcp/9094 --basic-auth \"theuser:thepass\" --force-http id\r\nQmb....\r\n  > Addresses:\r\n     ....\r\n```\r\n\r\ncurl w/ http basic auth works:\r\n\r\n```\r\n> curl --basic --user theuser:thepass http://1.2.3.4:9094/id\r\n{\"id\": ... }\r\n```\r\n\r\ncurl w/ **https** basic auth fails:\r\n\r\n```\r\n> curl --basic --user theuser:thepass https://1.2.3.4:9094/id\r\ncurl: (35) Unknown SSL protocol error in connection to 1.2.3.4:-9847\r\n```"},"comment":{"url":"https://api.github.com/repos/ipfs/ipfs-cluster/issues/comments/393910985","html_url":"https://github.com/ipfs/ipfs-cluster/issues/279#issuecomment-393910985","issue_url":"https://api.github.com/repos/ipfs/ipfs-cluster/issues/279","id":393910985,"node_id":"MDEyOklzc3VlQ29tbWVudDM5MzkxMDk4NQ==","user":{"login":"hsanjuan","id":1027022,"node_id":"MDQ6VXNlcjEwMjcwMjI=","avatar_url":"https://avatars3.githubusercontent.com/u/1027022?v=4","gravatar_id":"","url":"https://api.github.com/users/hsanjuan","html_url":"https://github.com/hsanjuan","followers_url":"https://api.github.com/users/hsanjuan/followers","following_url":"https://api.github.com/users/hsanjuan/following{/other_user}","gists_url":"https://api.github.com/users/hsanjuan/gists{/gist_id}","starred_url":"https://api.github.com/users/hsanjuan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hsanjuan/subscriptions","organizations_url":"https://api.github.com/users/hsanjuan/orgs","repos_url":"https://api.github.com/users/hsanjuan/repos","events_url":"https://api.github.com/users/hsanjuan/events{/privacy}","received_events_url":"https://api.github.com/users/hsanjuan/received_events","type":"User","site_admin":false},"created_at":"2018-06-01T15:11:24Z","updated_at":"2018-06-01T15:11:24Z","author_association":"CONTRIBUTOR","body":"We expose the http API through libp2p since a while ago. closing this. #349 "}}
{"actor":{"display_login":"hsanjuan"}}