From e1ee3a1c32dfcab64ffdb16a2d8167dde08f0600 Mon Sep 17 00:00:00 2001 From: jwdeitch Date: Tue, 6 Aug 2019 23:12:48 -0400 Subject: [PATCH] let's encrypt - wip --- Cargo.toml | 1 + actix-lets-encrypt/Cargo.toml | 21 ++++++++++++++++++++ actix-lets-encrypt/src/authorization.rs | 0 actix-lets-encrypt/src/certificate_signer.rs | 12 +++++++++++ actix-lets-encrypt/src/lib.rs | 2 ++ 5 files changed, 36 insertions(+) create mode 100644 actix-lets-encrypt/Cargo.toml create mode 100644 actix-lets-encrypt/src/authorization.rs create mode 100644 actix-lets-encrypt/src/certificate_signer.rs create mode 100644 actix-lets-encrypt/src/lib.rs diff --git a/Cargo.toml b/Cargo.toml index cc9e4596..55c9db81 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -17,6 +17,7 @@ edition = "2018" members = [ "actix-codec", "actix-connect", + "actix-lets-encrypt", "actix-rt", "actix-service", "actix-server", diff --git a/actix-lets-encrypt/Cargo.toml b/actix-lets-encrypt/Cargo.toml new file mode 100644 index 00000000..345ef4ad --- /dev/null +++ b/actix-lets-encrypt/Cargo.toml @@ -0,0 +1,21 @@ +[package] +name = "actix-lets-encrypt" +version = "0.1.0" +authors = ["Jordan Deitch "] +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} \ No newline at end of file diff --git a/actix-lets-encrypt/src/authorization.rs b/actix-lets-encrypt/src/authorization.rs new file mode 100644 index 00000000..e69de29b diff --git a/actix-lets-encrypt/src/certificate_signer.rs b/actix-lets-encrypt/src/certificate_signer.rs new file mode 100644 index 00000000..2fb1592d --- /dev/null +++ b/actix-lets-encrypt/src/certificate_signer.rs @@ -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 }; + } + + + +} \ No newline at end of file diff --git a/actix-lets-encrypt/src/lib.rs b/actix-lets-encrypt/src/lib.rs new file mode 100644 index 00000000..ccffe1c3 --- /dev/null +++ b/actix-lets-encrypt/src/lib.rs @@ -0,0 +1,2 @@ +mod certificate_signer; +mod authorization; \ No newline at end of file