Problem when i try to go to production

Hi
i have problem when i try to go to production
i face that error
The remote server returned an error: (401) Unauthorized.

In simulation everything is ok and i can see MY server information in List page in Zatca

after that i start do same steps in production (starting with Prepare you Config file then Create your Keys (Private key, Public Key) …
but when i try send first invoice (from 6) i get that error
The remote server returned an error: (401) Unauthorized

i try also change in Config file
in (certificateTemplateName = ASN1:PRINTABLESTRING:ZATCA-Code-Signing)
but still i have same error

hi… @hsynt

Make sure there are no missing steps.

  1. Create CSR and Private Key
  2. Send CSR to get Compliance CSID
  3. Signing Document with X509Certificate from Compliance CSID result
  4. Send Signed Document to Compliance Check API. Make sure use BinarySecurityToken and Secret from Compliance CSID result as Basic Authorization.

and yes, you should use ZATCA-Code-Signing Template for production

[req_ext]
certificateTemplateName = ASN1:PRINTABLESTRING:ZATCA-Code-Signing
subjectAltName = dirName:alt_names

Morning @hsynt

Thanks for reaching out, Welcome to our community.

Can I kindly ask you what is the API that you use to send the (6 invoices)? and what are the exact data you send in (Body, Headers, and Authorization)?

Thanks,
Ibrahem Daoud.