# system.net.httpPost() getting the error IOError: Received fatal alert: handshake\_failure

**URL:** <https://forum.inductiveautomation.com/t/system-net-httppost-getting-the-error-ioerror-received-fatal-alert-handshake-failure/57594>\
**Category:** Ignition\
**Tags:** ignition79\
**Created:** [March 24, 2022, 3:20pm UTC](https://forum.inductiveautomation.com/t/system-net-httppost-getting-the-error-ioerror-received-fatal-alert-handshake-failure/57594 "2022-03-24T15:20:40Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![rodney.oliveira](https://avatars.discourse-cdn.com/v4/letter/r/f05b48/32.png) [@rodney.oliveira](https://forum.inductiveautomation.com/u/rodney.oliveira)\
**Post date:** [March 24, 2022, 3:20pm UTC](https://forum.inductiveautomation.com/t/system-net-httppost-getting-the-error-ioerror-received-fatal-alert-handshake-failure/57594/1 "2022-03-24T15:20:40Z")

</div>

Hello,

I’m trying to send a json data to an API with httpPost but i’m getting this error and didn’t found nothing that could help me:

```auto
Traceback (most recent call last):
  File "<event:actionPerformed>", line 7, in <module>
IOError: Received fatal alert: handshake_failure

Ignition v7.9.16 (b2020090709)
Java: Oracle Corporation 1.8.0_92

```

Here is my code:

```auto
opPythonDict = {"opNum":123, "product":"teste"}

opstring = system.util.jsonEncode(opPythonDict)

apiKey = "1a2b3c123abc4"

system.net.httpPost(url="https://sgrefratarios.indwise.com/api/integration/op?apiKey="+apiKey, contentType="application/json", postData=opstring)

```

What am I doing wrong?

---

<div class="post-metadata">

**Author:** ![Kevin.Herron](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kevin.herron/32/7259_2.png) [@Kevin.Herron](https://forum.inductiveautomation.com/u/Kevin.Herron)\
**Post date:** [March 24, 2022, 3:29pm UTC](https://forum.inductiveautomation.com/t/system-net-httppost-getting-the-error-ioerror-received-fatal-alert-handshake-failure/57594/2 "2022-03-24T15:29:02Z")

</div>

So, you left your URL unscrubbed, and I was able to look and see that the certificate that server is using is signed by Let’s Encrypt.

I think that you may be on a version of Java 8 that is too old to contain the Let’s Encrypt root in its trust store. I’m not sure what context you’re executing this script from, but you may need to update to the latest Java 8 release.
