# ECDSA Public Key Mismatch Despite Using Correct Private Key and Certificate

**URL:** <https://zatca1.discourse.group/t/ecdsa-public-key-mismatch-despite-using-correct-private-key-and-certificate/2359>\
**Category:** QR code\
**Created:** [August 11, 2024, 8:08am UTC](https://zatca1.discourse.group/t/ecdsa-public-key-mismatch-despite-using-correct-private-key-and-certificate/2359 "2024-08-11T08:08:29Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![Malik](https://dub1.discourse-cdn.com/flex013/user_avatar/zatca1.discourse.group/malik/32/708_2.png) [@Malik](https://zatca1.discourse.group/u/Malik)\
**Post date:** [August 12, 2024, 12:48pm UTC](https://zatca1.discourse.group/t/ecdsa-public-key-mismatch-despite-using-correct-private-key-and-certificate/2359/6 "2024-08-12T12:48:46Z")

</div>

You can use SDK or Openssl but seems you are trying to use both which is confusing for me atleast. Now there is a difference when you create CSR for simulation and also in Openssl. Have a look at the following topic,

> [@Issue in create pcsid in simulation](https://zatca1.discourse.group/t/issue-in-create-pcsid-in-simulation/565/7):
>
> we have added “certificateTemplateName = ASN1:PRINTABLESTRING:PREZATCA-Code-Signing” in csr property file but still same error. Can you please share the sample csr file with us. Note : We are using below command to generate the CSR fatoora -sim -csr -csrConfig csr-config-saco.properties

---

_[View the full topic](https://zatca1.discourse.group/t/ecdsa-public-key-mismatch-despite-using-correct-private-key-and-certificate/2359)._
