mirror of
https://github.com/actix/actix-extras.git
synced 2025-06-25 09:59:21 +02:00
refactor server impl and add support for alpn http2 negotiation
This commit is contained in:
@ -11,4 +11,4 @@ path = "src/main.rs"
|
||||
env_logger = "0.4"
|
||||
|
||||
actix = "0.3.1"
|
||||
actix-web = { path = "../../", features=["tls"] }
|
||||
actix-web = { path = "../../", features=["alpn"] }
|
||||
|
@ -26,7 +26,7 @@ fn main() {
|
||||
let mut file = File::open("identity.pfx").unwrap();
|
||||
let mut pkcs12 = vec![];
|
||||
file.read_to_end(&mut pkcs12).unwrap();
|
||||
let pkcs12 = Pkcs12::from_der(&pkcs12, "12345").unwrap();
|
||||
let pkcs12 = Pkcs12::from_der(&pkcs12).unwrap().parse("12345").unwrap();
|
||||
|
||||
HttpServer::new(
|
||||
Application::default("/")
|
||||
|
Reference in New Issue
Block a user