From 2e6f2939100854d2d3df6cd2e70c423bb96321b5 Mon Sep 17 00:00:00 2001 From: 5HT Date: Mon, 28 Oct 2024 11:44:37 +0200 Subject: [PATCH] CA.NIS --- lib/oid/nis.ex | 4 ++++ lib/services/est.ex | 6 +++--- 2 files changed, 7 insertions(+), 3 deletions(-) create mode 100644 lib/oid/nis.ex diff --git a/lib/oid/nis.ex b/lib/oid/nis.ex new file mode 100644 index 0000000..8dfb954 --- /dev/null +++ b/lib/oid/nis.ex @@ -0,0 +1,4 @@ +defmodule CA.NIS do + @moduledoc "CA NIS OIDs." + def oid(:"id-nis-macAddress"), do: {1, 3, 6, 1, 1, 1, 1, 22} +end diff --git a/lib/services/est.ex b/lib/services/est.ex index 1d133bf..7486af5 100644 --- a/lib/services/est.ex +++ b/lib/services/est.ex @@ -21,11 +21,11 @@ defmodule CA.EST do # Authority PKI X.509 EST RFC 7030 3.2.2 post "/.well-known/est/simpleenroll" do CA.EST.Post.post(conn, [], "Authority", [], "ENROLL") end - put "/.well-known/est/simplereenroll" do CA.EST.Put.put(conn, [], "Authority", [], "RE-ENROLL") end + post "/.well-known/est/simplereenroll" do CA.EST.Post.post(conn, [], "Authority", [], "RE-ENROLL") end get "/.well-known/est/cacerts" do CA.EST.Get.get(conn, [], "Authority", [], "ROOT") end get "/.well-known/est/csrattrs" do CA.EST.Get.get(conn, [], "Authority", [], "ABAC") end - put "/.well-known/est/fullcmc" do CA.EST.Put.put(conn, [], "Authority", [], "CMC") end - post "/.well-known/est/serverkeygen" do CA.EST.Post.put(conn, [], "Authority", [], "KEYGEN") end + post "/.well-known/est/fullcmc" do CA.EST.Post.post(conn, [], "Authority", [], "CMC") end + post "/.well-known/est/serverkeygen" do CA.EST.Post.post(conn, [], "Authority", [], "KEYGEN") end # See Page 36 of RFC 7030