Skip to main content

Upload digital certificate

POST 

/v1/certificates

Uploads an A1 digital certificate via multipart/form-data. The private key and password are encrypted at rest and are never returned by the API. The endpoint detects duplicates by thumbprint and automatically associates the certificate with a person based on the extracted CNPJ/CPF.

Accepted type values:

  • pfx — send file (binary PFX/P12) and password.
  • cert_key — send cert_file (certificate PEM) and key_file (key PEM).
  • combined_pem — send file (PEM containing certificate + key).
  • cert_key_password — send cert_file, key_file and password (password-protected key).

Request

Responses

Certificate uploaded and stored successfully.