Skip to content

async_native_tls / native_tls error when running hyper-server example #375

Description

@Myriade-Medieval

Trying to implement https for my own smol+hyper powered server, I turned to the hyper-server example for implementation.

Though, when running it, it crashes instantaneously:

$ cargo run --example hyper-server
    Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.40s
     Running `target/debug/examples/hyper-server`
Error: error:0308010C:digital envelope routines:inner_evp_generic_fetch:unsupported:crypto/evp/evp_fetch.c:375:Global default library context, Algorithm (RC2-40-CBC : 0), Properties ()

Fiddling a bit with it (namely putting some unwrap()s instead of propagating errors), the error gets triggered here:

let identity = Identity::from_pkcs12(include_bytes!("identity.pfx"), "password")?;

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions