mirror of
https://github.com/fafhrd91/actix-net
synced 2024-11-27 15:42:57 +01:00
let's encrypt - wip
This commit is contained in:
parent
3821d511d0
commit
e1ee3a1c32
@ -17,6 +17,7 @@ edition = "2018"
|
|||||||
members = [
|
members = [
|
||||||
"actix-codec",
|
"actix-codec",
|
||||||
"actix-connect",
|
"actix-connect",
|
||||||
|
"actix-lets-encrypt",
|
||||||
"actix-rt",
|
"actix-rt",
|
||||||
"actix-service",
|
"actix-service",
|
||||||
"actix-server",
|
"actix-server",
|
||||||
|
21
actix-lets-encrypt/Cargo.toml
Normal file
21
actix-lets-encrypt/Cargo.toml
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
[package]
|
||||||
|
name = "actix-lets-encrypt"
|
||||||
|
version = "0.1.0"
|
||||||
|
authors = ["Jordan Deitch <jd@rsa.pub>"]
|
||||||
|
description = "Actix Let's Encrypt"
|
||||||
|
keywords = ["network", "framework", "async", "futures"]
|
||||||
|
homepage = "https://actix.rs"
|
||||||
|
repository = "https://github.com/actix/actix-net.git"
|
||||||
|
documentation = "https://docs.rs/actix-lets-encrypt/"
|
||||||
|
categories = ["network-programming", "asynchronous"]
|
||||||
|
license = "MIT/Apache-2.0"
|
||||||
|
exclude = [".gitignore", ".travis.yml", ".cargo/config", "appveyor.yml"]
|
||||||
|
edition = "2018"
|
||||||
|
workspace = ".."
|
||||||
|
|
||||||
|
[lib]
|
||||||
|
name = "actix_lets_encrypt"
|
||||||
|
path = "src/lib.rs"
|
||||||
|
|
||||||
|
[dependencies]
|
||||||
|
acme-client = {version = "0.5", default-features = false}
|
0
actix-lets-encrypt/src/authorization.rs
Normal file
0
actix-lets-encrypt/src/authorization.rs
Normal file
12
actix-lets-encrypt/src/certificate_signer.rs
Normal file
12
actix-lets-encrypt/src/certificate_signer.rs
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
struct CertificateRequest<'a> {
|
||||||
|
domains: &'a [&'a str]
|
||||||
|
}
|
||||||
|
|
||||||
|
impl<'a> CertificateRequest<'a> {
|
||||||
|
fn new(domains: &'a [&'a str]) -> Self {
|
||||||
|
return CertificateRequest { domains };
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
}
|
2
actix-lets-encrypt/src/lib.rs
Normal file
2
actix-lets-encrypt/src/lib.rs
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
mod certificate_signer;
|
||||||
|
mod authorization;
|
Loading…
Reference in New Issue
Block a user