# Zymkey 4 not working on CURL

**URL:** <https://community.zymbit.com/t/zymkey-4-not-working-on-curl/1476>\
**Category:** ZYMKEY4\
**Created:** [November 24, 2022, 4:11am UTC](https://community.zymbit.com/t/zymkey-4-not-working-on-curl/1476 "2022-11-24T04:11:56Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![nav1337](https://avatars.discourse-cdn.com/v4/letter/n/839c29/32.png) [@nav1337](https://community.zymbit.com/u/nav1337)\
**Post date:** [November 24, 2022, 4:11am UTC](https://community.zymbit.com/t/zymkey-4-not-working-on-curl/1476/1 "2022-11-24T04:11:56Z")

</div>

Hi,  
I have recently bought the zymkey 4 and installed in on my raspberry Pi. I have successfully created the CSR using openSSL command and created a device certificate in AWS. When I am trying to use CURL to send data using MQTT its giving an error Private key not found. It seems like Curl is unable to access the nonzymkey.key file.

This is the command I am trying:-

curl --tlsv1.2 --cacert AWS\_CA.pem --cert zymkey.crt --key nonzymkey.key --engine zymkey\_ssl --key-type ENG -v -X POST -d “{ "hello": "world"}” “[https://example1.iot.us-east-1.amazonaws.com:8443/topics/hello/world](https://example1.iot.us-east-1.amazonaws.com:8443/topics/hello/world)”

the output I am getting:-

$ curl --tlsv1.2 --cacert AWS\_CA.pem --cert zymkey.crt --key nonzymkey.key --engine zymkey\_ssl --key-type ENG -v -X POST -d “{ "hello": "world"}” “httpx://ddddddd.iot.us-east-1.amazonaws\>com:8443/topics/hello/world”  
Note: Unnecessary use of -X or --request, POST is already inferred.

- Trying xx.xx.146.237:8443…
- Trying ::3656:df64:8443…
- Immediate connect fail for:3656:df64: Network is unreachable
- Trying::3456:b692:8443…
- Immediate connect fail for ::3456:b692: Network is unreachable
- Trying ::3654:2721:8443…  
\*\* Connected to test.iot.us-east-1.amazonaws\>com (xx.xx.146.237) port 8443 (#0)
- ALPN, offering h2
- ALPN, offering http/1.1
- successfully set certificate verify locations:
- CAfile: AWS\_CA.pem
- CApath: /etc/ssl/certs
- TLSv1.3 (OUT), TLS handshake, Client hello (1):
- TLSv1.3 (IN), TLS handshake, Server hello (2):
- TLSv1.2 (IN), TLS handshake, Certificate (11):
- TLSv1.2 (IN), TLS handshake, Server key exchange (12):
- TLSv1.2 (IN), TLS handshake, Request CERT (13):
- TLSv1.2 (IN), TLS handshake, Server finished (14):
- TLSv1.2 (OUT), TLS handshake, Certificate (11):
- TLSv1.2 (OUT), TLS handshake, Client key exchange (16):
- TLSv1.2 (OUT), TLS alert, internal error (592):
- error:100F907D:elliptic curve routines:ossl\_ecdsa\_sign\_sig:missing private key
- Closing connection 0  
curl: (35) error:100F907D:elliptic curve routines:ossl\_ecdsa\_sign\_sig:missing private key

Security Module for Raspberry Pi

---

<div class="post-metadata">

**Author:** ![pappz2323](https://avatars.discourse-cdn.com/v4/letter/p/53a042/32.png) [@pappz2323](https://community.zymbit.com/u/pappz2323)\
**Post date:** [September 9, 2023, 8:10am UTC](https://community.zymbit.com/t/zymkey-4-not-working-on-curl/1476/2 "2023-09-09T08:10:06Z")

</div>

Any update on this?  
I am facing the same issue.

---

<div class="post-metadata">

**Author:** ![chill](https://avatars.discourse-cdn.com/v4/letter/c/e95f7d/32.png) [@chill](https://community.zymbit.com/u/chill)\
**Post date:** [March 6, 2024, 7:15am UTC](https://community.zymbit.com/t/zymkey-4-not-working-on-curl/1476/3 "2024-03-06T07:15:24Z")

</div>

I’m facing the same issue with SEN Secure Edge Node:  
curl 7.74.0 (aarch64-unknown-linux-gnu) libcurl/7.74.0 OpenSSL/1.1.1n zlib/1.2.11 brotli/1.0.9 libidn2/2.3.0 libpsl/0.21.0 (+libidn2/2.3.0) libssh2/1.9.0 nghttp2/1.43.0 librtmp/2.3  
Release-Date: 2020-12-09, security patched: 7.74.0-1.3+deb11u11  
Protocols: dict file ftp ftps gopher http https imap imaps ldap ldaps mqtt pop3 pop3s rtmp rtsp scp sftp smb smbs smtp smtps telnet tftp  
Features: alt-svc AsynchDNS brotli GSS-API HTTP2 HTTPS-proxy IDN IPv6 Kerberos Largefile libz NTLM NTLM\_WB PSL SPNEGO SSL TLS-SRP UnixSockets

Error got

- ALPN, offering h2
- ALPN, offering http/1.1
- successfully set certificate verify locations:
- CAfile: AWS\_CA.pem
- CApath: /etc/ssl/certs
- TLSv1.3 (OUT), TLS handshake, Client hello (1):
- TLSv1.3 (IN), TLS handshake, Server hello (2):
- TLSv1.2 (IN), TLS handshake, Certificate (11):
- TLSv1.2 (IN), TLS handshake, Server key exchange (12):
- TLSv1.2 (IN), TLS handshake, Request CERT (13):
- TLSv1.2 (IN), TLS handshake, Server finished (14):
- TLSv1.2 (OUT), TLS handshake, Certificate (11):
- TLSv1.2 (OUT), TLS handshake, Client key exchange (16):
- TLSv1.2 (OUT), TLS alert, internal error (592):
- error:100F907D:elliptic curve routines:ossl\_ecdsa\_sign\_sig:missing private key
- Closing connection 0  
curl: (35) error:100F907D:elliptic curve routines:ossl\_ecdsa\_sign\_sig:missing private key

Any update?

---

<div class="post-metadata">

**Author:** ![Bob\_of\_Zymbit](https://avatars.discourse-cdn.com/v4/letter/b/82dd89/32.png) [@Bob\_of\_Zymbit](https://community.zymbit.com/u/Bob_of_Zymbit)\
**Post date:** [March 6, 2024, 3:28pm UTC](https://community.zymbit.com/t/zymkey-4-not-working-on-curl/1476/4 "2024-03-06T15:28:12Z")

</div>

This worked with 7.74.0 in the past. Are you using the same command as the previous post? Can you post the command you’re using? We’ll take a look.

---

<div class="post-metadata">

**Author:** ![chill](https://avatars.discourse-cdn.com/v4/letter/c/e95f7d/32.png) [@chill](https://community.zymbit.com/u/chill)\
**Post date:** [March 7, 2024, 2:41am UTC](https://community.zymbit.com/t/zymkey-4-not-working-on-curl/1476/5 "2024-03-07T02:41:33Z")

</div>

Remove curl version 7.74.0 and install 7.73.0 fix this issue.
