# \#https

**URL:** https://forum.elixirforum.com/tag/https/774.md

[Latest](https://forum.elixirforum.com/latest.md) · [Categories](https://forum.elixirforum.com/categories.md) · [Tags](https://forum.elixirforum.com/tags.md)

---

## [Mix phx.gen.cert leads to TLS error on MacOS](https://forum.elixirforum.com/t/mix-phx-gen-cert-leads-to-tls-error-on-macos/73967)

<div class="topic-metadata">

**Author:** [@fteschke](https://forum.elixirforum.com/u/fteschke)\
**Replies:** 1\
**Last updated:** [January 15, 2026, 3:20pm UTC](https://forum.elixirforum.com/t/mix-phx-gen-cert-leads-to-tls-error-on-macos/73967 "2026-01-15T15:20:34Z")

</div>

On MacOS, when using self-signed certificates generated via mix phx.gen.cert for local testing, the browser fails with ERR\_SSL\_PROTOCOL\_ERROR and I see this in the server logs: \[notice\] TLS :server: In state :wait\_fin…

---

## [Does Mint/Finch support Mutual TLS](https://forum.elixirforum.com/t/does-mint-finch-support-mutual-tls/34354)

<div class="topic-metadata">

**Author:** [@ntilwalli](https://forum.elixirforum.com/u/ntilwalli)\
**Replies:** 4\
**Last updated:** [September 19, 2025, 7:56pm UTC](https://forum.elixirforum.com/t/does-mint-finch-support-mutual-tls/34354 "2025-09-19T19:56:19Z")

</div>

Hi all! I’ve started playing with Mint/Finch for HTTP requests and I love it so far but it seems mutual TLS is not yet supported. I don’t see any option to provide a “certfile”/“keyfile” pair like Hackney. Am I right …

---

## [X509 - High-level APIs around certificates, CSRs and key pairs](https://forum.elixirforum.com/t/x509-high-level-apis-around-certificates-csrs-and-key-pairs/14963)

<div class="topic-metadata">

**Author:** [@voltone](https://forum.elixirforum.com/u/voltone)\
**Replies:** 6\
**Last updated:** [June 20, 2025, 7:09pm UTC](https://forum.elixirforum.com/t/x509-high-level-apis-around-certificates-csrs-and-key-pairs/14963 "2025-06-20T19:09:47Z")

</div>

Erlang/OTP’s :public\_key application provides a set of high-level APIs for working with common PKI-related data structures. Under the hood, it supports many more data types, extracted at build time from various standard …

---

## [HTTPS SSL Phoenix 1.4](https://forum.elixirforum.com/t/https-ssl-phoenix-1-4/18868)

<div class="topic-metadata">

**Author:** [@Codball](https://forum.elixirforum.com/u/Codball)\
**Replies:** 9\
**Last updated:** [September 9, 2024, 12:04pm UTC](https://forum.elixirforum.com/t/https-ssl-phoenix-1-4/18868 "2024-09-09T12:04:33Z")

</div>

Been trying to generate a self-signed certificate for HTTPS testing on a webserver hosted on an AWS EC2 instance. When I run MIX\_ENV=prod mix phx.server I get the error: 19:09:05.450 \[error\] Failed to start Ranch listen…

---

## [HTTPS request using Req and DNS over HTTPS](https://forum.elixirforum.com/t/https-request-using-req-and-dns-over-https/62162)

<div class="topic-metadata">

**Author:** [@raleng](https://forum.elixirforum.com/u/raleng)\
**Replies:** 0\
**Last updated:** [March 7, 2024, 7:59pm UTC](https://forum.elixirforum.com/t/https-request-using-req-and-dns-over-https/62162 "2024-03-07T19:59:21Z")

</div>

Hey everyone, I’m still pretty new to Elixir so I don’t have any experience with any HTTP library, but ran into an issue using Req. Since I was able to solve my problem using HTTPoisen, this post is more out of curiosit…

---

## [Hex failing to install on Windows 10 VM (CA error)](https://forum.elixirforum.com/t/hex-failing-to-install-on-windows-10-vm-ca-error/61299)

<div class="topic-metadata">

**Author:** [@bharder](https://forum.elixirforum.com/u/bharder)\
**Replies:** 4\
**Last updated:** [January 31, 2024, 2:57pm UTC](https://forum.elixirforum.com/t/hex-failing-to-install-on-windows-10-vm-ca-error/61299 "2024-01-31T14:57:44Z")

</div>

Followed the Windows install instructions but am not able to get Hex installed. I do not have this issue on my main Ubuntu machine but only within the Windows 10 virtual machine. \> mix test …

---

## [Cannot manage to get MTLS working with elixir](https://forum.elixirforum.com/t/cannot-manage-to-get-mtls-working-with-elixir/60966)

<div class="topic-metadata">

**Author:** [@jkbbwr](https://forum.elixirforum.com/u/jkbbwr)\
**Replies:** 4\
**Last updated:** [January 17, 2024, 2:43am UTC](https://forum.elixirforum.com/t/cannot-manage-to-get-mtls-working-with-elixir/60966 "2024-01-17T02:43:27Z")

</div>

I am able to do MTLS connections to a given service using curl and httpie. That works fine. An example of a working httpie command http post --cert=./cert.pem --cert-key=./cert.key \<url\> The key is passphrase protected…

---

## [TLS :server: In state :certify received CLIENT ALERT: Fatal - Certificate Unknown](https://forum.elixirforum.com/t/tls-in-state-certify-received-client-alert-fatal-certificate-unknown/51663)

<div class="topic-metadata">

**Author:** [@fireproofsocks](https://forum.elixirforum.com/u/fireproofsocks)\
**Replies:** 4\
**Last updated:** [June 9, 2023, 2:36pm UTC](https://forum.elixirforum.com/t/tls-in-state-certify-received-client-alert-fatal-certificate-unknown/51663 "2023-06-09T14:36:28Z")

</div>

I’m trying to set up a self-signed certificate for a Phoenix app, but I’m getting log messages about “TLS :server: In state :certify received CLIENT ALERT: Fatal - Certificate Unknown”. I know others have posted about t…

---

## [WebSocket connection to "wss://XXX" failed: in AWS ECS i.e. failed only in https not in http](https://forum.elixirforum.com/t/websocket-connection-to-wss-xxx-failed-in-aws-ecs-i-e-failed-only-in-https-not-in-http/56036)

<div class="topic-metadata">

**Author:** [@odeyinkao](https://forum.elixirforum.com/u/odeyinkao)\
**Replies:** 4\
**Last updated:** [May 23, 2023, 9:39am UTC](https://forum.elixirforum.com/t/websocket-connection-to-wss-xxx-failed-in-aws-ecs-i-e-failed-only-in-https-not-in-http/56036 "2023-05-23T09:39:33Z")

</div>

Deploying Phoenix Liveview on AWS ECS with application load balancers using 2 listeners both forwarding traffic to HTTP on Port 80 from HTTPS-443 and HTTP-80. The HTTP works fine but HTTPS WebSocket keeps failing. runt…

---

## [Self signed certificate on localhost](https://forum.elixirforum.com/t/self-signed-certificate-on-localhost/55789)

<div class="topic-metadata">

**Author:** [@josefrichter](https://forum.elixirforum.com/u/josefrichter)\
**Replies:** 7\
**Last updated:** [May 17, 2023, 10:29pm UTC](https://forum.elixirforum.com/t/self-signed-certificate-on-localhost/55789 "2023-05-17T22:29:06Z")

</div>

Hi, I have a LiveView that loads a Vimeo player in an iframe, so the src is https. For this to work on localhost, it seems I need to serve everything over https. I tried the standard config to generate certificates wi…

---

## [Could not start Cowboy2 adapter, SSL's :keyfile not accessible](https://forum.elixirforum.com/t/could-not-start-cowboy2-adapter-ssls-keyfile-not-accessible/49025)

<div class="topic-metadata">

**Author:** [@ntilwalli](https://forum.elixirforum.com/u/ntilwalli)\
**Replies:** 5\
**Last updated:** [July 28, 2022, 12:30pm UTC](https://forum.elixirforum.com/t/could-not-start-cowboy2-adapter-ssls-keyfile-not-accessible/49025 "2022-07-28T12:30:11Z")

</div>

Hi all, my Phoenix server is failing to start on my EC2 instance because the server says it cannot access my SSL’s keyfile. I see this eror: \*\*\*(ArgumentError) could not start Cowboy2 adapter, the file /etc/letsencrypt…

---

## [Peppermint - Easy to use process-less HTTP client build on Mint](https://forum.elixirforum.com/t/peppermint-easy-to-use-process-less-http-client-build-on-mint/31713)

<div class="topic-metadata">

**Author:** [@fidr](https://forum.elixirforum.com/u/fidr)\
**Replies:** 4\
**Last updated:** [January 20, 2022, 10:04am UTC](https://forum.elixirforum.com/t/peppermint-easy-to-use-process-less-http-client-build-on-mint/31713 "2022-01-20T10:04:46Z")

</div>

Peppermint (Docs) I build an easy-to-use process-less HTTP client build on Mint. It should cover the basic needs, without needing to deep-dive into Mint itself. Some examples: GET {:ok, %{status: 200, headers: header…

---

## [HTTPS on ECS with docker, Let's Encrypt with no http server](https://forum.elixirforum.com/t/https-on-ecs-with-docker-lets-encrypt-with-no-http-server/33362)

<div class="topic-metadata">

**Author:** [@brundozer](https://forum.elixirforum.com/u/brundozer)\
**Replies:** 8\
**Last updated:** [June 7, 2021, 7:03pm UTC](https://forum.elixirforum.com/t/https-on-ecs-with-docker-lets-encrypt-with-no-http-server/33362 "2021-06-07T19:03:15Z")

</div>

Hi, I’ve been desperately trying to make my phoenix app work with HTTPS and despite the huge amount of resources available on this forum and other websites about this, I haven’t yet been able to do so. The website work…

---

## [Mutual TLS authentication](https://forum.elixirforum.com/t/mutual-tls-authentication/36133)

<div class="topic-metadata">

**Author:** [@ngscheurich](https://forum.elixirforum.com/u/ngscheurich)\
**Replies:** 3\
**Last updated:** [May 29, 2021, 1:42am UTC](https://forum.elixirforum.com/t/mutual-tls-authentication/36133 "2021-05-29T01:42:07Z")

</div>

Anyone here have experience with getting mutual TLS authentication working with an Elixir HTTP client?I have a CA file, certificate, and private key that work in a few other contexts with the request am trying to make: …

---

## [Request Smuggling Via HTTP/2 - Is Phoenix Vulnerable?](https://forum.elixirforum.com/t/request-smuggling-via-http-2-is-phoenix-vulnerable/38639)

<div class="topic-metadata">

**Author:** [@Exadra37](https://forum.elixirforum.com/u/Exadra37)\
**Replies:** 2\
**Last updated:** [April 1, 2021, 8:31pm UTC](https://forum.elixirforum.com/t/request-smuggling-via-http-2-is-phoenix-vulnerable/38639 "2021-04-01T20:31:54Z")

</div>

The revival of HTTP request smuggling has led to devastating vulnerabilities in our modern application deployments. An HTTP request smuggled past the validation of an edge server can lead to serious consequences, incl…

---

## [CSRF token issue when running Phoenix in a Docker container locally](https://forum.elixirforum.com/t/csrf-token-issue-when-running-phoenix-in-a-docker-container-locally/35506)

<div class="topic-metadata">

**Author:** [@nathanl](https://forum.elixirforum.com/u/nathanl)\
**Replies:** 1\
**Last updated:** [January 11, 2021, 6:48pm UTC](https://forum.elixirforum.com/t/csrf-token-issue-when-running-phoenix-in-a-docker-container-locally/35506 "2021-01-11T18:48:48Z")

</div>

Recently I wrote a Dockerfile to build and run our Phoenix app in a container in production mode. When running it locally, everything seemed to work, but when I tried to submit a form, I got a CSRF token error. My coll…

---

## [Proper way to enforce https only?](https://forum.elixirforum.com/t/proper-way-to-enforce-https-only/2117)

<div class="topic-metadata">

**Author:** [@ibgib](https://forum.elixirforum.com/u/ibgib)\
**Replies:** 26\
**Last updated:** [November 21, 2020, 11:56pm UTC](https://forum.elixirforum.com/t/proper-way-to-enforce-https-only/2117 "2020-11-21T23:56:11Z")

</div>

I’m currently in the process of deploying ibgib, and I just finished configuring my DNS :eyes: :checkered\_flag:. Now I’m trying to set up https redirection so that (http://)www.ibgib.com will automatically redirect to h…

---

## [Elixir Blog Post: How we split Plug.SSL to control SSL redirection](https://forum.elixirforum.com/t/elixir-blog-post-how-we-split-plug-ssl-to-control-ssl-redirection/34841)

<div class="topic-metadata">

**Author:** [@wolf4earth](https://forum.elixirforum.com/u/wolf4earth)\
**Replies:** 0\
**Last updated:** [October 9, 2020, 9:22am UTC](https://forum.elixirforum.com/t/elixir-blog-post-how-we-split-plug-ssl-to-control-ssl-redirection/34841 "2020-10-09T09:22:58Z")

</div>

Posted via Devtalk (see this thread for details).

---

## [Uploads break on HTTPS with HTTP2 enabled](https://forum.elixirforum.com/t/uploads-break-on-https-with-http2-enabled/32451)

<div class="topic-metadata">

**Author:** [@yurko](https://forum.elixirforum.com/u/yurko)\
**Replies:** 0\
**Last updated:** [June 18, 2020, 1:05pm UTC](https://forum.elixirforum.com/t/uploads-break-on-https-with-http2-enabled/32451 "2020-06-18T13:05:39Z")

</div>

I recently had to deal with a strage bug: Reported were uploads that break with a net::ERR\_CONNECTION\_CLOSED. Some debugging let us clarify this issue: That only happens in Chrome / Chromium (Firefox works fine), only v…

---

## [Issue with http clients and some https certificates](https://forum.elixirforum.com/t/issue-with-http-clients-and-some-https-certificates/32014)

<div class="topic-metadata">

**Author:** [@thousandsofthem](https://forum.elixirforum.com/u/thousandsofthem)\
**Replies:** 20\
**Last updated:** [June 3, 2020, 2:36pm UTC](https://forum.elixirforum.com/t/issue-with-http-clients-and-some-https-certificates/32014 "2020-06-03T14:36:38Z")

</div>

Please help me debug the issue with https certificates, need some ideas what to check next When fetching data using http clients, some https:// urls returning “Certificate Expired”, despite being perfectly valid, e.g. h…

---

## [Phoenix app in docker with ssl not receiving anything on port 443](https://forum.elixirforum.com/t/phoenix-app-in-docker-with-ssl-not-receiving-anything-on-port-443/31229)

<div class="topic-metadata">

**Author:** [@TheYuwana](https://forum.elixirforum.com/u/TheYuwana)\
**Replies:** 17\
**Last updated:** [May 11, 2020, 12:47pm UTC](https://forum.elixirforum.com/t/phoenix-app-in-docker-with-ssl-not-receiving-anything-on-port-443/31229 "2020-05-11T12:47:02Z")

</div>

Hey there fellow devs, For the love of everything, I can’t seem to get this to work… I have a docker container with a phoenix app running in there. It’s hosted on a subdomain “sub.example.com” and I need to serve it wit…

---

## [Strange httpc/hackeny behavior on ssl verify](https://forum.elixirforum.com/t/strange-httpc-hackeny-behavior-on-ssl-verify/22695)

<div class="topic-metadata">

**Author:** [@chulkilee](https://forum.elixirforum.com/u/chulkilee)\
**Replies:** 4\
**Last updated:** [May 27, 2019, 1:30pm UTC](https://forum.elixirforum.com/t/strange-httpc-hackeny-behavior-on-ssl-verify/22695 "2019-05-27T13:30:09Z")

</div>

I need to call HTTP API verifying SSL or not. However, I found both httpc and hackney behave strange - ssl option stay across different functions. See this code: bad\_url1 = "https://expired.badssl.com/" bad\_url2 = "htt…

---

## [Using Let's Encrypt with Distillery 2 and phoenix 1.4 without nginx](https://forum.elixirforum.com/t/using-lets-encrypt-with-distillery-2-and-phoenix-1-4-without-nginx/19805)

<div class="topic-metadata">

**Author:** [@walter](https://forum.elixirforum.com/u/walter)\
**Replies:** 5\
**Last updated:** [January 31, 2019, 11:43pm UTC](https://forum.elixirforum.com/t/using-lets-encrypt-with-distillery-2-and-phoenix-1-4-without-nginx/19805 "2019-01-31T23:43:31Z")

</div>

Howdy! I’m updating a small deployment set up for a friend and have hit a snag. I’m not sure how to integrate Let’s Encrypt via certbot with a distillery based deployment. I already have a distillery 1.5 based deployme…

---

## [Can't upstream https requests to cowboy 2.5 via nginx](https://forum.elixirforum.com/t/cant-upstream-https-requests-to-cowboy-2-5-via-nginx/17696)

<div class="topic-metadata">

**Author:** [@polypush135](https://forum.elixirforum.com/u/polypush135)\
**Replies:** 11\
**Last updated:** [November 3, 2018, 5:59pm UTC](https://forum.elixirforum.com/t/cant-upstream-https-requests-to-cowboy-2-5-via-nginx/17696 "2018-11-03T17:59:44Z")

</div>

Been having a really hard time trying to stand up a server with nginx https and cowboy 2.5. Before I get in to the errors I’m seeing heres my configs Nginx Site config. upstream polymorphic\_productions{ server 127.0.…

---

## [Phoenix channels over non-SSL](https://forum.elixirforum.com/t/phoenix-channels-over-non-ssl/17018)

<div class="topic-metadata">

**Author:** [@Qqwy](https://forum.elixirforum.com/u/Qqwy)\
**Replies:** 4\
**Last updated:** [October 3, 2018, 4:13pm UTC](https://forum.elixirforum.com/t/phoenix-channels-over-non-ssl/17018 "2018-10-03T16:13:22Z")

</div>

Hello everyone! We’re building the seamless chat service Planga. (An official release will come soon! :smiley:) Communication between the user’s browser with the other users is done through a Phoenix Channel (either us…

---

## [Pros and cons of HTTPS (split thread)](https://forum.elixirforum.com/t/pros-and-cons-of-https-split-thread/14717)

<div class="topic-metadata">

**Author:** [@Exadra37](https://forum.elixirforum.com/u/Exadra37)\
**Replies:** 19\
**Last updated:** [June 17, 2018, 2:04pm UTC](https://forum.elixirforum.com/t/pros-and-cons-of-https-split-thread/14717 "2018-06-17T14:04:13Z")

</div>

I really don’t get why nowadays with free SSL certificates developers still not use them. This is a cultural problem among Software Developers in all programming languages that are not trained with treating security as …

---

## [ssl certificate for phoenixframework.org](https://forum.elixirforum.com/t/ssl-certificate-for-phoenixframework-org/14713)

<div class="topic-metadata">

**Author:** [@palerdot](https://forum.elixirforum.com/u/palerdot)\
**Replies:** 0\
**Last updated:** [June 16, 2018, 8:23am UTC](https://forum.elixirforum.com/t/ssl-certificate-for-phoenixframework-org/14713 "2018-06-16T08:23:56Z")

</div>

Though it is a static site, it will be better to add a ssl certificate to phoenixframework.org domain. Almost all framework websites are served with https, and I thought it would be better for phoenix framework site too.…
