---
title: "Discussion on \"Production Pitfall: Two CryptoProviders in rustls and a Runtime Panic\" | Hashnode"
description: "Discussion on \"Production Pitfall: Two CryptoProviders in rustls and a Runtime Panic\". Why a Rust server can start up fine and then crash on its very first TLS connection, and how one line in main() picks the crypto backend for rustls."
url: "https://hashnode.com/posts/rustls-crypto-provider-conflict/6b148f9aa26c1775986d524b"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Production Pitfall: Two CryptoProviders in rustls and a Runtime Panic](https://eagleblog.hashnode.dev/rustls-crypto-provider-conflict?utm_source=hashnode&utm_medium=feed)

Why a Rust server can start up fine and then crash on its very first TLS connection, and how one line in main() picks the crypto backend for rustls.

11h ago · 6 min read · eagleblog.hashnode.dev  
Read the article

-   [#rust](https://hashnode.com/tag/rust)
-   [#tls](https://hashnode.com/tag/tls)
-   [#cargo](https://hashnode.com/tag/cargo)
-   [#debugging](https://hashnode.com/tag/debugging)
-   [#backend](https://hashnode.com/tag/backend)

## Written by

[Eagle](https://hashnode.com/@eagle2000)

@eagle2000

  
[View profile](https://hashnode.com/@eagle2000)

Software Engineer writing about Rust, Flutter/Dart, ESP32 & performance

Cheerful Software Engineer writing about Rust, Flutter/Dart, ESP32, and photography. Author of EagleBlog (eagle2000.space) and the "Programmer's Lighthouse" channel.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
