# +KPRIVKSTORE and +KHTTPS\_ERROR: 0, 12

**URL:** <https://forum.sierrawireless.com/t/kprivkstore-and-khttps-error-0-12/8470>\
**Category:** Legacy HL Series\
**Created:** [March 9, 2016, 1:27pm UTC](https://forum.sierrawireless.com/t/kprivkstore-and-khttps-error-0-12/8470 "2016-03-09T13:27:33Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ChandrasekarKann](https://avatars.discourse-cdn.com/v4/letter/c/ac8455/32.png) [@ChandrasekarKann](https://forum.sierrawireless.com/u/ChandrasekarKann)\
**Post date:** [March 9, 2016, 1:27pm UTC](https://forum.sierrawireless.com/t/kprivkstore-and-khttps-error-0-12/8470/1 "2016-03-09T13:27:33Z")

</div>

Can someone help me!!! 😒

I am using HL6528 to send HTTPS post to my server.  
What are the reasons that can result in this error?..  
only invalid certificate… or are there other possible causes…

What is the KPRIVKSTORE used for? And what should be given as input to KPRIVKSTORE command?

- Chandrasekar

---

<div class="post-metadata">

**Author:** ![Rex\_alex](https://avatars.discourse-cdn.com/v4/letter/r/73ab20/32.png) [@Rex\_alex](https://forum.sierrawireless.com/u/Rex_alex)\
**Post date:** [March 16, 2016, 7:06am UTC](https://forum.sierrawireless.com/t/kprivkstore-and-khttps-error-0-12/8470/2 "2016-03-16T07:06:38Z")

</div>

Hi,  
yes the error comes when the certificate used are not proper.  
+kprivkstore will store the client private key which is creating using client certificate.

-Alex

---

<div class="post-metadata">

**Author:** ![ChandrasekarKann](https://avatars.discourse-cdn.com/v4/letter/c/ac8455/32.png) [@ChandrasekarKann](https://forum.sierrawireless.com/u/ChandrasekarKann)\
**Post date:** [March 16, 2016, 8:24am UTC](https://forum.sierrawireless.com/t/kprivkstore-and-khttps-error-0-12/8470/3 "2016-03-16T08:24:54Z")

</div>

Thank you Alex

Refering to “Privkstore”, is this AT command used only in case of sec\_level 3 in KHTTPSCFG?

FYI, Reference manual says, sec\_level 3 is to handle both Server and client authentication…

I am using Sec\_level 2 in my application, where the GSM module tries to validate the server’s certificate. What is the certificate and key should I use in GSM modem to validate the server’s certificate?
