generate_csr
Generate a ZATCA-compliant Certificate Signing Request (CSR) with ECDSA key pair and required subject fields for obtaining a compliance certificate.
Instructions
Generate a ZATCA-compliant Certificate Signing Request (CSR).
Creates an ECDSA key pair and CSR with ZATCA-required subject fields. The CSR is used to obtain a compliance certificate from ZATCA.
Args: common_name: Common name for the certificate (e.g., device or taxpayer name) organization: Organization name organizational_unit: Organizational unit (e.g., "Invoicing", "IT") country: Country code (default: "SA") serial_number: ZATCA device serial number invoice_type: ZATCA invoice type code (e.g., "1100") location: Business location industry: Business industry category
Returns: JSON with csr_pem, private_key_pem, and next steps
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| country | No | SA | |
| industry | No | IT | |
| location | No | Riyadh | |
| common_name | Yes | ||
| invoice_type | No | 1100 | |
| organization | Yes | ||
| serial_number | No | 1-TST|2-TST|3-ed22f1d8-e6a2-1118-9b58-d9a8195e2f28 | |
| organizational_unit | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |