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")?; |
Trying to implement https for my own smol+hyper powered server, I turned to the
hyper-serverexample for implementation.Though, when running it, it crashes instantaneously:
Fiddling a bit with it (namely putting some
unwrap()s instead of propagating errors), the error gets triggered here:smol/examples/hyper-server.rs
Line 91 in 4af083b