{"id":57906,"library":"tokio-openssl","title":"Tokio OpenSSL","description":"An implementation of SSL streams for Tokio backed by OpenSSL.","status":"active","version":"0.6.5","language":"rust","source_language":null,"source_url":"https://github.com/tokio-rs/tokio-openssl","tags":["tls","ssl","openssl","tokio","async"],"install":[{"cmd":"# Cargo.toml\n[dependencies]\ntokio-openssl = \"0.6.5\"","lang":"toml","label":"Cargo.toml"},{"cmd":"cargo add tokio-openssl","lang":"bash","label":"cargo add"}],"dependencies":[],"imports":[{"symbol":"SslStream","correct":"use tokio_openssl::SslStream;"}],"quickstart":{"code":"use tokio_openssl::SslStream;\nuse openssl::ssl::{SslConnector, SslMethod};\nuse tokio::net::TcpStream;\n\n#[tokio::main]\nasync fn main() -> Result<(), Box<dyn std::error::Error>> {\n    let connector = SslConnector::builder(SslMethod::tls())?.build();\n    let stream = TcpStream::connect(\"example.com:443\").await?;\n    let mut ssl_stream = SslStream::new(connector.configure()?, stream)?;\n    ssl_stream.connect().await?;\n    Ok(())\n}","lang":"rust","description":"Create a TLS connection using OpenSSL with Tokio."},"warnings":[{"fix":"Install OpenSSL (libssl-dev on Ubuntu, openssl-devel on Fedora).","message":"Requires OpenSSL development libraries installed on the system.","severity":"gotcha","affected_versions":">=0.6.0"}],"env_vars":null,"search_vec":"'async':17 'back':10 'implement':4 'openssl':2,12,15 'ssl':6,14 'stream':7 'tls':13 'tokio':1,9,16","created_at":"2026-06-16T16:04:19.994351+00:00","updated_at":"2026-06-16T16:04:19.994351+00:00","problems":[],"ecosystem":"crates","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":null,"cli_version":null,"type":"library","homepage":"https://github.com/tokio-rs/tokio-openssl","github":"https://github.com/tokio-rs/tokio-openssl","docs":"https://docs.rs/tokio-openssl/","changelog":null,"pypi":null,"npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["networking","async"],"base_url":null,"auth_type":null,"provenance":{"verified_status":null,"verified_at":null,"last_verified":"2026-06-16","next_check":"2026-12-13","install_tag":null}}