# Generate Public Key

**URL:** <https://zatca1.discourse.group/t/generate-public-key/3347>\
**Category:** QR code\
**Created:** [September 30, 2024, 8:28am UTC](https://zatca1.discourse.group/t/generate-public-key/3347 "2024-09-30T08:28:23Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![moalnatour](https://avatars.discourse-cdn.com/v4/letter/m/9dc877/32.png) [@moalnatour](https://zatca1.discourse.group/u/moalnatour)\
**Post date:** [September 30, 2024, 8:28am UTC](https://zatca1.discourse.group/t/generate-public-key/3347/1 "2024-09-30T08:28:23Z")

</div>

Hello,

I am generate private key & csr by openssl without generate public key

then i use package that generate QR and signing xml invoice

and using reporting & clearance API and return success

is Public Key is required and why i need to use it ?

i am using simulation portal

---

<div class="post-metadata">

**Author:** ![saalotaibi](https://avatars.discourse-cdn.com/v4/letter/s/f9ae1b/32.png) [@saalotaibi](https://zatca1.discourse.group/u/saalotaibi)\
**Post date:** [September 30, 2024, 10:10am UTC](https://zatca1.discourse.group/t/generate-public-key/3347/2 "2024-09-30T10:10:21Z")

</div>

Dear @moalnatour

Thank you for reaching out and welcome to the community.

Yes, the public key is a critical part of the digital signature process, The private key is used to generate the signature, and the public key is used to verify that signature. without the public key verification process is incomplete.

Thank you.
