Performing a Compliance Check

After obtaining a Compliance Binary Security Token, ZATCA requires that you complete a compliance check by submitting sample invoices. This step is a prerequisite to requesting production credentials.

To perform a compliance check:

  1. Open the Saudi Arabia E-Invoicing Configuration record.

  2. Create a text file named digCert.txt in the same directory as the configuration txt file.

  3. Copy the Compliance Binary Security Token and paste it into the file digCert.txt file.

  4. Run the following command to extract a Certificate Issuer Name.

                    openssl x509 -in digCert.txt -noout -issuer 
    
                  
  5. Copy the output following "issuer=" into the Compliance Issuer Name field in the Saudi Arabia E-Invoicing Configuration record.

  6. Run the following command to extract a Certificate Serial Number.

                    openssl x509 -in digCert.txt -noout -serial 
    
                  
  7. Copy the serial number following "serial=" into the Compliance Serial Number field in the Saudi Arabia E-Invoicing Configuration record.

  8. Run the following command to extract the Certificate Public Key.

                    openssl x509 -in digCert.txt -noout -pubkey 
    
                  

    Example output:

    -----BEGIN PUBLIC KEY-----

    Alphanumeric characters

    -----END PUBLIC KEY-----

  9. Copy the entire output into the Compliance Public Key field, including the blank lines at the end, in the Saudi Arabia E-Invoicing Configuration record.

  10. Run the following command to extract the ECDSA signature of the Compliance Binary Security Token.

                    openssl x509 -text -in digCert.txt -noout 
    
                  
  11. Copy the ECDSA signature, which includes the alphanumeric characters following "Signature Algorithm: ecdsa-with-SHA256," into the Compliance Binary Security Token field.

  12. Click Save.

  13. Click Next.

Continue the setup by obtaining production credentials.

Related Topics

General Notices