From 2657364cfdee485966e0244b333a84db612ff56e Mon Sep 17 00:00:00 2001 From: 5HT Date: Mon, 28 Oct 2024 22:59:50 +0200 Subject: [PATCH] EST server /ca /cacerts /csrattrs HTTP endpointd --- lib/services/http/get.ex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/services/http/get.ex b/lib/services/http/get.ex index 4f8d41b..d4e32b5 100644 --- a/lib/services/http/get.ex +++ b/lib/services/http/get.ex @@ -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)