Skip to content

Commit

Permalink
CA.NIS
Browse files Browse the repository at this point in the history
  • Loading branch information
5HT committed Oct 28, 2024
1 parent 2e6f293 commit 285731b
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions lib/services/est.ex
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,16 @@ 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
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
post "/.well-known/est/fullcmc" do CA.EST.Post.post(conn, [], "Authority", [], "CMC") end
post "/.well-known/est/simpleenroll" do CA.EST.Post.post(conn, [], "Authority", [], "ENROLL") end
post "/.well-known/est/simplereenroll" do CA.EST.Post.post(conn, [], "Authority", [], "RE-ENROLL") end
post "/.well-known/est/serverkeygen" do CA.EST.Post.post(conn, [], "Authority", [], "KEYGEN") end
post "/.well-known/est/fullcmc" do CA.EST.Post.post(conn, [], "Authority", [], "CMC") end

# See Page 36 of RFC 7030
# [1] https://www.rfc-editor.org/rfc/rfc7030
# [2] https://www.ietf.org/archive/id/draft-ietf-lamps-rfc7030-csrattrs-07.html

def csrattributes() do
{:ok, bin} = :"EST".encode(:CsrAttrs, [
Expand Down

0 comments on commit 285731b

Please sign in to comment.