You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
{"payload":{"issueViewerRoute":{"data":{"repository":{"id":"MDEwOlJlcG9zaXRvcnk4MjcyODAyOQ==","isOwnerEnterpriseManaged":false,"owner":{"__typename":"User","userNameDisplayConfiguration":"HANDLE","id":"MDQ6VXNlcjI5ODc2NzQ="},"issue":{"id":"MDU6SXNzdWUyMTc3MTU5ODA=","number":1,"repository":{"id":"MDEwOlJlcG9zaXRvcnk4MjcyODAyOQ==","databaseId":82728029,"name":"websockex","isArchived":false,"nameWithOwner":"dominicletz/websockex","viewerCanInteract":false,"viewerInteractionLimitReasonHTML":"","slashCommandsEnabled":false,"visibility":"PUBLIC","viewerCanPush":false,"issueFields":{"totalCount":0},"pinnedIssueFields":{"nodes":[]},"owner":{"__typename":"User","login":"dominicletz","id":"MDQ6VXNlcjI5ODc2NzQ=","url":"https://github.com/dominicletz","databaseId":2987674,"planningStatuses":null},"isPrivate":false,"isWritable":true,"isOwnerEnterpriseManaged":false,"viewerCanPinIssues":false,"isCopilotAgentEnabled":null,"issueTypes":{"edges":[{"node":{"id":"IT_kwDOAC2Wms4CohC8"}},{"node":{"id":"IT_kwDOAC2Wms4CohC9"}},{"node":{"id":"IT_kwDOAC2Wms4CohC-"}}]},"viewerIssueCreationPermissions":{"triageable":false},"pinnedIssues":{"totalCount":0}},"viewerCanAssign":false,"viewerCanLabel":false,"viewerCanSetMilestone":false,"viewerCanSetFields":false,"viewerCanType":false,"viewerCanUpdateMetadata":false,"issueType":null,"assignedActors":{"nodes":[]},"labels":{"pageInfo":{"hasNextPage":false,"endCursor":"MQ"},"edges":[{"node":{"id":"MDU6TGFiZWw1NDQ4MjYwMDg=","fullDatabaseId":"544826008","color":"128A0C","name":"help wanted","nameHTML":"help wanted","description":null,"url":"https://github.com/dominicletz/websockex/labels/help%20wanted","archivedAt":null}}]},"milestone":{"id":"MDk6TWlsZXN0b25lMjU2NjA1Mg==","title":"v1.0.0","closed":false,"closedAt":null,"dueOn":null,"progressPercentage":100.0,"url":"https://github.com/dominicletz/websockex/milestone/1"},"issueFieldValues":{"nodes":[]},"projectItems":{"edges":[],"pageInfo":{"endCursor":null,"hasNextPage":false}},"agentAssignments":[],"linkedPullRequests":{"nodes":[{"id":"PR_kwDOBO5UXc8AAAABKHvebw","url":"https://github.com/dominicletz/websockex/pull/144","number":144,"title":"Verify TLS peers by default","state":"MERGED","isDraft":false,"isInMergeQueue":false,"createdAt":"2026-10-22T21:10:54Z","databaseId":4974173807,"repository":{"id":"MDEwOlJlcG9zaXRvcnk4MjcyODAyOQ==","name":"websockex","nameWithOwner":"dominicletz/websockex","owner":{"id":"MDQ6VXNlcjI5ODc2NzQ=","login":"dominicletz","__typename":"User"}},"__typename":"PullRequest"}]},"closedByPullRequestsReferences":{"nodes":[{"id":"PR_kwDOBO5UXc8AAAABKHvebw","number":144,"url":"https://github.com/dominicletz/websockex/pull/144","state":"MERGED","databaseId":4974173807}]},"updatedAt":"2026-10-22T23:02:13Z","title":"SSL peers aren't verfied","titleHTML":"SSL peers aren't verfied","url":"https://github.com/dominicletz/websockex/issues/1","totalCommentsCount":7,"viewerCanUpdateNext":false,"viewerCanSetStatus":false,"subIssuesSummary":{"total":0,"completed":0},"state":"CLOSED","stateReason":"COMPLETED","status":null,"duplicateOf":null,"locked":false,"viewerCanComment":false,"databaseId":217715980,"createdAt":"2017-03-28T22:51:30Z","viewerDidAuthor":false,"author":{"avatarUrl":"https://avatars.githubusercontent.com/u/141295?v=4","login":"Azolo","id":"MDQ6VXNlcjE0MTI5NQ==","profileUrl":"https://github.com/Azolo","name":"Justin Baker","__typename":"User"},"body":"The Erlang `:ssl` module is very strict in its certification checking. \r\n\r\nThe result of that is that, if I understand correctly, `verify_peer` option works when everything is basically done correctly.\r\n\r\nWhat I found out is that the internet is obviously broken everywhere, the `:ssl` module reliably connects to just about zero of the sites I tried when verifying the peer with CA certs from [`erlang-certifi`](https://github.com/certifi/erlang-certifi).\r\n\r\nSo I tried using the `verify_fun` option with [`ssl_verify_fun.erl`](https://github.com/deadtrickster/ssl_verify_fun.erl), plus the `partial_chain` based off of [`hackney`'s implementation][1]... But it didn't work.\r\n\r\nAfter that I tried a bunch of other stuff and made some progress, changed some more stuff only to find that it still didn't work. So I threw my hands up and made everything insecure by default.\r\n\r\n### **TLDR;**\r\nI'm not smart enough to make the `:ssl` module's `verify_peer` work correctly.\r\n\r\n[1]: https://github.com/benoitc/hackney/blob/ea2012f0d4d97c1ec1a50e840168dff5b48ab97d/src/hackney_connect.erl#L306-L328","bodyHTML":"\u003cp dir=\"auto\"\u003eThe Erlang \u003ccode class=\"notranslate\"\u003e:ssl\u003c/code\u003e module is very strict in its certification checking.\u003c/p\u003e\n\u003cp dir=\"auto\"\u003eThe result of that is that, if I understand correctly, \u003ccode class=\"notranslate\"\u003everify_peer\u003c/code\u003e option works when everything is basically done correctly.\u003c/p\u003e\n\u003cp dir=\"auto\"\u003eWhat I found out is that the internet is obviously broken everywhere, the \u003ccode class=\"notranslate\"\u003e:ssl\u003c/code\u003e module reliably connects to just about zero of the sites I tried when verifying the peer with CA certs from \u003ca href=\"https://github.com/certifi/erlang-certifi\"\u003e\u003ccode class=\"notranslate\"\u003eerlang-certifi\u003c/code\u003e\u003c/a\u003e.\u003c/p\u003e\n\u003cp dir=\"auto\"\u003eSo I tried using the \u003ccode class=\"notranslate\"\u003everify_fun\u003c/code\u003e option with \u003ca href=\"https://github.com/deadtrickster/ssl_verify_fun.erl\"\u003e\u003ccode class=\"notranslate\"\u003essl_verify_fun.erl\u003c/code\u003e\u003c/a\u003e, plus the \u003ccode class=\"notranslate\"\u003epartial_chain\u003c/code\u003e based off of \u003ca href=\"https://github.com/benoitc/hackney/blob/ea2012f0d4d97c1ec1a50e840168dff5b48ab97d/src/hackney_connect.erl#L306-L328\"\u003e\u003ccode class=\"notranslate\"\u003ehackney\u003c/code\u003e's implementation\u003c/a\u003e... But it didn't work.\u003c/p\u003e\n\u003cp dir=\"auto\"\u003eAfter that I tried a bunch of other stuff and made some progress, changed some more stuff only to find that it still didn't work. So I threw my hands up and made everything insecure by default.\u003c/p\u003e\n\u003ch3 dir=\"auto\"\u003e\u003cstrong\u003eTLDR;\u003c/strong\u003e\u003c/h3\u003e\n\u003cp dir=\"auto\"\u003eI'm not smart enough to make the \u003ccode class=\"notranslate\"\u003e:ssl\u003c/code\u003e module's \u003ccode class=\"notranslate\"\u003everify_peer\u003c/code\u003e work correctly.\u003c/p\u003e","bodyVersion":"528b9b38b3b12ac81a5cbeb158b65fe1716ed4d18647eae01b76b4179b2283b8","reactionGroups":[{"content":"THUMBS_UP","viewerHasReacted":false,"reactors":{"totalCount":0,"nodes":[]}},{"content":"THUMBS_DOWN","viewerHasReacted":false,"reactors":{"totalCount":0,"nodes":[]}},{"content":"LAUGH","viewerHasReacted":false,"reactors":{"totalCount":0,"nodes":[]}},{"content":"HOORAY","viewerHasReacted":false,"reactors":{"totalCount":0,"nodes":[]}},{"content":"CONFUSED","viewerHasReacted":false,"reactors":{"totalCount":0,"nodes":[]}},{"content":"HEART","viewerHasReacted":false,"reactors":{"totalCount":0,"nodes":[]}},{"content":"ROCKET","viewerHasReacted":false,"reactors":{"totalCount":0,"nodes":[]}},{"content":"EYES","viewerHasReacted":false,"reactors":{"totalCount":0,"nodes":[]}}],"pinnedIssueComment":null,"__isIssueOrPullRequest":"Issue","isPinned":false,"viewerCanDelete":false,"viewerCanTransfer":false,"viewerCanConvertToDiscussion":false,"viewerCanLock":false,"timelineItems":{"totalCount":14,"beforeFocusCount":0,"afterFocusCount":0,"pageInfo":{"hasNextPage":false,"hasPreviousPage":false,"startCursor":"Y3Vyc29yOnYyOpPPAAABW43x9MABqjEwNTE1OTI5Njg=","endCursor":"Y3Vyc29yOnYyOpPPAAABoWXZxQgBqzM0MDAxNjc1ODE5"},"edges":[{"cursor":"Y3Vyc29yOnYyOpPPAAABW43x9MABqjEwNTE1OTI5Njg=","node":{"__typename":"LabeledEvent","id":"MDEyOkxhYmVsZWRFdmVudDEwNTE1OTI5Njg=","databaseId":1051592968,"createdAt":"2017-04-21T00:38:16Z","actor":{"id":"MDQ6VXNlcjE0MTI5NQ==","avatarUrl":"https://avatars.githubusercontent.com/u/141295?s=64\u0026v=4","login":"Azolo","profileResourcePath":"/Azolo","__typename":"User","name":"Justin Baker"},"label":{"id":"MDU6TGFiZWw1NDQ4MjYwMDg=","archivedAt":null,"nameHTML":"help wanted","name":"help wanted","color":"128A0C","description":null},"intent":null}},{"cursor":"Y3Vyc29yOnYyOpPPAAABW5HchQABqjEwNTI5Mjg3NjU=","node":{"__typename":"RenamedTitleEvent","id":"MDE3OlJlbmFtZWRUaXRsZUV2ZW50MTA1MjkyODc2NQ==","databaseId":1052928765,"createdAt":"2017-04-21T18:53:20Z","actor":{"id":"MDQ6VXNlcjE0MTI5NQ==","avatarUrl":"https://avatars.githubusercontent.com/u/141295?s=64\u0026v=4","login":"Azolo","profileResourcePath":"/Azolo","__typename":"User","name":"Justin Baker"},"currentTitle":"SSL peers aren't verfied","previousTitle":"SSL Connections aren't secure"}},{"cursor":"Y3Vyc29yOnYyOpPPAAABXH8IJDgBqjExMTI0OTUxNjQ=","node":{"__typename":"MilestonedEvent","id":"MDE1Ok1pbGVzdG9uZWRFdmVudDExMTI0OTUxNjQ=","databaseId":1112495164,"createdAt":"2017-06-06T20:10:59Z","actor":{"id":"MDQ6VXNlcjE0MTI5NQ==","avatarUrl":"https://avatars.githubusercontent.com/u/141295?s=64\u0026v=4","login":"Azolo","profileResourcePath":"/Azolo","__typename":"User","name":"Justin Baker"},"milestoneTitle":"v1.0.0","milestone":{"id":"MDk6TWlsZXN0b25lMjU2NjA1Mg==","url":"https://github.com/dominicletz/websockex/milestone/1"}}},{"cursor":"Y3Vyc29yOnYyOpPPAAABXKJrslAAqTMwODE4MzcxMA==","node":{"__typename":"IssueComment","id":"MDEyOklzc3VlQ29tbWVudDMwODE4MzcxMA==","createdAt":"2017-06-13T17:06:26Z","url":"https://github.com/dominicletz/websockex/issues/1#issuecomment-308183710","isHidden":false,"isMinimized":false,"minimizedReason":null,"databaseId":308183710,"viewerDidAuthor":false,"issue":{"id":"MDU6SXNzdWUyMTc3MTU5ODA=","author":{"__typename":"User","id":"MDQ6VXNlcjE0MTI5NQ==","login":"Azolo"},"number":1,"locked":false,"databaseId":217715980},"author":{"__typename":"User","id":"MDQ6VXNlcjEzODk1Mg==","login":"xlphs","avatarUrl":"https://avatars.githubusercontent.com/u/138952?u=285a557271227236f4cb6ad4a03a343b89e5d78b\u0026v=4","profileUrl":"https://github.com/xlphs","name":"Marika Wei"},"authorAssociation":"NONE","viewerCanDelete":false,"viewerCanMinimize":false,"viewerCanUnminimize":false,"viewerCanReport":false,"viewerCanReportToMaintainer":false,"viewerCanBlockFromOrg":false,"viewerCanUnblockFromOrg":false,"viewerCanBlockPersonally":false,"viewerCanUnblockPersonally":false,"viewerCanPin":false,"viewerCanUnpin":false,"viaApp":null,"showSpammyBadge":false,"createdViaEmail":false,"authorToRepoOwnerSponsorship":null,"viewerCanReadUserContentEdits":true,"lastEditedAt":null,"lastUserContentEdit":null,"pinnedBy":null,"body":"Not sure what you are trying to accomplish but you could simply pass ssl options on. I wrote a [short article](https://mw.gl/posts/elixir_ssl/) on `verify_fun` that shows how to do certificate pinning, hopefully it helps.","bodyHTML":"\u003cp dir=\"auto\"\u003eNot sure what you are trying to accomplish but you could simply pass ssl options on. I wrote a \u003ca href=\"https://mw.gl/posts/elixir_ssl/\" rel=\"nofollow\"\u003eshort article\u003c/a\u003e on \u003ccode class=\"notranslate\"\u003everify_fun\u003c/code\u003e that shows how to do certificate pinning, hopefully it helps.\u003c/p\u003e","bodyVersion":"4b33ba4531ae60488e79a439dbb57ecf2589c7b2fac751a7d1d7a746e280c06f","viewerCanUpdate":false,"repository":{"id":"MDEwOlJlcG9zaXRvcnk4MjcyODAyOQ==","name":"websockex","owner":{"__typename":"User","id":"MDQ6VXNlcjI5ODc2NzQ=","login":"dominicletz","url":"https://github.com/dominicletz"},"isPrivate":false,"viewerCanCreateIssues":false,"slashCommandsEnabled":false,"nameWithOwner":"dominicletz/websockex","databaseId":82728029},"reactionGroups":[{"content":"THUMBS_UP","viewerHasReacted":false,"reactors":{"totalCount":0,"nodes":[]}},{"content":"THUMBS_DOWN","viewerHasReacted":false,"reactors":{"totalCount":0,"nodes":[]}},{"content":"LAUGH","viewerHasReacted":false,"reactors":{"totalCount":0,"nodes":[]}},{"content":"HOORAY","viewerHasReacted":false,"reactors":{"totalCount":0,"nodes":[]}},{"content":"CONFUSED","viewerHasReacted":false,"reactors":{"totalCount":0,"nodes":[]}},{"content":"HEART","viewerHasReacted":false,"reactors":{"totalCount":0,"nodes":[]}},{"content":"ROCKET","viewerHasReacted":false,"reactors":{"totalCount":0,"nodes":[]}},{"content":"EYES","viewerHasReacted":false,"reactors":{"totalCount":0,"nodes":[]}}]}},{"cursor":"Y3Vyc29yOnYyOpPPAAABXKM5bkgAqTMwODI0NDY4NA==","node":{"__typename":"IssueComment","id":"MDEyOklzc3VlQ29tbWVudDMwODI0NDY4NA==","createdAt":"2017-06-13T20:51:09Z","url":"https://github.com/dominicletz/websockex/issues/1#issuecomment-308244684","isHidden":false,"isMinimized":false,"minimizedReason":null,"databaseId":308244684,"viewerDidAuthor":false,"issue":{"id":"MDU6SXNzdWUyMTc3MTU5ODA=","author":{"__typename":"User","id":"MDQ6VXNlcjE0MTI5NQ==","login":"Azolo"},"number":1,"locked":false,"databaseId":217715980},"author":{"__typename":"User","id":"MDQ6VXNlcjE0MTI5NQ==","login":"Azolo","avatarUrl":"https://avatars.githubusercontent.com/u/141295?v=4","profileUrl":"https://github.com/Azolo","name":"Justin Baker"},"authorAssociation":"COLLABORATOR","viewerCanDelete":false,"viewerCanMinimize":false,"viewerCanUnminimize":false,"viewerCanReport":false,"viewerCanReportToMaintainer":false,"viewerCanBlockFromOrg":false,"viewerCanUnblockFromOrg":false,"viewerCanBlockPersonally":false,"viewerCanUnblockPersonally":false,"viewerCanPin":false,"viewerCanUnpin":false,"viaApp":null,"showSpammyBadge":false,"createdViaEmail":false,"authorToRepoOwnerSponsorship":null,"viewerCanReadUserContentEdits":true,"lastEditedAt":null,"lastUserContentEdit":null,"pinnedBy":null,"body":"@xlphs Cool, thanks for that article. It actually shows me a different way that the `ssl` module could be used and I need to keep that in mind.\r\n\r\nWhat I am trying to accomplish is just being able to open a tcp socket to a site like `https://google.com` and verify that I am in fact connecting to `https://google.com` through the certificate verification. Erlang's `:ssl` module seems super picky about how you do that.","bodyHTML":"\u003cp dir=\"auto\"\u003e\u003ca class=\"user-mention notranslate\" data-hovercard-type=\"user\" data-hovercard-url=\"/users/xlphs/hovercard\" data-octo-click=\"hovercard-link-click\" data-octo-dimensions=\"link_type:self\" href=\"https://github.com/xlphs\"\u003e@xlphs\u003c/a\u003e Cool, thanks for that article. It actually shows me a different way that the \u003ccode class=\"notranslate\"\u003essl\u003c/code\u003e module could be used and I need to keep that in mind.\u003c/p\u003e\n\u003cp dir=\"auto\"\u003eWhat I am trying to accomplish is just being able to open a tcp socket to a site like \u003ccode class=\"notranslate\"\u003ehttps://google.com\u003c/code\u003e and verify that I am in fact connecting to \u003ccode class=\"notranslate\"\u003ehttps://google.com\u003c/code\u003e through the certificate verification. Erlang's \u003ccode class=\"notranslate\"\u003e:ssl\u003c/code\u003e module seems super picky about how you do that.\u003c/p\u003e","bodyVersion":"89b3ee5a7eae72fde1600a69d5a45d0e76050dcbae25e1d5b44c5a59e4645e89","viewerCanUpdate":false,"repository":{"id":"MDEwOlJlcG9zaXRvcnk4MjcyODAyOQ==","name":"websockex","owner":{"__typename":"User","id":"MDQ6VXNlcjI5ODc2NzQ=","login":"dominicletz","url":"https://github.com/dominicletz"},"isPrivate":false,"viewerCanCreateIssues":false,"slashCommandsEnabled":false,"nameWithOwner":"dominicletz/websockex","databaseId":82728029},"reactionGroups":[{"content":"THUMBS_UP","viewerHasReacted":false,"reactors":{"totalCount":0,"nodes":[]}},{"content":"THUMBS_DOWN","viewerHasReacted":false,"reactors":{"totalCount":0,"nodes":[]}},{"content":"LAUGH","viewerHasReacted":false,"reactors":{"totalCount":0,"nodes":[]}},{"content":"HOORAY","viewerHasReacted":false,"reactors":{"totalCount":0,"nodes":[]}},{"content":"CONFUSED","viewerHasReacted":false,"reactors":{"totalCount":0,"nodes":[]}},{"content":"HEART","viewerHasReacted":false,"reactors":{"totalCount":0,"nodes":[]}},{"content":"ROCKET","viewerHasReacted":false,"reactors":{"totalCount":0,"nodes":[]}},{"content":"EYES","viewerHasReacted":false,"reactors":{"totalCount":0,"nodes":[]}}]}},{"cursor":"Y3Vyc29yOnYyOpPPAAABXSd7ZugAqTMxMzkxOTE1OQ==","node":{"__typename":"IssueComment","id":"MDEyOklzc3VlQ29tbWVudDMxMzkxOTE1OQ==","createdAt":"2017-07-09T13:13:05Z","url":"https://github.com/dominicletz/websockex/issues/1#issuecomment-313919159","isHidden":false,"isMinimized":false,"minimizedReason":null,"databaseId":313919159,"viewerDidAuthor":false,"issue":{"id":"MDU6SXNzdWUyMTc3MTU5ODA=","author":{"__typename":"User","id":"MDQ6VXNlcjE0MTI5NQ==","login":"Azolo"},"number":1,"locked":false,"databaseId":217715980},"author":{"__typename":"User","id":"MDQ6VXNlcjE2MTg4NzQ=","login":"khodzha","avatarUrl":"https://avatars.githubusercontent.com/u/1618874?v=4","profileUrl":"https://github.com/khodzha","name":"Shamir Khodzha"},"authorAssociation":"NONE","viewerCanDelete":false,"viewerCanMinimize":false,"viewerCanUnminimize":false,"viewerCanReport":false,"viewerCanReportToMaintainer":false,"viewerCanBlockFromOrg":false,"viewerCanUnblockFromOrg":false,"viewerCanBlockPersonally":false,"viewerCanUnblockPersonally":false,"viewerCanPin":false,"viewerCanUnpin":false,"viaApp":null,"showSpammyBadge":false,"createdViaEmail":false,"authorToRepoOwnerSponsorship":null,"viewerCanReadUserContentEdits":true,"lastEditedAt":null,"lastUserContentEdit":null,"pinnedBy":null,"body":"maybe you should take a look at elixir-socket?\r\ni was trying to connect to wss://eu-central434.discord.gg:80, elixir-socket could connect, yet websockex returns %WebSockex.ConnError{original: {:tls_alert, 'record overflow'}}","bodyHTML":"\u003cp dir=\"auto\"\u003emaybe you should take a look at elixir-socket?\u003cbr\u003e\ni was trying to connect to wss://eu-central434.discord.gg:80, elixir-socket could connect, yet websockex returns %WebSockex.ConnError{original: {:tls_alert, 'record overflow'}}\u003c/p\u003e","bodyVersion":"1709f89849412a83c5e2ed67ca631fd0d60bea66352a30b84ac6839b6f7e7564","viewerCanUpdate":false,"repository":{"id":"MDEwOlJlcG9zaXRvcnk4MjcyODAyOQ==","name":"websockex","owner":{"__typename":"User","id":"MDQ6VXNlcjI5ODc2NzQ=","login":"dominicletz","url":"https://github.com/dominicletz"},"isPrivate":false,"viewerCanCreateIssues":false,"slashCommandsEnabled":false,"nameWithOwner":"dominicletz/websockex","databaseId":82728029},"reactionGroups":[{"content":"THUMBS_UP","viewerHasReacted":false,"reactors":{"totalCount":0,"nodes":[]}},{"content":"THUMBS_DOWN","viewerHasReacted":false,"reactors":{"totalCount":0,"nodes":[]}},{"content":"LAUGH","viewerHasReacted":false,"reactors":{"totalCount":0,"nodes":[]}},{"content":"HOORAY","viewerHasReacted":false,"reactors":{"totalCount":0,"nodes":[]}},{"content":"CONFUSED","viewerHasReacted":false,"reactors":{"totalCount":0,"nodes":[]}},{"content":"HEART","viewerHasReacted":false,"reactors":{"totalCount":0,"nodes":[]}},{"content":"ROCKET","viewerHasReacted":false,"reactors":{"totalCount":0,"nodes":[]}},{"content":"EYES","viewerHasReacted":false,"reactors":{"totalCount":0,"nodes":[]}}]}},{"cursor":"Y3Vyc29yOnYyOpPPAAABXSf6N8AAqTMxMzkyNjg4Mg==","node":{"__typename":"IssueComment","id":"MDEyOklzc3VlQ29tbWVudDMxMzkyNjg4Mg==","createdAt":"2017-07-09T15:31:36Z","url":"https://github.com/dominicletz/websockex/issues/1#issuecomment-313926882","isHidden":false,"isMinimized":false,"minimizedReason":null,"databaseId":313926882,"viewerDidAuthor":false,"issue":{"id":"MDU6SXNzdWUyMTc3MTU5ODA=","author":{"__typename":"User","id":"MDQ6VXNlcjE0MTI5NQ==","login":"Azolo"},"number":1,"locked":false,"databaseId":217715980},"author":{"__typename":"User","id":"MDQ6VXNlcjE0MTI5NQ==","login":"Azolo","avatarUrl":"https://avatars.githubusercontent.com/u/141295?v=4","profileUrl":"https://github.com/Azolo","name":"Justin Baker"},"authorAssociation":"COLLABORATOR","viewerCanDelete":false,"viewerCanMinimize":false,"viewerCanUnminimize":false,"viewerCanReport":false,"viewerCanReportToMaintainer":false,"viewerCanBlockFromOrg":false,"viewerCanUnblockFromOrg":false,"viewerCanBlockPersonally":false,"viewerCanUnblockPersonally":false,"viewerCanPin":false,"viewerCanUnpin":false,"viaApp":null,"showSpammyBadge":false,"createdViaEmail":false,"authorToRepoOwnerSponsorship":null,"viewerCanReadUserContentEdits":true,"lastEditedAt":null,"lastUserContentEdit":null,"pinnedBy":null,"body":"@khodzha Thanks for the info. I think it's possible that `elixir-socket` is ignoring the `:80` and using port 443 because of the `wss` protocol. I don't think that Discord is handle `SSL` connections on port 80.\r\n\r\n","bodyHTML":"\u003cp dir=\"auto\"\u003e\u003ca class=\"user-mention notranslate\" data-hovercard-type=\"user\" data-hovercard-url=\"/users/khodzha/hovercard\" data-octo-click=\"hovercard-link-click\" data-octo-dimensions=\"link_type:self\" href=\"https://github.com/khodzha\"\u003e@khodzha\u003c/a\u003e Thanks for the info. I think it's possible that \u003ccode class=\"notranslate\"\u003eelixir-socket\u003c/code\u003e is ignoring the \u003ccode class=\"notranslate\"\u003e:80\u003c/code\u003e and using port 443 because of the \u003ccode class=\"notranslate\"\u003ewss\u003c/code\u003e protocol. I don't think that Discord is handle \u003ccode class=\"notranslate\"\u003eSSL\u003c/code\u003e connections on port 80.\u003c/p\u003e","bodyVersion":"9757709ba5be35ce8bbb7335ea808c1460f2ca8d2af8b3f2bf78915a1ec0e09d","viewerCanUpdate":false,"repository":{"id":"MDEwOlJlcG9zaXRvcnk4MjcyODAyOQ==","name":"websockex","owner":{"__typename":"User","id":"MDQ6VXNlcjI5ODc2NzQ=","login":"dominicletz","url":"https://github.com/dominicletz"},"isPrivate":false,"viewerCanCreateIssues":false,"slashCommandsEnabled":false,"nameWithOwner":"dominicletz/websockex","databaseId":82728029},"reactionGroups":[{"content":"THUMBS_UP","viewerHasReacted":false,"reactors":{"totalCount":0,"nodes":[]}},{"content":"THUMBS_DOWN","viewerHasReacted":false,"reactors":{"totalCount":0,"nodes":[]}},{"content":"LAUGH","viewerHasReacted":false,"reactors":{"totalCount":0,"nodes":[]}},{"content":"HOORAY","viewerHasReacted":false,"reactors":{"totalCount":0,"nodes":[]}},{"content":"CONFUSED","viewerHasReacted":false,"reactors":{"totalCount":0,"nodes":[]}},{"content":"HEART","viewerHasReacted":false,"reactors":{"totalCount":0,"nodes":[]}},{"content":"ROCKET","viewerHasReacted":false,"reactors":{"totalCount":0,"nodes":[]}},{"content":"EYES","viewerHasReacted":false,"reactors":{"totalCount":0,"nodes":[]}}]}},{"cursor":"Y3Vyc29yOnYyOpPPAAABXSk7M6AAqTMxMzk2MDg2Ng==","node":{"__typename":"IssueComment","id":"MDEyOklzc3VlQ29tbWVudDMxMzk2MDg2Ng==","createdAt":"2017-07-09T21:22:12Z","url":"https://github.com/dominicletz/websockex/issues/1#issuecomment-313960866","isHidden":false,"isMinimized":false,"minimizedReason":null,"databaseId":313960866,"viewerDidAuthor":false,"issue":{"id":"MDU6SXNzdWUyMTc3MTU5ODA=","author":{"__typename":"User","id":"MDQ6VXNlcjE0MTI5NQ==","login":"Azolo"},"number":1,"locked":false,"databaseId":217715980},"author":{"__typename":"User","id":"MDQ6VXNlcjE2MTg4NzQ=","login":"khodzha","avatarUrl":"https://avatars.githubusercontent.com/u/1618874?v=4","profileUrl":"https://github.com/khodzha","name":"Shamir Khodzha"},"authorAssociation":"NONE","viewerCanDelete":false,"viewerCanMinimize":false,"viewerCanUnminimize":false,"viewerCanReport":false,"viewerCanReportToMaintainer":false,"viewerCanBlockFromOrg":false,"viewerCanUnblockFromOrg":false,"viewerCanBlockPersonally":false,"viewerCanUnblockPersonally":false,"viewerCanPin":false,"viewerCanUnpin":false,"viaApp":null,"showSpammyBadge":false,"createdViaEmail":false,"authorToRepoOwnerSponsorship":null,"viewerCanReadUserContentEdits":true,"lastEditedAt":null,"lastUserContentEdit":null,"pinnedBy":null,"body":"yeah, sorry for trouble\r\ndiscord docs were quite confusing there, connecting without port and with some query params works as expected\r\n:ok_hand: ","bodyHTML":"\u003cp dir=\"auto\"\u003eyeah, sorry for trouble\u003cbr\u003e\ndiscord docs were quite confusing there, connecting without port and with some query params works as expected\u003cbr\u003e\n👌\u003c/p\u003e","bodyVersion":"6dd2f7472d6fd52a59577f89a79170774ac593c4766c30a7ad6f552353791788","viewerCanUpdate":false,"repository":{"id":"MDEwOlJlcG9zaXRvcnk4MjcyODAyOQ==","name":"websockex","owner":{"__typename":"User","id":"MDQ6VXNlcjI5ODc2NzQ=","login":"dominicletz","url":"https://github.com/dominicletz"},"isPrivate":false,"viewerCanCreateIssues":false,"slashCommandsEnabled":false,"nameWithOwner":"dominicletz/websockex","databaseId":82728029},"reactionGroups":[{"content":"THUMBS_UP","viewerHasReacted":false,"reactors":{"totalCount":0,"nodes":[]}},{"content":"THUMBS_DOWN","viewerHasReacted":false,"reactors":{"totalCount":0,"nodes":[]}},{"content":"LAUGH","viewerHasReacted":false,"reactors":{"totalCount":0,"nodes":[]}},{"content":"HOORAY","viewerHasReacted":false,"reactors":{"totalCount":0,"nodes":[]}},{"content":"CONFUSED","viewerHasReacted":false,"reactors":{"totalCount":0,"nodes":[]}},{"content":"HEART","viewerHasReacted":false,"reactors":{"totalCount":0,"nodes":[]}},{"content":"ROCKET","viewerHasReacted":false,"reactors":{"totalCount":0,"nodes":[]}},{"content":"EYES","viewerHasReacted":false,"reactors":{"totalCount":0,"nodes":[]}}]}},{"cursor":"Y3Vyc29yOnYyOpPPAAABfUhF3XAAqTk3NTY0NDk3Ng==","node":{"__typename":"IssueComment","id":"IC_kwDOBO5UXc46Jykw","createdAt":"2021-11-22T15:31:18Z","url":"https://github.com/dominicletz/websockex/issues/1#issuecomment-975644976","isHidden":false,"isMinimized":false,"minimizedReason":null,"databaseId":975644976,"viewerDidAuthor":false,"issue":{"id":"MDU6SXNzdWUyMTc3MTU5ODA=","author":{"__typename":"User","id":"MDQ6VXNlcjE0MTI5NQ==","login":"Azolo"},"number":1,"locked":false,"databaseId":217715980},"author":{"__typename":"User","id":"MDQ6VXNlcjE4MzIzMDk=","login":"brian-petersen","avatarUrl":"https://avatars.githubusercontent.com/u/1832309?v=4","profileUrl":"https://github.com/brian-petersen","name":null},"authorAssociation":"NONE","viewerCanDelete":false,"viewerCanMinimize":false,"viewerCanUnminimize":false,"viewerCanReport":false,"viewerCanReportToMaintainer":false,"viewerCanBlockFromOrg":false,"viewerCanUnblockFromOrg":false,"viewerCanBlockPersonally":false,"viewerCanUnblockPersonally":false,"viewerCanPin":false,"viewerCanUnpin":false,"viaApp":null,"showSpammyBadge":false,"createdViaEmail":false,"authorToRepoOwnerSponsorship":null,"viewerCanReadUserContentEdits":true,"lastEditedAt":null,"lastUserContentEdit":null,"pinnedBy":null,"body":"I spent a good part of yesterday working with Erlang's `:ssl` to get it to work with `[verify: :verify_peer]`. I too found it a bit confusing and hard to work with. I followed Hackney's `:ssl` setup as best I could (as documented [here](https://github.com/benoitc/hackney/blob/c8f3a6c5a837e4554be219f7c21ae8fdb3d01c40/src/hackney_ssl.erl#L40)).\r\n\r\nI got it working to a point -- but I'm not leveraging https://github.com/deadtrickster/ssl_verify_fun.erl like the Hackney project is. I'm not sure what state this puts it in -- but this is the working code I have so far:\r\n\r\n```elixir\r\ndef start_link() do\r\n ssl_options = [\r\n verify: :verify_peer,\r\n depth: 99,\r\n cacertfile: CAStore.file_path(),\r\n customize_hostname_check: [match_fun: :public_key.pkix_verify_hostname_match_fun(:https)]\r\n ]\r\n\r\n WebSockex.start_link(\"wss://example.com/ws\", __MODULE__, state, ssl_options: ssl_options) do\r\nend\r\n```\r\n\r\nThe `CAStore.file_path()` call comes from https://github.com/elixir-mint/castore.\r\n\r\nAs far I can tell, the only thing really missing from this setup is something like this:\r\n\r\n```elixir\r\nssl_options = [\r\n verify: :verify_peer,\r\n depth: 99,\r\n cacertfile: CAStore.file_path(),\r\n customize_hostname_check: [match_fun: :public_key.pkix_verify_hostname_match_fun(:https)],\r\n verify_fun: {\u0026:ssl_verify_hostname.verify_fun/3, [check_hostname: 'URL HERE']},\r\n]\r\n```\r\n\r\n(Notice that `check_hostname` is a charlist.) Hope this helps someone!","bodyHTML":"\u003cp dir=\"auto\"\u003eI spent a good part of yesterday working with Erlang's \u003ccode class=\"notranslate\"\u003e:ssl\u003c/code\u003e to get it to work with \u003ccode class=\"notranslate\"\u003e[verify: :verify_peer]\u003c/code\u003e. I too found it a bit confusing and hard to work with. I followed Hackney's \u003ccode class=\"notranslate\"\u003e:ssl\u003c/code\u003e setup as best I could (as documented \u003ca href=\"https://github.com/benoitc/hackney/blob/c8f3a6c5a837e4554be219f7c21ae8fdb3d01c40/src/hackney_ssl.erl#L40\"\u003ehere\u003c/a\u003e).\u003c/p\u003e\n\u003cp dir=\"auto\"\u003eI got it working to a point -- but I'm not leveraging \u003ca href=\"https://github.com/deadtrickster/ssl_verify_fun.erl\"\u003ehttps://github.com/deadtrickster/ssl_verify_fun.erl\u003c/a\u003e like the Hackney project is. I'm not sure what state this puts it in -- but this is the working code I have so far:\u003c/p\u003e\n\u003cdiv class=\"highlight highlight-source-elixir notranslate position-relative overflow-auto\" dir=\"auto\" data-snippet-clipboard-copy-content=\"def start_link() do\n ssl_options = [\n verify: :verify_peer,\n depth: 99,\n cacertfile: CAStore.file_path(),\n customize_hostname_check: [match_fun: :public_key.pkix_verify_hostname_match_fun(:https)]\n ]\n\n WebSockex.start_link(\u0026quot;wss://example.com/ws\u0026quot;, __MODULE__, state, ssl_options: ssl_options) do\nend\"\u003e\u003cpre class=\"notranslate\"\u003e\u003cspan class=\"pl-k\"\u003edef\u003c/span\u003e \u003cspan class=\"pl-en\"\u003estart_link\u003c/span\u003e\u003cspan class=\"pl-kos\"\u003e(\u003c/span\u003e\u003cspan class=\"pl-kos\"\u003e)\u003c/span\u003e \u003cspan class=\"pl-k\"\u003edo\u003c/span\u003e\n \u003cspan class=\"pl-s1\"\u003essl_options\u003c/span\u003e \u003cspan class=\"pl-c1\"\u003e=\u003c/span\u003e \u003cspan class=\"pl-kos\"\u003e[\u003c/span\u003e\n \u003cspan class=\"pl-pds\"\u003everify: \u003c/span\u003e\u003cspan class=\"pl-pds\"\u003e:verify_peer\u003c/span\u003e\u003cspan class=\"pl-kos\"\u003e,\u003c/span\u003e\n \u003cspan class=\"pl-pds\"\u003edepth: \u003c/span\u003e\u003cspan class=\"pl-c1\"\u003e99\u003c/span\u003e\u003cspan class=\"pl-kos\"\u003e,\u003c/span\u003e\n \u003cspan class=\"pl-pds\"\u003ecacertfile: \u003c/span\u003e\u003cspan class=\"pl-v\"\u003eCAStore\u003c/span\u003e\u003cspan class=\"pl-c1\"\u003e.\u003c/span\u003e\u003cspan class=\"pl-en\"\u003efile_path\u003c/span\u003e\u003cspan class=\"pl-kos\"\u003e(\u003c/span\u003e\u003cspan class=\"pl-kos\"\u003e)\u003c/span\u003e\u003cspan class=\"pl-kos\"\u003e,\u003c/span\u003e\n \u003cspan class=\"pl-pds\"\u003ecustomize_hostname_check: \u003c/span\u003e\u003cspan class=\"pl-kos\"\u003e[\u003c/span\u003e\u003cspan class=\"pl-pds\"\u003ematch_fun: \u003c/span\u003e\u003cspan class=\"pl-v\"\u003e:public_key\u003c/span\u003e\u003cspan class=\"pl-c1\"\u003e.\u003c/span\u003e\u003cspan class=\"pl-en\"\u003epkix_verify_hostname_match_fun\u003c/span\u003e\u003cspan class=\"pl-kos\"\u003e(\u003c/span\u003e\u003cspan class=\"pl-pds\"\u003e:https\u003c/span\u003e\u003cspan class=\"pl-kos\"\u003e)\u003c/span\u003e\u003cspan class=\"pl-kos\"\u003e]\u003c/span\u003e\n \u003cspan class=\"pl-kos\"\u003e]\u003c/span\u003e\n\n \u003cspan class=\"pl-v\"\u003eWebSockex\u003c/span\u003e\u003cspan class=\"pl-c1\"\u003e.\u003c/span\u003e\u003cspan class=\"pl-en\"\u003estart_link\u003c/span\u003e\u003cspan class=\"pl-kos\"\u003e(\u003c/span\u003e\u003cspan class=\"pl-s\"\u003e\"wss://example.com/ws\"\u003c/span\u003e\u003cspan class=\"pl-kos\"\u003e,\u003c/span\u003e \u003cspan class=\"pl-c1\"\u003e__MODULE__\u003c/span\u003e\u003cspan class=\"pl-kos\"\u003e,\u003c/span\u003e \u003cspan class=\"pl-s1\"\u003estate\u003c/span\u003e\u003cspan class=\"pl-kos\"\u003e,\u003c/span\u003e \u003cspan class=\"pl-pds\"\u003essl_options: \u003c/span\u003e\u003cspan class=\"pl-s1\"\u003essl_options\u003c/span\u003e\u003cspan class=\"pl-kos\"\u003e)\u003c/span\u003e \u003cspan class=\"pl-k\"\u003edo\u003c/span\u003e\n\u003cspan class=\"pl-k\"\u003eend\u003c/span\u003e\n\u003cspan class=\"pl-k\"\u003e\u003c/span\u003e\u003c/pre\u003e\u003c/div\u003e\n\u003cp dir=\"auto\"\u003eThe \u003ccode class=\"notranslate\"\u003eCAStore.file_path()\u003c/code\u003e call comes from \u003ca href=\"https://github.com/elixir-mint/castore\"\u003ehttps://github.com/elixir-mint/castore\u003c/a\u003e.\u003c/p\u003e\n\u003cp dir=\"auto\"\u003eAs far I can tell, the only thing really m
10000
issing from this setup is something like this:\u003c/p\u003e\n\u003cdiv class=\"highlight highlight-source-elixir notranslate position-relative overflow-auto\" dir=\"auto\" data-snippet-clipboard-copy-content=\"ssl_options = [\n verify: :verify_peer,\n depth: 99,\n cacertfile: CAStore.file_path(),\n customize_hostname_check: [match_fun: :public_key.pkix_verify_hostname_match_fun(:https)],\n verify_fun: {\u0026amp;:ssl_verify_hostname.verify_fun/3, [check_hostname: 'URL HERE']},\n]\"\u003e\u003cpre class=\"notranslate\"\u003e\u003cspan class=\"pl-s1\"\u003essl_options\u003c/span\u003e \u003cspan class=\"pl-c1\"\u003e=\u003c/span\u003e \u003cspan class=\"pl-kos\"\u003e[\u003c/span\u003e\n \u003cspan class=\"pl-pds\"\u003everify: \u003c/span\u003e\u003cspan class=\"pl-pds\"\u003e:verify_peer\u003c/span\u003e\u003cspan class=\"pl-kos\"\u003e,\u003c/span\u003e\n \u003cspan class=\"pl-pds\"\u003edepth: \u003c/span\u003e\u003cspan class=\"pl-c1\"\u003e99\u003c/span\u003e\u003cspan class=\"pl-kos\"\u003e,\u003c/span\u003e\n \u003cspan class=\"pl-pds\"\u003ecacertfile: \u003c/span\u003e\u003cspan class=\"pl-v\"\u003eCAStore\u003c/span\u003e\u003cspan class=\"pl-c1\"\u003e.\u003c/span\u003e\u003cspan class=\"pl-en\"\u003efile_path\u003c/span\u003e\u003cspan class=\"pl-kos\"\u003e(\u003c/span\u003e\u003cspan class=\"pl-kos\"\u003e)\u003c/span\u003e\u003cspan class=\"pl-kos\"\u003e,\u003c/span\u003e\n \u003cspan class=\"pl-pds\"\u003ecustomize_hostname_check: \u003c/span\u003e\u003cspan class=\"pl-kos\"\u003e[\u003c/span\u003e\u003cspan class=\"pl-pds\"\u003ematch_fun: \u003c/span\u003e\u003cspan class=\"pl-v\"\u003e:public_key\u003c/span\u003e\u003cspan class=\"pl-c1\"\u003e.\u003c/span\u003e\u003cspan class=\"pl-en\"\u003epkix_verify_hostname_match_fun\u003c/span\u003e\u003cspan class=\"pl-kos\"\u003e(\u003c/span\u003e\u003cspan class=\"pl-pds\"\u003e:https\u003c/span\u003e\u003cspan class=\"pl-kos\"\u003e)\u003c/span\u003e\u003cspan class=\"pl-kos\"\u003e]\u003c/span\u003e\u003cspan class=\"pl-kos\"\u003e,\u003c/span\u003e\n \u003cspan class=\"pl-pds\"\u003everify_fun: \u003c/span\u003e\u003cspan class=\"pl-kos\"\u003e{\u003c/span\u003e\u003cspan class=\"pl-c1\"\u003e\u0026amp;\u003c/span\u003e\u003cspan class=\"pl-v\"\u003e:ssl_verify_hostname\u003c/span\u003e\u003cspan class=\"pl-c1\"\u003e.\u003c/span\u003e\u003cspan class=\"pl-en\"\u003everify_fun\u003c/span\u003e\u003cspan class=\"pl-c1\"\u003e/\u003c/span\u003e\u003cspan class=\"pl-c1\"\u003e3\u003c/span\u003e\u003cspan class=\"pl-kos\"\u003e,\u003c/span\u003e \u003cspan class=\"pl-kos\"\u003e[\u003c/span\u003e\u003cspan class=\"pl-pds\"\u003echeck_hostname: \u003c/span\u003e\u003cspan class=\"pl-s\"\u003e'URL HERE'\u003c/span\u003e\u003cspan class=\"pl-kos\"\u003e]\u003c/span\u003e\u003cspan class=\"pl-kos\"\u003e}\u003c/span\u003e\u003cspan class=\"pl-kos\"\u003e,\u003c/span\u003e\n\u003cspan class=\"pl-kos\"\u003e]\u003c/span\u003e\u003c/pre\u003e\u003c/div\u003e\n\u003cp dir=\"auto\"\u003e(Notice that \u003ccode class=\"notranslate\"\u003echeck_hostname\u003c/code\u003e is a charlist.) Hope this helps someone!\u003c/p\u003e","bodyVersion":"57919692417b390bd086ecee043303c8d28648866e277a4f130142f270a012f8","viewerCanUpdate":false,"repository":{"id":"MDEwOlJlcG9zaXRvcnk4MjcyODAyOQ==","name":"websockex","owner":{"__typename":"User","id":"MDQ6VXNlcjI5ODc2NzQ=","login":"dominicletz","url":"https://github.com/dominicletz"},"isPrivate":false,"viewerCanCreateIssues":false,"slashCommandsEnabled":false,"nameWithOwner":"dominicletz/websockex","databaseId":82728029},"reactionGroups":[{"content":"THUMBS_UP","viewerHasReacted":false,"reactors":{"totalCount":0,"nodes":[]}},{"content":"THUMBS_DOWN","viewerHasReacted":false,"reactors":{"totalCount":0,"nodes":[]}},{"content":"LAUGH","viewerHasReacted":false,"reactors":{"totalCount":0,"nodes":[]}},{"content":"HOORAY","viewerHasReacted":false,"reactors":{"totalCount":0,"nodes":[]}},{"content":"CONFUSED","viewerHasReacted":false,"reactors":{"totalCount":0,"nodes":[]}},{"content":"HEART","viewerHasReacted":false,"reactors":{"totalCount":1,"nodes":[{"__typename":"User","id":"MDQ6VXNlcjg5MDYzNTg=","login":"pdgonzalez872","name":"Paulo Daniel Gonzalez","avatarUrl":"https://avatars.githubusercontent.com/u/8906358?s=64\u0026u=ad0c4842eb3b7f8ff9259d9cfe802f07150cf9dc\u0026v=4"}]}},{"content":"ROCKET","viewerHasReacted":false,"reactors":{"totalCount":0,"nodes":[]}},{"content":"EYES","viewerHasReacted":false,"reactors":{"totalCount":0,"nodes":[]}}]}},{"cursor":"Y3Vyc29yOnYyOpPPAAABlBgOtogBqzE1Nzg1MDQxOTEz","node":{"__typename":"ReferencedEvent","id":"REFE_lADOBO5UXc4M-hUMzwAAAAOs3J_5","databaseId":15785041913,"createdAt":"2024-12-30T14:53:25Z","actor":{"id":"MDQ6VXNlcjI5ODc2NzQ=","avatarUrl":"https://avatars.githubusercontent.com/u/2987674?s=64\u0026v=4","login":"dominicletz","profileResourcePath":"/dominicletz","__typename":"User","name":"Dominic Letz"},"willCloseSubject":false,"subject":{"id":"MDU6SXNzdWUyMTc3MTU5ODA=","__typename":"Issue"},"commit":{"id":"C_kwDOIwGx9NoAKDFlNDc4NWViMGU1YzQ4YzY5MjdkMzhkMjAyMTRkYTVkYjNjMWVkNGU","message":"Merge pull request #1 from henkoch/master\n\nMerge this fork","messageHeadlineHTML":"Merge pull request \u003ca class=\"issue-link js-issue-link\" data-error-text=\"Failed to load title\" data-id=\"2991622954\" data-permission-text=\"Title is private\" data-url=\"https://github.com/witchtails/websockex_wt/issues/1\" data-hovercard-type=\"pull_request\" data-hovercard-url=\"/witchtails/websockex_wt/pull/1/hovercard\" href=\"https://github.com/witchtails/websockex_wt/pull/1\"\u003e#1\u003c/a\u003e from henkoch/master","messageBodyHTML":"Merge this fork","url":"https://github.com/witchtails/websockex_wt/commit/1e4785eb0e5c48c6927d38d20214da5db3c1ed4e","abbreviatedOid":"1e4785e","repository":{"id":"R_kgDOIwGx9A","name":"websockex_wt","owner":{"__typename":"Organization","id":"O_kgDOCEKzuw","login":"witchtails"},"defaultBranch":"master"}}}},{"cursor":"Y3Vyc29yOnYyOpPPAAABmrzQFagBqzIxMTc0MDE1MDcx","node":{"__typename":"ReferencedEvent","id":"REFE_lADOBO5UXc4M-hUMzwAAAATuEdRf","databaseId":21174015071,"createdAt":"2025-11-25T20:59:05Z","actor":{"id":"MDQ6VXNlcjI5ODc2NzQ=","avatarUrl":"https://avatars.githubusercontent.com/u/2987674?s=64\u0026v=4","login":"dominicletz","profileResourcePath":"/dominicletz","__typename":"User","name":"Dominic Letz"},"willCloseSubject":false,"subject":{"id":"MDU6SXNzdWUyMTc3MTU5ODA=","__typename":"Issue"},"commit":{"id":"C_kwDOBO5UXdoAKGRlOGEzZjRiYzM1NTAwMjIzMDJlOWE1OWU2NjIyNmMzNjA0NzRhZTE","message":"Merge pull request #1 from ZenHive/fix/ping-pong-payload-handling\n\nFix ping-pong payload handling and update test certificates","messageHeadlineHTML":"Merge pull request \u003ca class=\"issue-link js-issue-link\" data-error-text=\"Failed to load title\" data-id=\"217715980\" data-permission-text=\"Title is private\" data-url=\"https://github.com/dominicletz/websockex/issues/1\" data-hovercard-type=\"issue\" data-hovercard-url=\"/dominicletz/websockex/issues/1/hovercard\" href=\"https://github.com/dominicletz/websockex/issues/1\"\u003e#1\u003c/a\u003e from ZenHive/fix/ping-pong-payload-handling","messageBodyHTML":"Fix ping-pong payload handling and update test certificates","url":"https://github.com/dominicletz/websockex/commit/de8a3f4bc3550022302e9a59e66226c360474ae1","abbreviatedOid":"de8a3f4","repository":{"id":"MDEwOlJlcG9zaXRvcnk4MjcyODAyOQ==","name":"websockex","owner":{"__typename":"User","id":"MDQ6VXNlcjI5ODc2NzQ=","login":"dominicletz"},"defaultBranch":"master"}}}},{"cursor":"Y3Vyc29yOnYyOpPPAAABoWVySNgBqzMzOTk0MDQ5ODQ1","node":{"__typename":"ReferencedEvent","id":"REFE_lADOBO5UXc4M-hUMzwAAAAfqNAk1","databaseId":33994049845,"createdAt":"2026-10-22T21:09:11Z","actor":{"id":"MDQ6VXNlcjM3NjU3","avatarUrl":"https://avatars.githubusercontent.com/u/37657?s=64\u0026v=4","login":"neilberkman","profileResourcePath":"/neilberkman","__typename":"User","name":"Neil Berkman"},"willCloseSubject":true,"subject":{"id":"MDU6SXNzdWUyMTc3MTU5ODA=","__typename":"Issue"},"commit":{"id":"C_kwDOVUAaLtoAKGI4Zjg2MDQwM2U4MjA5YWNmNzViMjk2OWMzMTFmNTkwOGY1MTY1ZWY","message":"Verify TLS peers by default\n\nwss:// connections now verify the server certificate and hostname\nunless `insecure: true` is passed. The trust store comes from\n:public_key.cacerts_get/0 on OTP 25+, or :castore when present;\n`cacerts:` and `ssl_options:` still override it.\n\nFixes #1","messageHeadlineHTML":"Verify TLS peers by default","messageBodyHTML":"wss:// connections now verify the server certificate and hostname\nunless `insecure: true` is passed. The trust store comes from\n:public_key.cacerts_get/0 on OTP 25+, or :castore when present;\n`cacerts:` and `ssl_options:` still override it.\n\n\u003cspan class=\"issue-keyword tooltipped tooltipped-se\" aria-label=\"This commit closes issue #1.\"\u003eFixes\u003c/span\u003e \u003ca class=\"issue-link js-issue-link\" data-error-text=\"Failed to load title\" data-id=\"217715980\" data-permission-text=\"Title is private\" data-url=\"https://github.com/dominicletz/websockex/issues/1\" data-hovercard-type=\"issue\" data-hovercard-url=\"/dominicletz/websockex/issues/1/hovercard\" href=\"https://github.com/dominicletz/websockex/issues/1\"\u003edominicletz#1\u003c/a\u003e","url":"https://github.com/neilberkman/websockex/commit/b8f860403e8209acf75b2969c311f5908f5165ef","abbreviatedOid":"b8f8604","repository":{"id":"R_kgDOVUAaLg","name":"websockex","owner":{"__typename":"User","id":"MDQ6VXNlcjM3NjU3","login":"neilberkman"},"defaultBranch":"master"}}}},{"cursor":"Y3Vyc29yOnYyOpPPAAABoWV0FcgAqjYzNTE0MDA4MTE=","node":{"__typename":"IssueComment","id":"IC_kwDOBO5UXc8AAAABepKvaw","createdAt":"2026-10-22T21:11:09Z","url":"https://github.com/dominicletz/websockex/issues/1#issuecomment-6351400811","isHidden":false,"isMinimized":false,"minimizedReason":null,"databaseId":6351400811,"viewerDidAuthor":false,"issue":{"id":"MDU6SXNzdWUyMTc3MTU5ODA=","author":{"__typename":"User","id":"MDQ6VXNlcjE0MTI5NQ==","login":"Azolo"},"number":1,"locked":false,"databaseId":217715980},"author":{"__typename":"User","id":"MDQ6VXNlcjM3NjU3","login":"neilberkman","avatarUrl":"https://avatars.githubusercontent.com/u/37657?v=4","profileUrl":"https://github.com/neilberkman","name":"Neil Berkman"},"authorAssociation":"CONTRIBUTOR","viewerCanDelete":false,"viewerCanMinimize":false,"viewerCanUnminimize":false,"viewerCanReport":false,"viewerCanReportToMaintainer":false,"viewerCanBlockFromOrg":false,"viewerCanUnblockFromOrg":false,"viewerCanBlockPersonally":false,"viewerCanUnblockPersonally":false,"viewerCanPin":false,"viewerCanUnpin":false,"viaApp":null,"showSpammyBadge":false,"createdViaEmail":false,"authorToRepoOwnerSponsorship":null,"viewerCanReadUserContentEdits":true,"lastEditedAt":null,"lastUserContentEdit":null,"pinnedBy":null,"body":"PR https://github.com/dominicletz/websockex/pull/144 verifies peers by default: `verify: :verify_peer` with the OS trust store from `:public_key.cacerts_get/0` on OTP 25+, `:castore` as a fallback, hostname matching with the `:https` match function, and `insecure: true` as the explicit opt-out. `cacerts:` and `ssl_options:` keep their precedence. On older OTP with no trust store available, `open_socket/1` returns a `ConnError` that names the options instead of raising.\n\nContext for the timing: OTP 26 made `verify_peer` the `ssl` client default, so the library default is now the remaining gap, and it reached downstream users this week as req_llm's GHSA-6vww-5m28-f26v (API keys and OAuth tokens over unverified TLS). The PR also regenerates the test certificates with a subjectAltName, since OTP 29 rejects CN-only certificates and three TLS tests on `master` already fail for that reason.\n","bodyHTML":"\u003cp dir=\"auto\"\u003ePR \u003ca class=\"issue-link js-issue-link\" data-error-text=\"Failed to load title\" data-id=\"5987516796\" data-permission-text=\"Title is private\" data-url=\"https://github.com/dominicletz/websockex/issues/144\" data-hovercard-type=\"pull_request\" data-hovercard-url=\"/dominicletz/websockex/pull/144/hovercard\" href=\"https://github.com/dominicletz/websockex/pull/144\"\u003e#144\u003c/a\u003e verifies peers by default: \u003ccode class=\"notranslate\"\u003everify: :verify_peer\u003c/code\u003e with the OS trust store from \u003ccode class=\"notranslate\"\u003e:public_key.cacerts_get/0\u003c/code\u003e on OTP 25+, \u003ccode class=\"notranslate\"\u003e:castore\u003c/code\u003e as a fallback, hostname matching with the \u003ccode class=\"notranslate\"\u003e:https\u003c/code\u003e match function, and \u003ccode class=\"notranslate\"\u003einsecure: true\u003c/code\u003e as the explicit opt-out. \u003ccode class=\"notranslate\"\u003ecacerts:\u003c/code\u003e and \u003ccode class=\"notranslate\"\u003essl_options:\u003c/code\u003e keep their precedence. On older OTP with no trust store available, \u003ccode class=\"notranslate\"\u003eopen_socket/1\u003c/code\u003e returns a \u003ccode class=\"notranslate\"\u003eConnError\u003c/code\u003e that names the options instead of raising.\u003c/p\u003e\n\u003cp dir=\"auto\"\u003eContext for the timing: OTP 26 made \u003ccode class=\"notranslate\"\u003everify_peer\u003c/code\u003e the \u003ccode class=\"notranslate\"\u003essl\u003c/code\u003e client default, so the library default is now the remaining gap, and it reached downstream users this week as req_llm's \u003ca title=\"GHSA-6vww-5m28-f26v\" href=\"https://github.com/agentjido/req_llm/security/advisories/GHSA-6vww-5m28-f26v\"\u003eGHSA-6vww-5m28-f26v\u003c/a\u003e (API keys and OAuth tokens over unverified TLS). The PR also regenerates the test certificates with a subjectAltName, since OTP 29 rejects CN-only certificates and three TLS tests on \u003ccode class=\"notranslate\"\u003emaster\u003c/code\u003e already fail for that reason.\u003c/p\u003e","bodyVersion":"575870ab2049fe4b19b9f219702faf0e396be14a6661022c3b6313990e308c4d","viewerCanUpdate":false,"repository":{"id":"MDEwOlJlcG9zaXRvcnk4MjcyODAyOQ==","name":"websockex","owner":{"__typename":"User","id":"MDQ6VXNlcjI5ODc2NzQ=","login":"dominicletz","url":"https://github.com/dominicletz"},"isPrivate":false,"viewerCanCreateIssues":false,"slashCommandsEnabled":false,"nameWithOwner":"dominicletz/websockex","databaseId":82728029},"reactionGroups":[{"content":"THUMBS_UP","viewerHasReacted":false,"reactors":{"totalCount":0,"nodes":[]}},{"content":"THUMBS_DOWN","viewerHasReacted":false,"reactors":{"totalCount":0,"nodes":[]}},{"content":"LAUGH","viewerHasReacted":false,"reactors":{"totalCount":0,"nodes":[]}},{"content":"HOORAY","viewerHasReacted":false,"reactors":{"totalCount":0,"nodes":[]}},{"content":"CONFUSED","viewerHasReacted":false,"reactors":{"totalCount":0,"nodes":[]}},{"content":"HEART","viewerHasReacted":false,"reactors":{"totalCount":0,"nodes":[]}},{"content":"ROCKET","viewerHasReacted":false,"reactors":{"totalCount":0,"nodes":[]}},{"content":"EYES","viewerHasReacted":false,"reactors":{"totalCount":0,"nodes":[]}}]}},{"cursor":"Y3Vyc29yOnYyOpPPAAABoWXZxQgBqzM0MDAxNjc1ODE5","node":{"__typename":"ClosedEvent","id":"CE_lADOBO5UXc4M-hUMzwAAAAfqqGYr","databaseId":34001675819,"createdAt":"2026-10-22T23:02:13Z","actor":{"id":"MDQ6VXNlcjI5ODc2NzQ=","avatarUrl":"https://avatars.githubusercontent.com/u/2987674?s=64\u0026v=4","login":"dominicletz","profileResourcePath":"/dominicletz","__typename":"User","name":"Dominic Letz"},"stateReason":"COMPLETED","duplicateOf":null,"closingProjectItemStatus":null,"closer":{"id":"PR_kwDOBO5UXc8AAAABKHvebw","__typename":"PullRequest","url":"https://github.com/dominicletz/websockex/pull/144","number":144,"repository":{"id":"MDEwOlJlcG9zaXRvcnk4MjcyODAyOQ==","name":"websockex","owner":{"__typename":"User","id":"MDQ6VXNlcjI5ODc2NzQ=","login":"dominicletz"}}},"intent":null}}]},"backTimelineItems":{"totalCount":14,"beforeFocusCount":0,"afterFocusCount":0,"pageInfo":{"hasNextPage":false,"hasPreviousPage":false,"startCursor":"Y3Vyc29yOnYyOpPPAAABW43x9MABqjEwNTE1OTI5Njg=","endCursor":"Y3Vyc29yOnYyOpPPAAABoWXZxQgBqzM0MDAxNjc1ODE5"},"edges":[{"cursor":"Y3Vyc29yOnYyOpPPAAABW43x9MABqjEwNTE1OTI5Njg=","node":{"__typename":"LabeledEvent","id":"MDEyOkxhYmVsZWRFdmVudDEwNTE1OTI5Njg=","databaseId":1051592968,"createdAt":"2017-04-21T00:38:16Z","actor":{"id":"MDQ6VXNlcjE0MTI5NQ==","avatarUrl":"https://avatars.githubusercontent.com/u/141295?s=64\u0026v=4","login":"Azolo","profileResourcePath":"/Azolo","__typename":"User","name":"Justin Baker"},"label":{"id":"MDU6TGFiZWw1NDQ4MjYwMDg=","archivedAt":null,"nameHTML":"help wanted","name":"help wanted","color":"128A0C","description":null},"intent":null}},{"cursor":"Y3Vyc29yOnYyOpPPAAABW5HchQABqjEwNTI5Mjg3NjU=","node":{"__typename":"RenamedTitleEvent","id":"MDE3OlJlbmFtZWRUaXRsZUV2ZW50MTA1MjkyODc2NQ==","databaseId":1052928765,"createdAt":"2017-04-21T18:53:20Z","actor":{"id":"MDQ6VXNlcjE0MTI5NQ==","avatarUrl":"https://avatars.githubusercontent.com/u/141295?s=64\u0026v=4","login":"Azolo","profileResourcePath":"/Azolo","__typename":"User","name":"Justin Baker"},"currentTitle":"SSL peers aren't verfied","previousTitle":"SSL Connections aren't secure"}},{"cursor":"Y3Vyc29yOnYyOpPPAAABXH8IJDgBqjExMTI0OTUxNjQ=","node":{"__typename":"MilestonedEvent","id":"MDE1Ok1pbGVzdG9uZWRFdmVudDExMTI0OTUxNjQ=","databaseId":1112495164,"createdAt":"2017-06-06T20:10:59Z","actor":{"id":"MDQ6VXNlcjE0MTI5NQ==","avatarUrl":"https://avatars.githubusercontent.com/u/141295?s=64\u0026v=4","login":"Azolo","profileResourcePath":"/Azolo","__typename":"User","name":"Justin Baker"},"milestoneTitle":"v1.0.0","milestone":{"id":"MDk6TWlsZXN0b25lMjU2NjA1Mg==","url":"https://github.com/dominicletz/websockex/milestone/1"}}},{"cursor":"Y3Vyc29yOnYyOpPPAAABXKJrslAAqTMwODE4MzcxMA==","node":{"__typename":"IssueComment","id":"MDEyOklzc3VlQ29tbWVudDMwODE4MzcxMA==","createdAt":"2017-06-13T17:06:26Z","url":"https://github.com/dominicletz/websockex/issues/1#issuecomment-308183710","isHidden":false,"isMinimized":false,"minimizedReason":null,"databaseId":308183710,"viewerDidAuthor":false,"issue":{"id":"MDU6SXNzdWUyMTc3MTU5ODA=","author":{"__typename":"User","id":"MDQ6VXNlcjE0MTI5NQ==","login":"Azolo"},"number":1,"locked":false,"databaseId":217715980},"author":{"__typename":"User","id":"MDQ6VXNlcjEzODk1Mg==","login":"xlphs","avatarUrl":"https://avatars.githubusercontent.com/u/138952?u=285a557271227236f4cb6ad4a03a343b89e5d78b\u0026v=4","profileUrl":"https://github.com/xlphs","name":"Marika Wei"},"authorAssociation":"NONE","viewerCanDelete":false,"viewerCanMinimize":false,"viewerCanUnminimize":false,"viewerCanReport":false,"viewerCanReportToMaintainer":false,"viewerCanBlockFromOrg":false,"viewerCanUnblockFromOrg":false,"viewerCanBlockPersonally":false,"viewerCanUnblockPersonally":false,"viewerCanPin":false,"viewerCanUnpin":false,"viaApp":null,"showSpammyBadge":false,"createdViaEmail":false,"authorToRepoOwnerSponsorship":null,"viewerCanReadUserContentEdits":true,"lastEditedAt":null,"lastUserContentEdit":null,"pinnedBy":null,"body":"Not sure what you are trying to accomplish but you could simply pass ssl options on. I wrote a [short article](https://mw.gl/posts/elixir_ssl/) on `verify_fun` that shows how to do certificate pinning, hopefully it helps.","bodyHTML":"\u003cp dir=\"auto\"\u003eNot sure what you are trying to accomplish but you could simply pass ssl options on. I wrote a \u003ca href=\"https://mw.gl/posts/elixir_ssl/\" rel=\"nofollow\"\u003eshort article\u003c/a\u003e on \u003ccode class=\"notranslate\"\u003everify_fun\u003c/code\u003e that shows how to do certificate pinning, hopefully it helps.\u003c/p\u003e","bodyVersion":"4b33ba4531ae60488e79a439dbb57ecf2589c7b2fac751a7d1d7a746e280c06f","viewerCanUpdate":false,"repository":{"id":"MDEwOlJlcG9zaXRvcnk4MjcyODAyOQ==","name":"websockex","owner":{"__typename":"User","id":"MDQ6VXNlcjI5ODc2NzQ=","login":"dominicletz","url":"https://github.com/dominicletz"},"isPrivate":false,"viewerCanCreateIssues":false,"slashCommandsEnabled":false,"nameWithOwner":"dominicletz/websockex","databaseId":82728029},"reactionGroups":[{"content":"THUMBS_UP","viewerHasReacted":false,"reactors":{"totalCount":0,"nodes":[]}},{"content":"THUMBS_DOWN","viewerHasReacted":false,"reactors":{"totalCount":0,"nodes":[]}},{"content":"LAUGH","viewerHasReacted":false,"reactors":{"totalCount":0,"nodes":[]}},{"content":"HOORAY","viewerHasReacted":false,"reactors":{"totalCount":0,"nodes":[]}},{"content":"CONFUSED","viewerHasReacted":false,"reactors":{"totalCount":0,"nodes":[]}},{"content":"HEART","viewerHasReacted":false,"reactors":{"totalCount":0,"nodes":[]}},{"content":"ROCKET","viewerHasReacted":false,"reactors":{"totalCount":0,"nodes":[]}},{"content":"EYES","viewerHasReacted":false,"reactors":{"totalCount":0,"nodes":[]}}]}},{"cursor":"Y3Vyc29yOnYyOpPPAAABXKM5bkgAqTMwODI0NDY4NA==","node":{"__typename":"IssueComment","id":"MDEyOklzc3VlQ29tbWVudDMwODI0NDY4NA==","createdAt":"2017-06-13T20:51:09Z","url":"https://github.com/dominicletz/websockex/issues/1#issuecomment-308244684","isHidden":false,"isMinimized":false,"minimizedReason":null,"databaseId":308244684,"viewerDidAuthor":false,"issue":{"id":"MDU6SXNzdWUyMTc3MTU5ODA=","author":{"__typename":"User","id":"MDQ6VXNlcjE0MTI5NQ==","login":"Azolo"},"number":1,"locked":false,"databaseId":217715980},"author":{"__typename":"User","id":"MDQ6VXNlcjE0MTI5NQ==","login":"Azolo","avatarUrl":"https://avatars.githubusercontent.com/u/141295?v=4","profileUrl":"https://github.com/Azolo","name":"Justin Baker"},"authorAssociation":"COLLABORATOR","viewerCanDelete":false,"viewerCanMinimize":false,"viewerCanUnminimize":false,"viewerCanReport":false,"viewerCanReportToMaintainer":false,"viewerCanBlockFromOrg":false,"viewerCanUnblockFromOrg":false,"viewerCanBlockPersonally":false,"viewerCanUnblockPersonally":false,"viewerCanPin":false,"viewerCanUnpin":false,"viaApp":null,"showSpammyBadge":false,"createdViaEmail":false,"authorToRepoOwnerSponsorship":null,"viewerCanReadUserContentEdits":true,"lastEditedAt":null,"lastUserContentEdit":null,"pinnedBy":null,"body":"@xlphs Cool, thanks for that article. It actually shows me a different way that the `ssl` module could be used and I need to keep that in mind.\r\n\r\nWhat I am trying to accomplish is just being able to open a tcp socket to a site like `https://google.com` and verify that I am in fact connecting to `https://google.com` through the certificate verification. Erlang's `:ssl` module seems super picky about how you do that.","bodyHTML":"\u003cp dir=\"auto\"\u003e\u003ca class=\"user-mention notranslate\" data-hovercard-type=\"user\" data-hovercard-url=\"/users/xlphs/hovercard\" data-octo-click=\"hovercard-link-click\" data-octo-dimensions=\"link_type:self\" href=\"https://github.com/xlphs\"\u003e@xlphs\u003c/a\u003e Cool, thanks for that article. It actually shows me a different way that the \u003ccode class=\"notranslate\"\u003essl\u003c/code\u003e module could be used and I need to keep that in mind.\u003c/p\u003e\n\u003cp dir=\"auto\"\u003eWhat I am trying to accomplish is just being able to open a tcp socket to a site like \u003ccode class=\"notranslate\"\u003ehttps://google.com\u003c/code\u003e and verify that I am in fact connecting to \u003ccode class=\"notranslate\"\u003ehttps://google.com\u003c/code\u003e through the certificate verification. Erlang's \u003ccode class=\"notranslate\"\u003e:ssl\u003c/code\u003e module seems super picky about how you do that.\u003c/p\u003e","bodyVersion":"89b3ee5a7eae72fde1600a69d5a45d0e76050dcbae25e1d5b44c5a59e4645e89","viewerCanUpdate":false,"repository":{"id":"MDEwOlJlcG9zaXRvcnk4MjcyODAyOQ==","name":"websockex","owner":{"__typename":"User","id":"MDQ6VXNlcjI5ODc2NzQ=","login":"dominicletz","url":"https://github.com/dominicletz"},"isPrivate":false,"viewerCanCreateIssues":false,"slashCommandsEnabled":false,"nameWithOwner":"dominicletz/websockex","databaseId":82728029},"reactionGroups":[{"content":"THUMBS_UP","viewerHasReacted":false,"reactors":{"totalCount":0,"nodes":[]}},{"content":"THUMBS_DOWN","viewerHasReacted":false,"reactors":{"totalCount":0,"nodes":[]}},{"content":"LAUGH","viewerHasReacted":false,"reactors":{"totalCount":0,"nodes":[]}},{"content":"HOORAY","viewerHasReacted":false,"reactors":{"totalCount":0,"nodes":[]}},{"content":"CONFUSED","viewerHasReacted":false,"reactors":{"totalCount":0,"nodes":[]}},{"content":"HEART","viewerHasReacted":false,"reactors":{"totalCount":0,"nodes":[]}},{"content":"ROCKET","viewerHasReacted":false,"reactors":{"totalCount":0,"nodes":[]}},{"content":"EYES","viewerHasReacted":false,"reactors":{"totalCount":0,"nodes":[]}}]}},{"cursor":"Y3Vyc29yOnYyOpPPAAABXSd7ZugAqTMxMzkxOTE1OQ==","node":{"__typename":"IssueComment","id":"MDEyOklzc3VlQ29tbWVudDMxMzkxOTE1OQ==","createdAt":"2017-07-09T13:13:05Z","url":"https://github.com/dominicletz/websockex/issues/1#issuecomment-313919159","isHidden":false,"isMinimized":false,"minimizedReason":null,"databaseId":313919159,"viewerDidAuthor":false,"issue":{"id":"MDU6SXNzdWUyMTc3MTU5ODA=","author":{"__typename":"User","id":"MDQ6VXNlcjE0MTI5NQ==","login":"Azolo"},"number":1,"locked":false,"databaseId":217715980},"author":{"__typename":"User","id":"MDQ6VXNlcjE2MTg4NzQ=","login":"khodzha","avatarUrl":"https://avatars.githubusercontent.com/u/1618874?v=4","profileUrl":"https://github.com/khodzha","name":"Shamir Khodzha"},"authorAssociation":"NONE","viewerCanDelete":false,"viewerCanMinimize":false,"viewerCanUnminimize":false,"viewerCanReport":false,"viewerCanReportToMaintainer":false,"viewerCanBlockFromOrg":false,"viewerCanUnblockFromOrg":false,"viewerCanBlockPersonally":false,"viewerCanUnblockPersonally":false,"viewerCanPin":false,"viewerCanUnpin":false,"viaApp":null,"showSpammyBadge":false,"createdViaEmail":false,"authorToRepoOwnerSponsorship":null,"viewerCanReadUserContentEdits":true,"lastEditedAt":null,"lastUserContentEdit":null,"pinnedBy":null,"body":"maybe you should take a look at elixir-socket?\r\ni was trying to connect to wss://eu-central434.discord.gg:80, elixir-socket could connect, yet websockex returns %WebSockex.ConnError{original: {:tls_alert, 'record overflow'}}","bodyHTML":"\u003cp dir=\"auto\"\u003emaybe you should take a look at elixir-socket?\u003cbr\u003e\ni was trying to connect to wss://eu-central434.discord.gg:80, elixir-socket could connect, yet websockex returns %WebSockex.ConnError{original: {:tls_alert, 'record overflow'}}\u003c/p\u003e","bodyVersion":"1709f89849412a83c5e2ed67ca631fd0d60bea66352a30b84ac6839b6f7e7564","viewerCanUpdate":false,"repository":{"id":"MDEwOlJlcG9zaXRvcnk4MjcyODAyOQ==","name":"websockex","owner":{"__typename":"User","id":"MDQ6VXNlcjI5ODc2NzQ=","login":"dominicletz","url":"https://github.com/dominicletz"},"isPrivate":false,"viewerCanCreateIssues":false,"slashCommandsEnabled":false,"nameWithOwner":"dominicletz/websockex","databaseId":82728029},"reactionGroups":[{"content":"THUMBS_UP","viewerHasReacted":false,"reactors":{"totalCount":0,"nodes":[]}},{"content":"THUMBS_DOWN","viewerHasReacted":false,"reactors":{"totalCount":0,"nodes":[]}},{"content":"LAUGH","viewerHasReacted":false,"reactors":{"totalCount":0,"nodes":[]}},{"content":"HOORAY","viewerHasReacted":false,"reactors":{"totalCount":0,"nodes":[]}},{"content":"CONFUSED","viewerHasReacted":false,"reactors":{"totalCount":0,"nodes":[]}},{"content":"HEART","viewerHasReacted":false,"reactors":{"totalCount":0,"nodes":[]}},{"content":"ROCKET","viewerHasReacted":false,"reactors":{"totalCount":0,"nodes":[]}},{"content":"EYES","viewerHasReacted":false,"reactors":{"totalCount":0,"nodes":[]}}]}},{"cursor":"Y3Vyc29yOnYyOpPPAAABXSf6N8AAqTMxMzkyNjg4Mg==","node":{"__typename":"IssueComment","id":"MDEyOklzc3VlQ29tbWVudDMxMzkyNjg4Mg==","createdAt":"2017-07-09T15:31:36Z","url":"https://github.com/dominicletz/websockex/issues/1#issuecomment-313926882","isHidden":false,"isMinimized":false,"minimizedReason":null,"databaseId":313926882,"viewerDidAuthor":false,"issue":{"id":"MDU6SXNzdWUyMTc3MTU5ODA=","author":{"__typename":"User","id":"MDQ6VXNlcjE0MTI5NQ==","login":"Azolo"},"number":1,"locked":false,"databaseId":217715980},"author":{"__typename":"User","id":"MDQ6VXNlcjE0MTI5NQ==","login":"Azolo","avatarUrl":"https://avatars.githubusercontent.com/u/141295?v=4","profileUrl":"https://github.com/Azolo","name":"Justin Baker"},"authorAssociation":"COLLABORATOR","viewerCanDelete":false,"viewerCanMinimize":false,"viewerCanUnminimize":false,"viewerCanReport":false,"viewerCanReportToMaintainer":false,"viewerCanBlockFromOrg":false,"viewerCanUnblockFromOrg":false,"viewerCanBlockPersonally":false,"viewerCanUnblockPersonally":false,"viewerCanPin":false,"viewerCanUnpin":false,"viaApp":null,"showSpammyBadge":false,"createdViaEmail":false,"authorToRepoOwnerSponsorship":null,"viewerCanReadUserContentEdits":true,"lastEditedAt":null,"lastUserContentEdit":null,"pinnedBy":null,"body":"@khodzha Thanks for the info. I think it's possible that `elixir-socket` is ignoring the `:80` and using port 443 because of the `wss` protocol. I don't think that Discord is handle `SSL` connections on port 80.\r\n\r\n","bodyHTML":"\u003cp dir=\"auto\"\u003e\u003ca class=\"user-mention notranslate\" data-hovercard-type=\"user\" data-hovercard-url=\"/users/khodzha/hovercard\" data-octo-click=\"hovercard-link-click\" data-octo-dimensions=\"link_type:self\" href=\"https://github.com/khodzha\"\u003e@khodzha\u003c/a\u003e Thanks for the info. I think it's possible that \u003ccode class=\"notranslate\"\u003eelixir-socket\u003c/code\u003e is ignoring the \u003ccode class=\"notranslate\"\u003e:80\u003c/code\u003e and using port 443 because of the \u003ccode class=\"notranslate\"\u003ewss\u003c/code\u003e protocol. I don't think that Discord is handle \u003ccode class=\"notranslate\"\u003eSSL\u003c/code\u003e connections on port 80.\u003c/p\u003e","bodyVersion":"9757709ba5be35ce8bbb7335ea808c1460f2ca8d2af8b3f2bf78915a1ec0e09d","viewerCanUpdate":false,"repository":{"id":"MDEwOlJlcG9zaXRvcnk4MjcyODAyOQ==","name":"websockex","owner":{"__typename":"User","id":"MDQ6VXNlcjI5ODc2NzQ=","login":"dominicletz","url":"https://github.com/dominicletz"},"isPrivate":false,"viewerCanCreateIssues":false,"slashCommandsEnabled":false,"nameWithOwner":"dominicletz/websockex","databaseId":82728029},"reactionGroups":[{"content":"THUMBS_UP","viewerHasReacted":false,"reactors":{"totalCount":0,"nodes":[]}},{"content":"THUMBS_DOWN","viewerHasReacted":false,"reactors":{"totalCount":0,"nodes":[]}},{"content":"LAUGH","viewerHasReacted":false,"reactors":{"totalCount":0,"nodes":[]}},{"content":"HOORAY","viewerHasReacted":false,"reactors":{"totalCount":0,"nodes":[]}},{"content":"CONFUSED","viewerHasReacted":false,"reactors":{"totalCount":0,"nodes":[]}},{"content":"HEART","viewerHasReacted":false,"reactors":{"totalCount":0,"nodes":[]}},{"content":"ROCKET","viewerHasReacted":false,"reactors":{"totalCount":0,"nodes":[]}},{"content":"EYES","viewerHasReacted":false,"reactors":{"totalCount":0,"nodes":[]}}]}},{"cursor":"Y3Vyc29yOnYyOpPPAAABXSk7M6AAqTMxMzk2MDg2Ng==","node":{"__typename":"IssueComment","id":"MDEyOklzc3VlQ29tbWVudDMxMzk2MDg2Ng==","createdAt":"2017-07-09T21:22:12Z","url":"https://github.com/dominicletz/websockex/issues/1#issuecomment-313960866","isHidden":false,"isMinimized":false,"minimizedReason":null,"databaseId":313960866,"viewerDidAuthor":false,"issue":{"id":"MDU6SXNzdWUyMTc3MTU5ODA=","author":{"__typename":"User","id":"MDQ6VXNlcjE0MTI5NQ==","login":"Azolo"},"number":1,"locked":false,"databaseId":217715980},"author":{"__typename":"User","id":"MDQ6VXNlcjE2MTg4NzQ=","login":"khodzha","avatarUrl":"https://avatars.githubusercontent.com/u/1618874?v=4","profileUrl":"https://github.com/khodzha","name":"Shamir Khodzha"},"authorAssociation":"NONE","viewerCanDelete":false,"viewerCanMinimize":false,"viewerCanUnminimize":false,"viewerCanReport":false,"viewerCanReportToMaintainer":false,"viewerCanBlockFromOrg":false,"viewerCanUnblockFromOrg":false,"viewerCanBlockPersonally":false,"viewerCanUnblockPersonally":false,"viewerCanPin":false,"viewerCanUnpin":false,"viaApp":null,"showSpammyBadge":false,"createdViaEmail":false,"authorToRepoOwnerSponsorship":null,"viewerCanReadUserContentEdits":true,"lastEditedAt":null,"lastUserContentEdit":null,"pinnedBy":null,"body":"yeah, sorry for trouble\r\ndiscord docs were quite confusing there, connecting without port and with some query params works as expected\r\n:ok_hand: ","bodyHTML":"\u003cp dir=\"auto\"\u003eyeah, sorry for trouble\u003cbr\u003e\ndiscord docs were quite confusing there, connecting without port and with some query params works as expected\u003cbr\u003e\n👌\u003c/p\u003e","bodyVersion":"6dd2f7472d6fd52a59577f89a79170774ac593c4766c30a7ad6f552353791788","viewerCanUpdate":false,"repository":{"id":"MDEwOlJlcG9zaXRvcnk4MjcyODAyOQ==","name":"websockex","owner":{"__typename":"User","id":"MDQ6VXNlcjI5ODc2NzQ=","login":"dominicletz","url":"https://github.com/dominicletz"},"isPrivate":false,"viewerCanCreateIssues":false,"slashCommandsEnabled":false,"nameWithOwner":"dominicletz/websockex","databaseId":82728029},"reactionGroups":[{"content":"THUMBS_UP","viewerHasReacted":false,"reactors":{"totalCount":0,"nodes":[]}},{"content":"THUMBS_DOWN","viewerHasReacted":false,"reactors":{"totalCount":0,"nodes":[]}},{"content":"LAUGH","viewerHasReacted":false,"reactors":{"totalCount":0,"nodes":[]}},{"content":"HOORAY","viewerHasReacted":false,"reactors":{"totalCount":0,"nodes":[]}},{"content":"CONFUSED","viewerHasReacted":false,"reactors":{"totalCount":0,"nodes":[]}},{"content":"HEART","viewerHasReacted":false,"reactors":{"totalCount":0,"nodes":[]}},{"content":"ROCKET","viewerHasReacted":false,"reactors":{"totalCount":0,"nodes":[]}},{"content":"EYES","viewerHasReacted":false,"reactors":{"totalCount":0,"nodes":[]}}]}},{"cursor":"Y3Vyc29yOnYyOpPPAAABfUhF3XAAqTk3NTY0NDk3Ng==","node":{"__typename":"IssueComment","id":"IC_kwDOBO5UXc46Jykw","createdAt":"2021-11-22T15:31:18Z","url":"https://github.com/dominicletz/websockex/issues/1#issuecomment-975644976","isHidden":false,"isMinimized":false,"minimizedReason":null,"databaseId":975644976,"viewerDidAuthor":false,"issue":{"id":"MDU6SXNzdWUyMTc3MTU5ODA=","author":{"__typename":"User","id":"MDQ6VXNlcjE0MTI5NQ==","login":"Azolo"},"number":1,"locked":false,"databaseId":217715980},"author":{"__typename":"User","id":"MDQ6VXNlcjE4MzIzMDk=","login":"brian-petersen","avatarUrl":"https://avatars.githubusercontent.com/u/1832309?v=4","profileUrl":"https://github.com/brian-petersen","name":null},"authorAssociation":"NONE","viewerCanDelete":false,"viewerCanMinimize":false,"viewerCanUnminimize":false,"viewerCanReport":false,"viewerCanReportToMaintainer":false,"viewerCanBlockFromOrg":false,"viewerCanUnblockFromOrg":false,"viewerCanBlockPersonally":false,"viewerCanUnblockPersonally":false,"viewerCanPin":false,"viewerCanUnpin":false,"viaApp":null,"showSpammyBadge":false,"createdViaEmail":false,"authorToRepoOwnerSponsorship":null,"viewerCanReadUserContentEdits":true,"lastEditedAt":null,"lastUserContentEdit":null,"pinnedBy":null,"body":"I spent a good part of yesterday working with Erlang's `:ssl` to get it to work with `[verify: :verify_peer]`. I too found it a bit confusing and hard to work with. I followed Hackney's `:ssl` setup as best I could (as documented [here](https://github.com/benoitc/hackney/blob/c8f3a6c5a837e4554be219f7c21ae8fdb3d01c40/src/hackney_ssl.erl#L40)).\r\n\r\nI got it working to a point -- but I'm not leveraging https://github.com/deadtrickster/ssl_verify_fun.erl like the Hackney project is. I'm not sure what state this puts it in -- but this is the working code I have so far:\r\n\r\n```elixir\r\ndef start_link() do\r\n ssl_options = [\r\n verify: :verify_peer,\r\n depth: 99,\r\n cacertfile: CAStore.file_path(),\r\n customize_hostname_check: [match_fun: :public_key.pkix_verify_hostname_match_fun(:https)]\r\n ]\r\n\r\n WebSockex.start_link(\"wss://example.com/ws\", __MODULE__, state, ssl_options: ssl_options) do\r\nend\r\n```\r\n\r\nThe `CAStore.file_path()` call comes from https://github.com/elixir-mint/castore.\r\n\r\nAs far I can tell, the only thing really missing from this setup is something like this:\r\n\r\n```elixir\r\nssl_options = [\r\n verify: :verify_peer,\r\n depth: 99,\r\n cacertfile: CAStore.file_path(),\r\n customize_hostname_check: [match_fun: :public_key.pkix_verify_hostname_match_fun(:https)],\r\n verify_fun: {\u0026:ssl_verify_hostname.verify_fun/3, [check_hostname: 'URL HERE']},\r\n]\r\n```\r\n\r\n(Notice that `check_hostname` is a charlist.) Hope this helps someone!","bodyHTML":"\u003cp dir=\"auto\"\u003eI spent a good part of yesterday working with Erlang's \u003ccode class=\"notranslate\"\u003e:ssl\u003c/code\u003e to get it to work with \u003ccode class=\"notranslate\"\u003e[verify: :verify_peer]\u003c/code\u003e. I too found it a bit confusing and hard to work with. I followed Hackney's \u003ccode class=\"notranslate\"\u003e:ssl\u003c/code\u003e setup as best I could (as documented \u003ca href=\"https://github.com/benoitc/hackney/blob/c8f3a6c5a837e4554be219f7c21ae8fdb3d01c40/src/hackney_ssl.erl#L40\"\u003ehere\u003c/a\u003e).\u003c/p\u003e\n\u003cp dir=\"auto\"\u003eI got it working to a point -- but I'm not leveraging \u003ca href=\"https://github.com/deadtrickster/ssl_verify_fun.erl\"\u003ehttps://github.com/deadtrickster/ssl_verify_fun.erl\u003c/a\u003e like the Hackney project is. I'm not sure what state this puts it in -- but this is the working code I have so far:\u003c/p\u003e\n\u003cdiv class=\"highlight highlight-source-elixir notranslate position-relative overflow-auto\" dir=\"auto\" data-snippet-clipboard-copy-content=\"def start_link() do\n ssl_options = [\n verify: :verify_peer,\n depth: 99,\n cacertfile: CAStore.file_path(),\n customize_hostname_check: [match_fun: :public_key.pkix_verify_hostname_match_fun(:https)]\n ]\n\n WebSockex.start_link(\u0026quot;wss://example.com/ws\u0026quot;, __MODULE__, state, ssl_options: ssl_options) do\nend\"\u003e\u003cpre class=\"notranslate\"\u003e\u003cspan class=\"pl-k\"\u003edef\u003c/span\u003e \u003cspan class=\"pl-en\"\u003estart_link\u003c/span\u003e\u003cspan class=\"pl-kos\"\u003e(\u003c/span\u003e\u003cspan class=\"pl-kos\"\u003e)\u003c/span\u003e \u003cspan class=\"pl-k\"\u003edo\u003c/span\u003e\n \u003cspan class=\"pl-s1\"\u003essl_options\u003c/span\u003e \u003cspan class=\"pl-c1\"\u003e=\u003c/span\u003e \u003cspan class=\"pl-kos\"\u003e[\u003c/span\u003e\n \u003cspan class=\"pl-pds\"\u003everify: \u003c/span\u003e\u003cspan class=\"pl-pds\"\u003e:verify_peer\u003c/span\u003e\u003cspan class=\"pl-kos\"\u003e,\u003c/span\u003e\n \u003cspan class=\"pl-pds\"\u003edepth: \u003c/span\u003e\u003cspan class=\"pl-c1\"\u003e99\u003c/span\u003e\u003cspan class=\"pl-kos\"\u003e,\u003c/span\u003e\n \u003cspan class=\"pl-pds\"\u003ecacertfile: \u003c/span\u003e\u003cspan class=\"pl-v\"\u003eCAStore\u003c/span\u003e\u003cspan class=\"pl-c1\"\u003e.\u003c/span\u003e\u003cspan class=\"pl-en\"\u003efile_path\u003c/span\u003e\u003cspan class=\"pl-kos\"\u003e(\u003c/span\u003e\u003cspan class=\"pl-kos\"\u003e)\u003c/span\u003e\u003cspan class=\"pl-kos\"\u003e,\u003c/span\u003e\n \u003cspan class=\"pl-pds\"\u003ecustomize_hostname_check: \u003c/span\u003e\u003cspan class=\"pl-kos\"\u003e[\u003c/span\u003e\u003cspan class=\"pl-pds\"\u003ematch_fun: \u003c/span\u003e\u003cspan class=\"pl-v\"\u003e:public_key\u003c/span\u003e\u003cspan class=\"pl-c1\"\u003e.\u003c/span\u003e\u003cspan class=\"pl-en\"\u003epkix_verify_hostname_match_fun\u003c/span\u003e\u003cspan class=\"pl-kos\"\u003e(\u003c/span\u003e\u003cspan class=\"pl-pds\"\u003e:https\u003c/span\u003e\u003cspan class=\"pl-kos\"\u003e)\u003c/span\u003e\u003cspan class=\"pl-kos\"\u003e]\u003c/span\u003e\n \u003cspan class=\"pl-kos\"\u003e]\u003c/span\u003e\n\n \u003cspan class=\"pl-v\"\u003eWebSockex\u003c/span\u003e\u003cspan class=\"pl-c1\"\u003e.\u003c/span\u003e\u003cspan class=\"pl-en\"\u003estart_link\u003c/span\u003e\u003cspan class=\"pl-kos\"\u003e(\u003c/span\u003e\u003cspan class=\"pl-s\"\u003e\"wss://example.com/ws\"\u003c/span\u003e\u003cspan class=\"pl-kos\"\u003e,\u003c/span\u003e \u003cspan class=\"pl-c1\"\u003e__MODULE__\u003c/span\u003e\u003cspan class=\"pl-kos\"\u003e,\u003c/span\u003e \u003cspan class=\"pl-s1\"\u003estate\u003c/span\u003e\u003cspan class=\"pl-kos\"\u003e,\u003c/span\u003e \u003cspan class=\"pl-pds\"\u003essl_options: \u003c/span\u003e\u003cspan class=\"pl-s1\"\u003essl_options\u003c/span\u003e\u003cspan class=\"pl-kos\"\u003e)\u003c/span\u003e \u003cspan class=\"pl-k\"\u003edo\u003c/span\u003e\n\u003cspan class=\"pl-k\"\u003eend\u003c/span\u003e\n\u003cspan class=\"pl-k\"\u003e\u003c/span\u003e\u003c/pre\u003e\u003c/div\u003e\n\u003cp dir=\"auto\"\u003eThe \u003ccode class=\"notranslate\"\u003eCAStore.file_path()\u003c/code\u003e call comes from \u003ca href=\"https://github.com/elixir-mint/castore\"\u003ehttps://github.com/elixir-mint/castore\u003c/a\u003e.\u003c/p\u003e\n\u003cp dir=\"auto\"\u003eAs far I can tell, the only thing really missing from this setup is something like this:\u003c/p\u003e\n\u003cdiv class=\"highlight highlight-source-elixir notranslate position-relative overflow-auto\" dir=\"auto\" data-snippet-clipboard-copy-content=\"ssl_options = [\n verify: :verify_peer,\n depth: 99,\n cacertfile: CAStore.file_path(),\n customize_hostname_check: [match_fun: :public_key.pkix_verify_hostname_match_fun(:https)],\n verify_fun: {\u0026amp;:ssl_verify_hostname.verify_fun/3, [check_hostname: 'URL HERE']},\n]\"\u003e\u003cpre class=\"notranslate\"\u003e\u003cspan class=\"pl-s1\"\u003essl_options\u003c/span\u003e \u003cspan class=\"pl-c1\"\u003e=\u003c/span\u003e \u003cspan class=\"pl-kos\"\u003e[\u003c/span\u003e\n \u003cspan class=\"pl-pds\"\u003everify: \u003c/span\u003e\u003cspan class=\"pl-pds\"\u003e:verify_peer\u003c/span\u003e\u003cspan class=\"pl-kos\"\u003e,\u003c/span\u003e\n \u003cspan class=\"pl-pds\"\u003edepth: \u003c/span\u003e\u003cspan class=\"pl-c1\"\u003e99\u003c/span\u003e\u003cspan class=\"pl-kos\"\u003e,\u003c/span\u003e\n \u003cspan class=\"pl-pds\"\u003ecacertfile: \u003c/span\u003e\u003cspan class=\"pl-v\"\u003eCAStore\u003c/span\u003e\u003cspan class=\"pl-c1\"\u003e.\u003c/span\u003e\u003cspan class=\"pl-en\"\u003efile_path\u003c/span\u003e\u003cspan class=\"pl-kos\"\u003e(\u003c/span\u003e\u003cspan class=\"pl-kos\"\u003e)\u003c/span\u003e\u003cspan class=\"pl-kos\"\u003e,\u003c/span\u003e\n \u003cspan class=\"pl-pds\"\u003ecustomize_hostname_check: \u003c/span\u003e\u003cspan class=\"pl-kos\"\u003e[\u003c/span\u003e\u003cspan class=\"pl-pds\"\u003ematch_fun: \u003c/span\u003e\u003cspan class=\"pl-v\"\u003e:public_key\u003c/span\u003e\u003cspan class=\"pl-c1\"\u003e.\u003c/span\u003e\u003cspan class=\"pl-en\"\u003epkix_verify_hostname_match_fun\u003c/span\u003e\u003cspan class=\"pl-kos\"\u003e(\u003c/span\u003e\u003cspan class=\"pl-pds\"\u003e:https\u003c/span\u003e\u003cspan class=\"pl-kos\"\u003e)\u003c/span\u003e\u003cspan class=\"pl-kos\"\u003e]\u003c/span\u003e\u003cspan class=\"pl-kos\"\u003e,\u003c/span\u003e\n \u003cspan class=\"pl-pds\"\u003everify_fun: \u003c/span\u003e\u003cspan class=\"pl-kos\"\u003e{\u003c/span\u003e\u003cspan class=\"pl-c1\"\u003e\u0026amp;\u003c/span\u003e\u003cspan class=\"pl-v\"\u003e:ssl_verify_hostname\u003c/span\u003e\u003cspan class=\"pl-c1\"\u003e.\u003c/span\u003e\u003cspan class=\"pl-en\"\u003everify_fun\u003c/span\u003e\u003cspan class=\"pl-c1\"\u003e/\u003c/span\u003e\u003cspan class=\"pl-c1\"\u003e3\u003c/span\u003e\u003cspan class=\"pl-kos\"\u003e,\u003c/span\u003e \u003cspan class=\"pl-kos\"\u003e[\u003c/span\u003e\u003cspan class=\"pl-pds\"\u003echeck_hostname: \u003c/span\u003e\u003cspan class=\"pl-s\"\u003e'URL HERE'\u003c/span\u003e\u003cspan class=\"pl-kos\"\u003e]\u003c/span\u003e\u003cspan class=\"pl-kos\"\u003e}\u003c/span\u003e\u003cspan class=\"pl-kos\"\u003e,\u003c/span\u003e\n\u003cspan class=\"pl-kos\"\u003e]\u003c/span\u003e\u003c/pre\u003e\u003c/div\u003e\n\u003cp dir=\"auto\"\u003e(Notice that \u003ccode class=\"notranslate\"\u003echeck_hostname\u003c/code\u003e is a charlist.) Hope this helps someone!\u003c/p\u003e","bodyVersion":"57919692417b390bd086ecee043303c8d28648866e277a4f130142f270a012f8","viewerCanUpdate":false,"repository":{"id":"MDEwOlJlcG9zaXRvcnk4MjcyODAyOQ==","name":"websockex","owner":{"__typename":"User","id":"MDQ6VXNlcjI5ODc2NzQ=","login":"dominicletz","url":"https://github.com/dominicletz"},"isPrivate":false,"viewerCanCreateIssues":false,"slashCommandsEnabled":false,"nameWithOwner":"dominicletz/websockex","databaseId":82728029},"reactionGroups":[{"content":"THUMBS_UP","viewerHasReacted":false,"reactors":{"totalCount":0,"nodes":[]}},{"content":"THUMBS_DOWN","viewerHasReacted":false,"reactors":{"totalCount":0,"nodes":[]}},{"content":"LAUGH","viewerHasReacted":false,"reactors":{"totalCount":0,"nodes":[]}},{"content":"HOORAY","viewerHasReacted":false,"reactors":{"totalCount":0,"nodes":[]}},{"content":"CONFUSED","viewerHasReacted":false,"reactors":{"totalCount":0,"nodes":[]}},{"content":"HEART","viewerHasReacted":false,"reactors":{"totalCount":1,"nodes":[{"__typename":"User","id":"MDQ6VXNlcjg5MDYzNTg=","login":"pdgonzalez872","name":"Paulo Daniel Gonzalez","avatarUrl":"https://avatars.githubusercontent.com/u/8906358?s=64\u0026u=ad0c4842eb3b7f8ff9259d9cfe802f07150cf9dc\u0026v=4"}]}},{"content":"ROCKET","viewerHasReacted":false,"reactors":{"totalCount":0,"nodes":[]}},{"content":"EYES","viewerHasReacted":false,"reactors":{"totalCount":0,"nodes":[]}}]}},{"cursor":"Y3Vyc29yOnYyOpPPAAABlBgOtogBqzE1Nzg1MDQxOTEz","node":{"__typename":"ReferencedEvent","id":"REFE_lADOBO5UXc4M-hUMzwAAAAOs3J_5","databaseId":15785041913,"createdAt":"2024-12-30T14:53:25Z","actor":{"id":"MDQ6VXNlcjI5ODc2NzQ=","avatarUrl":"https://avatars.githubusercontent.com/u/2987674?s=64\u0026v=4","login":"dominicletz","profileResourcePath":"/dominicletz","__typename":"User","name":"Dominic Letz"},"willCloseSubject":false,"subject":{"id":"MDU6SXNzdWUyMTc3MTU5ODA=","__typename":"Issue"},"commit":{"id":"C_kwDOIwGx9NoAKDFlNDc4NWViMGU1YzQ4YzY5MjdkMzhkMjAyMTRkYTVkYjNjMWVkNGU","message":"Merge pull request #1 from henkoch/master\n\nMerge this fork","messageHeadlineHTML":"Merge pull request \u003ca class=\"issue-link js-issue-link\" data-error-text=\"Failed to load title\" data-id=\"2991622954\" data-permission-text=\"Title is private\" data-url=\"https://github.com/witchtails/websockex_wt/issues/1\" data-hovercard-type=\"pull_request\" data-hovercard-url=\"/witchtails/websockex_wt/pull/1/hovercard\" href=\"https://github.com/witchtails/websockex_wt/pull/1\"\u003e#1\u003c/a\u003e from henkoch/master","messageBodyHTML":"Merge this fork","url":"https://github.com/witchtails/websockex_wt/commit/1e4785eb0e5c48c6927d38d20214da5db3c1ed4e","abbreviatedOid":"1e4785e","repository":{"id":"R_kgDOIwGx9A","name":"websockex_wt","owner":{"__typename":"Organization","id":"O_kgDOCEKzuw","login":"witchtails"},"defaultBranch":"master"}}}},{"cursor":"Y3Vyc29yOnYyOpPPAAABmrzQFagBqzIxMTc0MDE1MDcx","node":{"__typename":"ReferencedEvent","id":"REFE_lADOBO5UXc4M-hUMzwAAAATuEdRf","databaseId":21174015071,"createdAt":"2025-11-25T20:59:05Z","actor":{"id":"MDQ6VXNlcjI5ODc2NzQ=","avatarUrl":"https://avatars.githubusercontent.com/u/2987674?s=64\u0026v=4","login":"dominicletz","profileResourcePath":"/dominicletz","__typename":"User","name":"Dominic Letz"},"willCloseSubject":false,"subject":{"id":"MDU6SXNzdWUyMTc3MTU5ODA=","__typename":"Issue"},"commit":{"id":"C_kwDOBO5UXdoAKGRlOGEzZjRiYzM1NTAwMjIzMDJlOWE1OWU2NjIyNmMzNjA0NzRhZTE","message":"Merge pull request #1 from ZenHive/fix/ping-pong-payload-handling\n\nFix ping-pong payload handling and update test certificates","messageHeadlineHTML":"Merge pull request \u003ca class=\"issue-link js-issue-link\" data-error-text=\"Failed to load title\" data-id=\"217715980\" data-permission-text=\"Title is private\" data-url=\"https://github.com/dominicletz/websockex/issues/1\" data-hovercard-type=\"issue\" data-hovercard-url=\"/dominicletz/websockex/issues/1/hovercard\" href=\"https://github.com/dominicletz/websockex/issues/1\"\u003e#1\u003c/a\u003e from ZenHive/fix/ping-pong-payload-handling","messageBodyHTML":"Fix ping-pong payload handling and update test certificates","url":"https://github.com/dominicletz/websockex/commit/de8a3f4bc3550022302e9a59e66226c360474ae1","abbreviatedOid":"de8a3f4","repository":{"id":"MDEwOlJlcG9zaXRvcnk4MjcyODAyOQ==","name":"websockex","owner":{"__typename":"User","id":"MDQ6VXNlcjI5ODc2NzQ=","login":"dominicletz"},"defaultBranch":"master"}}}},{"cursor":"Y3Vyc29yOnYyOpPPAAABoWVySNgBqzMzOTk0MDQ5ODQ1","node":{"__typename":"ReferencedEvent","id":"REFE_lADOBO5UXc4M-hUMzwAAAAfqNAk1","databaseId":33994049845,"createdAt":"2026-10-22T21:09:11Z","actor":{"id":"MDQ6VXNlcjM3NjU3","avatarUrl":"https://avatars.githubusercontent.com/u/37657?s=64\u0026v=4","login":"neilberkman","profileResourcePath":"/neilberkman","__typename":"User","name":"Neil Berkman"},"willCloseSubject":true,"subject":{"id":"MDU6SXNzdWUyMTc3MTU5ODA=","__typename":"Issue"},"commit":{"id":"C_kwDOVUAaLtoAKGI4Zjg2MDQwM2U4MjA5YWNmNzViMjk2OWMzMTFmNTkwOGY1MTY1ZWY","message":"Verify TLS peers by default\n\nwss:// connections now verify the server certificate and hostname\nunless `insecure: true` is passed. The trust store comes from\n:public_key.cacerts_get/0 on OTP 25+, or :castore when present;\n`cacerts:` and `ssl_options:` still override it.\n\nFixes #1","messageHeadlineHTML":"Verify TLS peers by default","messageBodyHTML":"wss:// connections now verify the server certificate and hostname\nunless `insecure: true` is passed. The trust store comes from\n:public_key.cacerts_get/0 on OTP 25+, or :castore when present;\n`cacerts:` and `ssl_options:` still override it.\n\n\u003cspan class=\"issue-keyword tooltipped tooltipped-se\" aria-label=\"This commit closes issue #1.\"\u003eFixes\u003c/span\u003e \u003ca class=\"issue-link js-issue-link\" data-error-text=\"Failed to load title\" data-id=\"217715980\" data-permission-text=\"Title is private\" data-url=\"https://github.com/dominicletz/websockex/issues/1\" data-hovercard-type=\"issue\" data-hovercard-url=\"/dominicletz/websockex/issues/1/hovercard\" href=\"https://github.com/dominicletz/websockex/issues/1\"\u003edominicletz#1\u003c/a\u003e","url":"https://github.com/neilberkman/websockex/commit/b8f860403e8209acf75b2969c311f5908f5165ef","abbreviatedOid":"b8f8604","repository":{"id":"R_kgDOVUAaLg","name":"websockex","owner":{"__typename":"User","id":"MDQ6VXNlcjM3NjU3","login":"neilberkman"},"defaultBranch":"master"}}}},{"cursor":"Y3Vyc29yOnYyOpPPAAABoWV0FcgAqjYzNTE0MDA4MTE=","node":{"__typename":"IssueComment","id":"IC_kwDOBO5UXc8AAAABepKvaw","createdAt":"2026-10-22T21:11:09Z","url":"https://github.com/dominicletz/websockex/issues/1#issuecomment-6351400811","isHidden":false,"isMinimized":false,"minimizedReason":null,"databaseId":6351400811,"viewerDidAuthor":false,"issue":{"id":"MDU6SXNzdWUyMTc3MTU5ODA=","author":{"__typename":"User","id":"MDQ6VXNlcjE0MTI5NQ==","login":"Azolo"},"number":1,"locked":false,"databaseId":217715980},"author":{"__typename":"User","id":"MDQ6VXNlcjM3NjU3","login":"neilberkman","avatarUrl":"https://avatars.githubusercontent.com/u/37657?v=4","profileUrl":"https://github.com/neilberkman","name":"Neil Berkman"},"authorAssociation":"CONTRIBUTOR","viewerCanDelete":false,"viewerCanMinimize":false,"viewerCanUnminimize":false,"viewerCanReport":false,"viewerCanReportToMaintainer":false,"viewerCanBlockFromOrg":false,"viewerCanUnblockFromOrg":false,"viewerCanBlockPersonally":false,"viewerCanUnblockPersonally":false,"viewerCanPin":false,"viewerCanUnpin":false,"viaApp":null,"showSpammyBadge":false,"createdViaEmail":false,"authorToRepoOwnerSponsorship":null,"viewerCanReadUserContentEdits":true,"lastEditedAt":null,"lastUserContentEdit":null,"pinnedBy":null,"body":"PR https://github.com/dominicletz/websockex/pull/144 verifies peers by default: `verify: :verify_peer` with the OS trust store from `:public_key.cacerts_get/0` on OTP 25+, `:castore` as a fallback, hostname matching with the `:https` match function, and `insecure: true` as the explicit opt-out. `cacerts:` and `ssl_options:` keep their precedence. On older OTP with no trust store available, `open_socket/1` returns a `ConnError` that names the options instead of raising.\n\nContext for the timing: OTP 26 made `verify_peer` the `ssl` client default, so the library default is now the remaining gap, and it reached downstream users this week as req_llm's GHSA-6vww-5m28-f26v (API keys and OAuth tokens over unverified TLS). The PR also regenerates the test certificates with a subjectAltName, since OTP 29 rejects CN-only certificates and three TLS tests on `master` already fail for that reason.\n","bodyHTML":"\u003cp dir=\"auto\"\u003ePR \u003ca class=\"issue-link js-issue-link\" data-error-text=\"Failed to load title\" data-id=\"5987516796\" data-permission-text=\"Title is private\" data-url=\"https://github.com/dominicletz/websockex/issues/144\" data-hovercard-type=\"pull_request\" data-hovercard-url=\"/dominicletz/websockex/pull/144/hovercard\" href=\"https://github.com/dominicletz/websockex/pull/144\"\u003e#144\u003c/a\u003e verifies peers by default: \u003ccode class=\"notranslate\"\u003everify: :verify_peer\u003c/code\u003e with the OS trust store from \u003ccode class=\"notranslate\"\u003e:public_key.cacerts_get/0\u003c/code\u003e on OTP 25+, \u003ccode class=\"notranslate\"\u003e:castore\u003c/code\u003e as a fallback, hostname matching with the \u003ccode class=\"notranslate\"\u003e:https\u003c/code\u003e match function, and \u003ccode class=\"notranslate\"\u003einsecure: true\u003c/code\u003e as the explicit opt-out. \u003ccode class=\"notranslate\"\u003ecacerts:\u003c/code\u003e and \u003ccode class=\"notranslate\"\u003essl_options:\u003c/code\u003e keep their precedence. On older OTP with no trust store available, \u003ccode class=\"notranslate\"\u003eopen_socket/1\u003c/code\u003e returns a \u003ccode class=\"notranslate\"\u003eConnError\u003c/code\u003e that names the options instead of raising.\u003c/p\u003e\n\u003cp dir=\"auto\"\u003eContext for the timing: OTP 26 made \u003ccode class=\"notranslate\"\u003everify_peer\u003c/code\u003e the \u003ccode class=\"notranslate\"\u003essl\u003c/code\u003e client default, so the library default is now the remaining gap, and it reached downstream users this week as req_llm's \u003ca title=\"GHSA-6vww-5m28-f26v\" href=\"https://github.com/agentjido/req_llm/security/advisories/GHSA-6vww-5m28-f26v\"\u003eGHSA-6vww-5m28-f26v\u003c/a\u003e (API keys and OAuth tokens over unverified TLS). The PR also regenerates the test certificates with a subjectAltName, since OTP 29 rejects CN-only certificates and three TLS tests on \u003ccode class=\"notranslate\"\u003emaster\u003c/code\u003e already fail for that reason.\u003c/p\u003e","bodyVersion":"575870ab2049fe4b19b9f219702faf0e396be14a6661022c3b6313990e308c4d","viewerCanUpdate":false,"repository":{"id":"MDEwOlJlcG9zaXRvcnk4MjcyODAyOQ==","name":"websockex","owner":{"__typename":"User","id":"MDQ6VXNlcjI5ODc2NzQ=","login":"dominicletz","url":"https://github.com/dominicletz"},"isPrivate":false,"viewerCanCreateIssues":false,"slashCommandsEnabled":false,"nameWithOwner":"dominicletz/websockex","databaseId":82728029},"reactionGroups":[{"content":"THUMBS_UP","viewerHasReacted":false,"reactors":{"totalCount":0,"nodes":[]}},{"content":"THUMBS_DOWN","viewerHasReacted":false,"reactors":{"totalCount":0,"nodes":[]}},{"content":"LAUGH","viewerHasReacted":false,"reactors":{"totalCount":0,"nodes":[]}},{"content":"HOORAY","viewerHasReacted":false,"reactors":{"totalCount":0,"nodes":[]}},{"content":"CONFUSED","viewerHasReacted":false,"reactors":{"totalCount":0,"nodes":[]}},{"content":"HEART","viewerHasReacted":false,"reactors":{"totalCount":0,"nodes":[]}},{"content":"ROCKET","viewerHasReacted":false,"reactors":{"totalCount":0,"nodes":[]}},{"content":"EYES","viewerHasReacted":false,"reactors":{"totalCount":0,"nodes":[]}}]}},{"cursor":"Y3Vyc29yOnYyOpPPAAABoWXZxQgBqzM0MDAxNjc1ODE5","node":{"__typename":"ClosedEvent","id":"CE_lADOBO5UXc4M-hUMzwAAAAfqqGYr","databaseId":34001675819,"createdAt":"2026-10-22T23:02:13Z","actor":{"id":"MDQ6VXNlcjI5ODc2NzQ=","avatarUrl":"https://avatars.githubusercontent.com/u/2987674?s=64\u0026v=4","login":"dominicletz","profileResourcePath":"/dominicletz","__typename":"User","name":"Dominic Letz"},"stateReason":"COMPLETED","duplicateOf":null,"closingProjectItemStatus":null,"closer":{"id":"PR_kwDOBO5UXc8AAAABKHvebw","__typename":"PullRequest","url":"https://github.com/dominicletz/websockex/pull/144","number":144,"repository":{"id":"MDEwOlJlcG9zaXRvcnk4MjcyODAyOQ==","name":"websockex","owner":{"__typename":"User","id":"MDQ6VXNlcjI5ODc2NzQ=","login":"dominicletz"}}},"intent":null}}]},"pendingSuggestions":[]}},"safeViewer":null},"feed":"activity","activityTimeline":{"state":"UNAVAILABLE","canToggle":false},"queryOperation":{"name":"IssueViewerPage","id":"c66d034381cc264d626ac8cf9d35ff1bb35455489c4bdb61288e19b36b767678"}},"issuesLayoutRoute":{"has_projects_enabled":true,"has_labels_archiving_enabled":true,"current_user":null,"current_user_settings":{"preferred_emoji_skin_tone":null,"copilot_show_functionality":false},"sidebar_expanded":true,"pinned_views":[],"pinned_views_enabled":true,"best_match_sort_enabled":false,"issue_types_enabled":true,"issue_search_type":null,"show_issue_field_pills":false,"viewer_can_create_issues":false,"is_writable":false,"repository_id":"MDEwOlJlcG9zaXRvcnk4MjcyODAyOQ==","can_bulk_update":false,"actions":{"new_issue":{"label":"New issue","url":"/dominicletz/websockex/issues/new","disabled_reason":null}},"compact_mode":false},"repoLayoutRoute":{"js":{"scanning":{"values":["https://github.githubassets.com/assets/scanning-b00af0acf3510233.js"]},"code-menu":{"values":["https://github.githubassets.com/assets/code-menu-58c850e4333353a3.js"]},"codespaces":{"values":["https://github.githubassets.com/assets/codespaces-e4356a9c1993bec6.js"]},"pull-requests":{"values":["https://github.githubassets.com/assets/app-runtime-fe654b95a55f1f96.js","https://github.githubassets.com/assets/primer-react-a8793df31d3bf19f.js","https://github.githubassets.com/assets/react-core-b259702d02974425.js","https://github.githubassets.com/assets/28372-16d49407eddff190.js","https://github.githubassets.com/assets/99405-72767a4e8fd2024d.js","https://github.githubassets.com/assets/34719-1311b9cdfd727258.js","https://github.githubassets.com/assets/68764-3093b2901f4f2896.js","https://github.githubassets.com/assets/35284-6b2d77a43bb3ac65.js","https://github.githubassets.com/assets/6184-c73106e8a98c68a7.js","https://github.githubassets.com/assets/77485-aba082c667f57f30.js","https://github.githubassets.com/assets/47669-43e09d7789eca28f.js","https://github.githubassets.com/assets/95184-46e988ac96e00403.js","https://github.githubassets.com/assets/81650-cad7e383a56a700d.js","https://github.githubassets.com/assets/5517-699eb971ed74942d.js","https://github.githubassets.com/assets/65475-4d313d4477a6e2e6.js","https://github.githubassets.com/assets/98259-dbae220a59956599.js","https://github.githubassets.com/assets/27379-e3609a018a819884.js","https://github.githubassets.com/assets/46782-dce6a612fa5d1ef4.js","https://github.githubassets.com/assets/26732-9636f114f3095070.js","https://github.githubassets.com/assets/1416-5480d76a1a3d4829.js","https://github.githubassets.com/assets/98713-7c849a229024c133.js","https://github.githubassets.com/assets/31170-6d931eeb334866f7.js","https://github.githubassets.com/assets/25005-9af2856f0d44fba4.js","https://github.githubassets.com/assets/4947-d4955ef6ab10267c.js","https://github.githubassets.com/assets/17043-3844c4c668619a55.js","https://github.githubassets.com/assets/15020-87a29233636c76a7.js","https://github.githubassets.com/assets/95223-cc69820b9007936b.js","https://github.githubassets.com/assets/16945-468221b02213e2dd.js","https://github.githubassets.com/assets/42498-e37653ca12cdb197.js","https://github.githubassets.com/assets/34406-7f9bd3df0e80681c.js","https://github.githubassets.com/assets/56287-fa789bac7dd12804.js","https://github.githubassets.com/assets/25706-6cc1c9e6169d9da2.js","https://github.githubassets.com/assets/60380-6d37f93bfd317e69.js","https://github.githubassets.com/assets/22005-b938a96aedd7b7a3.js","https://github.githubassets.com/assets/96314-7f5ac290645fae62.js","https://github.githubassets.com/assets/32087-81963c03d2460fd0.js","https://github.githubassets.com/assets/80614-7b95cfe25cfd916f.js","https://github.githubassets.com/assets/60097-84d11b55187cc95b.js","https://github.githubassets.com/assets/92999-7e7a0349e41f4630.js","https://github.githubassets.com/assets/95275-fc124b38c16dd921.js","https://github.githubassets.com/assets/40434-285b1519a313feb1.js","https://github.githubassets.com/assets/75233-4b6aabd5cd4d0121.js","https://github.githubassets.com/assets/68082-d2ca00d7b736a448.js","https://github.githubassets.com/assets/34207-367a749b938f69f5.js","https://github.githubassets.com/assets/88062-578441d85550f855.js","https://github.githubassets.com/assets/21914-4acec81a9cb9c462.js","https://github.githubassets.com/assets/84715-1a759f25ab523232.js","https://github.githubassets.com/assets/77296-07dbdfbc4488ad2f.js","https://github.githubassets.com/assets/51117-9d458fb2bbd149b7.js","https://github.githubassets.com/assets/72643-60d9f81a09ab2fc5.js","https://github.githubassets.com/assets/48938-788447fa9a14e622.js","https://github.githubassets.com/assets/54491-7cc2be5314825c13.js","https://github.githubassets.com/assets/35498-d1fcde4c26b4d29e.js","https://github.githubassets.com/assets/64854-f046f1d8fb12e591.js","https://github.githubassets.com/assets/65166-f64858366f223346.js","https://github.githubassets.com/assets/27455-573b9336909700f1.js","https://github.githubassets.com/assets/94048-97498366a042e466.js","https://github.githubassets.com/assets/38697-dec3e440a433d0f6.js","https://github.githubassets.com/assets/13982-b2dbfad536f6770c.js","https://github.githubassets.com/assets/35684-1fdf87867f783f0b.js","https://github.githubassets.com/assets/80352-c734109c30a83270.js","https://github.githubassets.com/assets/18468-da81aa31133b0a42.js","https://github.githubassets.com/assets/73097-52b8763a5a1fed12.js","https://github.githubassets.com/assets/18699-a575a5703ebfbab7.js","https://github.githubassets.com/assets/84151-625a43db679ab09d.js","https://github.githubassets.com/assets/59041-d978f40677c4e0a4.js","https://github.githubassets.com/assets/73594-70490966efc3dc3a.js","https://github.githubassets.com/assets/6787-696f233c38d50c02.js","https://github.githubassets.com/assets/77690-c321acb5864fafd4.js","https://github.githubassets.com/assets/46675-61fc5f18ee6dfa37.js","https://github.githubassets.com/assets/83411-21e3db04f21ff7d8.js","https://github.githubassets.com/assets/59166-e0792c06d2c0ef06.js","https://github.githubassets.com/assets/21045-2f1ba70267388d8e.js","https://github.githubassets.com/assets/11208-811dfa4379996974.js","https://github.githubassets.com/assets/2190-0dac0a0972d0c9a7.js","https://github.githubassets.com/assets/86289-950f3826389ea7d8.js","https://github.githubassets.com/assets/59904-da425ce3c98b1f76.js","https://github.githubassets.com/assets/52656-180cf2e4e4e307e1.js","https://github.githubassets.com/assets/57002-014d29f1a18bd124.js","https://github.githubassets.com/assets/38078-36b2ee5ba2349c08.js","https://github.githubassets.com/assets/2986-2d0c08e90fa4c87e.js","https://github.githubassets.com/assets/16666-e3c90f4b34303a13.js","https://github.githubassets.com/assets/35597-b8ba00c5542dc1ce.js","https://github.githubassets.com/assets/24614-1675c5e2b5377047.js","https://github.githubassets.com/assets/95153-d717e954c0396783.js","https://github.githubassets.com/assets/42900-b04f9edb1214bd20.js","https://github.githubassets.com/assets/42045-aee8c6ad3b166b60.js","https://github.githubassets.com/assets/38899-5227b073b97658c8.js","https://github.githubassets.com/assets/40777-4877662fb39ee691.js","https://github.githubassets.com/assets/93960-3595dfe6fcc180d5.js","https://github.githubassets.com/assets/9603-a4aed937f08303b8.js","https://github.githubassets.com/assets/55448-bfb26fd155adde60.js","https://github.githubassets.com/assets/63202-979ceb46224f5479.js","https://github.githubassets.com/assets/82542-8d07bad38865dcc5.js","https://github.githubassets.com/assets/75332-921b33ba45a3f8b9.js","https://github.githubassets.com/assets/27632-f4366f5d3547e36d.js","https://github.githubassets.com/assets/36061-452d7057a81c4187.js","https://github.githubassets.com/assets/14189-9d73fd58643a9d5b.js","https://github.githubassets.com/assets/73528-aa96c926a9825e09.js","https://github.githubassets.com/assets/75075-3580038996dc35fd.js","https://github.githubassets.com/assets/40238-f247a3d60f09a536.js","https://github.githubassets.com/assets/89543-ed1a4ff4fde272e1.js","https://github.githubassets.com/assets/21224-9b478ca9c4ac5b47.js","https://github.githubassets.com/assets/91175-599baa07940eac56.js","https://github.githubassets.com/assets/71807-283f63f7ba9af84a.js","https://github.githubassets.com/assets/27562-0cfbd213933c060b.js","https://github.githubassets.com/assets/73495-025b8dfd4d88db8c.js","https://github.githubassets.com/assets/66389-0daee5899199d848.js","https://github.githubassets.com/assets/57210-b19fa9c273c0d32a.js","https://github.githubassets.com/assets/43200-9a222e34ad0bafb2.js","https://github.githubassets.com/assets/14005-e535d02608055846.js","https://github.githubassets.com/assets/5701-4f8f8d192a60ecf1.js"
8000
,"https://github.githubassets.com/assets/92857-a2efb990d367f1a0.js","https://github.githubassets.com/assets/44622-8f84630d7132f12b.js","https://github.githubassets.com/assets/71875-f3857d1bab0fa40b.js","https://github.githubassets.com/assets/55238-d113e8f42518990b.js","https://github.githubassets.com/assets/458-6d6edbd03f650680.js","https://github.githubassets.com/assets/51238-1d21945497bc43a2.js","https://github.githubassets.com/assets/4000-5195e9a5835363e5.js","https://github.githubassets.com/assets/21458-9ef4c7ddb5780a5e.js","https://github.githubassets.com/assets/29378-240d8e0876b67db3.js","https://github.githubassets.com/assets/19790-c0387d179b5b4cac.js","https://github.githubassets.com/assets/71434-8678fdf7404c5708.js","https://github.githubassets.com/assets/70356-452e6d0ecd6b0098.js","https://github.githubassets.com/assets/41907-fc723c5bbbedd9cc.js","https://github.githubassets.com/assets/40213-b0e83366d943395b.js","https://github.githubassets.com/assets/15761-33254e38679f6932.js","https://github.githubassets.com/assets/90790-8049125ca1ec3490.js","https://github.githubassets.com/assets/87163-ce1ef84e89d89335.js","https://github.githubassets.com/assets/37778-204887e91a0d410f.js","https://github.githubassets.com/assets/2974-76913b641dd94ab6.js","https://github.githubassets.com/assets/4180-a05866fa00a4f787.js","https://github.githubassets.com/assets/47029-dd5295a216d25d13.js","https://github.githubassets.com/assets/pull-requests-27666f7dbdd7e2f0.js"]},"editor":{"values":["https://github.githubassets.com/assets/48326-6fd433aebd78c955.js","https://github.githubassets.com/assets/editor-40fd0f2707d1d65f.js"]},"repositories":{"values":["https://github.githubassets.com/assets/app-runtime-fe654b95a55f1f96.js","https://github.githubassets.com/assets/repositories-bd4a7f91aa68bb31.js"]},"actions":{"values":["https://github.githubassets.com/assets/actions-0bdb6c02464bfc59.js"]},"pull-requests-list":{"values":["https://github.githubassets.com/assets/pull-requests-list-1ead85d45f40a49c.js"]},"diffs":{"values":["https://github.githubassets.com/assets/99430-faf0b06699f8e90d.js","https://github.githubassets.com/assets/diffs-b6aaab94d268fa08.js"]}},"css":{"repositories":{"values":["https://github.githubassets.com/assets/app-runtime.ab82c7019c867706.module.css"]},"copilot-code-review":{"values":["https://github.githubassets.com/assets/copilot-code-review-42b75ef95db82a2c.css"]},"actions":{"values":["https://github.githubassets.com/assets/actions-812c5f76c57dce11.css"]},"pull-requests":{"values":["https://github.githubassets.com/assets/app-runtime.ab82c7019c867706.module.css","https://github.githubassets.com/assets/react-core.10107776413acc8b.module.css","https://github.githubassets.com/assets/75075.f2ea0781c8316695.module.css","https://github.githubassets.com/assets/92857.29f2787b1a266088.module.css","https://github.githubassets.com/assets/71875.ea2738f437501015.module.css","https://github.githubassets.com/assets/21458.9f7758b3754d6b18.module.css","https://github.githubassets.com/assets/41907.00bbb8b5d0c0f635.module.css","https://github.githubassets.com/assets/pull-requests.c0a6f7715065cfa6.module.css","https://github.githubassets.com/assets/pull-requests-496e57b90f37de3f.css"]},"releases":{"values":["https://github.githubassets.com/assets/releases-259c86dec689d9de.css"]},"code":{"values":["https://github.githubassets.com/assets/code-5fc5d14af880ef6c.css"]}}}},"title":"SSL peers aren't verfied · Issue #1 · dominicletz/websockex","appPayload":{"enabled_features":{"issues_bounded_conversation":false,"move_new_comments_ui":false,"cotd_derive_thread_previews":false,"prx_dynamic_split_pref":false,"prx_files":false,"pulls-files-skip-prefer-any-solo-entry":false,"generate_groups_on_files_view":false,"prx_robust_small_screen_support":false,"prs_contextual_comment_controls":true,"ci_analysis_check_runs_ui_enabled":false,"react_data_router_pull_request_files":false,"repo_pulls_dashboard_surface":true,"prs_overview_as_index_route":false,"pull_request_stacks":true,"cotd_ui":true,"pull_request_merge_status_button_opt_out":false,"authentic_contributions_frontend":false}},"meta":{"title":"SSL peers aren't verfied · Issue #1 · dominicletz/websockex","protoRoutes":["repoLayoutRoute"]}}
The Erlang :ssl module is very strict in its certification checking.
The result of that is that, if I understand correctly, verify_peer option works when everything is basically done correctly.
What I found out is that the internet is obviously broken everywhere, the :ssl module reliably connects to just about zero of the sites I tried when verifying the peer with CA certs from erlang-certifi.
After that I tried a bunch of other stuff and made some progress, changed some more stuff only to find that it still didn't work. So I threw my hands up and made everything insecure by default.
TLDR;
I'm not smart enough to make the :ssl module's verify_peer work correctly.
Not sure what you are trying to accomplish but you could simply pass ssl options on. I wrote a short article on verify_fun that shows how to do certificate pinning, hopefully it helps.
@xlphs Cool, thanks for that article. It actually shows me a different way that the ssl module could be used and I need to keep that in mind.
What I am trying to accomplish is just being able to open a tcp socket to a site like https://google.com and verify that I am in fact connecting to https://google.com through the certificate verification. Erlang's :ssl module seems super picky about how you do that.
maybe you should take a look at elixir-socket?
i was trying to connect to wss://eu-central434.discord.gg:80, elixir-socket could connect, yet websockex returns %WebSockex.ConnError{original: {:tls_alert, 'record overflow'}}
@khodzha Thanks for the info. I think it's possible that elixir-socket is ignoring the :80 and using port 443 because of the wss protocol. I don't think that Discord is handle SSL connections on port 80.
I spent a good part of yesterday working with Erlang's :ssl to get it to work with [verify: :verify_peer]. I too found it a bit confusing and hard to work with. I followed Hackney's :ssl setup as best I could (as documented here).
I got it working to a point -- but I'm not leveraging https://github.com/deadtrickster/ssl_verify_fun.erl like the Hackney project is. I'm not sure what state this puts it in -- but this is the working code I have so far:
PR #144 verifies peers by default: verify: :verify_peer with the OS trust store from :public_key.cacerts_get/0 on OTP 25+, :castore as a fallback, hostname matching with the :https match function, and insecure: true as the explicit opt-out. cacerts: and ssl_options: keep their precedence. On older OTP with no trust store available, open_socket/1 returns a ConnError that names the options instead of raising.
Context for the timing: OTP 26 made verify_peer the ssl client default, so the library default is now the remaining gap, and it reached downstream users this week as req_llm's GHSA-6vww-5m28-f26v (API keys and OAuth tokens over unverified TLS). The PR also regenerates the test certificates with a subjectAltName, since OTP 29 rejects CN-only certificates and three TLS tests on master already fail for that reason.
Activity
[-]SSL Connections aren't secure[/-][+]SSL peers aren't verfied[/+]xlphs commentedon Jun 13, 2017
Not sure what you are trying to accomplish but you could simply pass ssl options on. I wrote a short article on
verify_funthat shows how to do certificate pinning, hopefully it helps.Azolo commentedon Jun 13, 2017
@xlphs Cool, thanks for that article. It actually shows me a different way that the
sslmodule could be used and I need to keep that in mind.What I am trying to accomplish is just being able to open a tcp socket to a site like
https://google.comand verify that I am in fact connecting tohttps://google.comthrough the certificate verification. Erlang's:sslmodule seems super picky about how you do that.khodzha commentedon Jul 9, 2017
maybe you should take a look at elixir-socket?
i was trying to connect to wss://eu-central434.discord.gg:80, elixir-socket could connect, yet websockex returns %WebSockex.ConnError{original: {:tls_alert, 'record overflow'}}
Azolo commentedon Jul 9, 2017
@khodzha Thanks for the info. I think it's possible that
elixir-socketis ignoring the:80and using port 443 because of thewssprotocol. I don't think that Discord is handleSSLconnections on port 80.khodzha commentedon Jul 9, 2017
yeah, sorry for trouble
discord docs were quite confusing there, connecting without port and with some query params works as expected
👌
brian-petersen commentedon Nov 22, 2021
I spent a good part of yesterday working with Erlang's
:sslto get it to work with[verify: :verify_peer]. I too found it a bit confusing and hard to work with. I followed Hackney's:sslsetup as best I could (as documented here).I got it working to a point -- but I'm not leveraging https://github.com/deadtrickster/ssl_verify_fun.erl like the Hackney project is. I'm not sure what state this puts it in -- but this is the working code I have so far:
The
CAStore.file_path()call comes from https://github.com/elixir-mint/castore.As far I can tell, the only thing really missing from this setup is something like this:
(Notice that
check_hostnameis a charlist.) Hope this helps someone!Merge pull request #1 from henkoch/master
Merge pull request #1 from ZenHive/fix/ping-pong-payload-handling
Verify TLS peers by default
neilberkman commentedon Oct 22, 2026
PR #144 verifies peers by default:
verify: :verify_peerwith the OS trust store from:public_key.cacerts_get/0on OTP 25+,:castoreas a fallback, hostname matching with the:httpsmatch function, andinsecure: trueas the explicit opt-out.cacerts:andssl_options:keep their precedence. On older OTP with no trust store available,open_socket/1returns aConnErrorthat names the options instead of raising.Context for the timing: OTP 26 made
verify_peerthesslclient default, so the library default is now the remaining gap, and it reached downstream users this week as req_llm's GHSA-6vww-5m28-f26v (API keys and OAuth tokens over unverified TLS). The PR also regenerates the test certificates with a subjectAltName, since OTP 29 rejects CN-only certificates and three TLS tests onmasteralready fail for that reason.