Skip to main content

post_simpleenroll

Function post_simpleenroll 

Source
pub async fn post_simpleenroll(
    auth: EstAuth,
    label: LabelExtractor,
    __arg2: State<Arc<AppState>>,
    body: Bytes,
) -> Result<Response, KipukaError>
Expand description

POST /.well-known/est/simpleenroll

Accepts a PKCS#10 CSR (base64-encoded) and returns a PKCS#7 certs-only response containing the issued certificate.

§Authentication

Requires one of:

  • mTLS client certificate (validated against EST truststore)
  • HTTP Basic with OTP (entity-id as username, OTP as password)

§Request

HeaderValue
Content-Typeapplication/pkcs10
BodyBase64-encoded DER PKCS#10 CSR

§Response

HeaderValue
Status200 OK or 202 Accepted
Content-Typeapplication/pkcs7-mime; smime-type=certs-only
Retry-After(present only with 202)

§Errors

  • 400 Bad Request — malformed CSR, invalid base64, self-signature failure
  • 401 Unauthorized — authentication failed
  • 415 Unsupported Media Type — wrong Content-Type
  • 500 Internal Server Error — CA signing failure
  • 503 Service Unavailable — CA backend unavailable (with Retry-After)