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