Skip to content

Commit

Permalink
EST server /ca /cacerts /csrattrs HTTP endpointd
Browse files Browse the repository at this point in the history
  • Loading branch information
5HT committed Oct 28, 2024
1 parent 819796c commit 2657364
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/services/http/get.ex
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ defmodule CA.EST.Get do

def get(conn, [], "Authority", [], "CA") do
body = :base64.encode(CA.CSR.read_ca_public())
conn |> put_resp_content_type("application/pkcs7-mime")
conn |> put_resp_content_type("application/pkix-cert")
|> put_resp_header("Content-Transfer-Encoding", "base64")
|> put_resp_header("Content-Length", :erlang.integer_to_binary(:erlang.size(body)))
|> resp(200, body)
Expand Down

0 comments on commit 2657364

Please sign in to comment.