# HL7812 DTLS and config

**URL:** <https://forum.sierrawireless.com/t/hl7812-dtls-and-config/35689>\
**Category:** HL78\
**Created:** [December 28, 2025, 11:48am UTC](https://forum.sierrawireless.com/t/hl7812-dtls-and-config/35689 "2025-12-28T11:48:50Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![hkiol](https://sea1.discourse-cdn.com/flex025/user_avatar/forum.sierrawireless.com/hkiol/32/5998_2.png) [@hkiol](https://forum.sierrawireless.com/u/hkiol)\
**Post date:** [December 28, 2025, 11:48am UTC](https://forum.sierrawireless.com/t/hl7812-dtls-and-config/35689/1 "2025-12-28T11:48:50Z")

</div>

I am trying to connect to the Cumulocity LWM2M server via these commands and the HL7812:

AT+KSSLCRYPTO=0,8,3,25392,12,4,3,0  
OK

AT+KUDPCFG=1,3,0,0,“[lwm2m.eu-latest.cumulocity.com](http://lwm2m.eu-latest.cumulocity.com)”,5784  
+KUDPCFG: 1  
OK  
+KCNX\_IND: 1,1,0

I am not getting the KUDP\_IND response like I always do with the non secure alternative.

Any suggestions?

thanks

---

<div class="post-metadata">

**Author:** ![jyijyi](https://sea1.discourse-cdn.com/flex025/user_avatar/forum.sierrawireless.com/jyijyi/32/4766_2.png) [@jyijyi](https://forum.sierrawireless.com/u/jyijyi)\
**Post date:** [December 28, 2025, 12:12pm UTC](https://forum.sierrawireless.com/t/hl7812-dtls-and-config/35689/2 "2025-12-28T12:12:49Z")

</div>

Didn’t it show connected for “+KCNX\_IND: 1,1,0”?

How about setting auth to be zero in +sslcrypto?

How about testing with HTTPS protocol?

---

<div class="post-metadata">

**Author:** ![hkiol](https://sea1.discourse-cdn.com/flex025/user_avatar/forum.sierrawireless.com/hkiol/32/5998_2.png) [@hkiol](https://forum.sierrawireless.com/u/hkiol)\
**Post date:** [December 30, 2025, 8:08am UTC](https://forum.sierrawireless.com/t/hl7812-dtls-and-config/35689/3 "2025-12-30T08:08:13Z")

</div>

Don’t we need the KUDP\_IND response to send data? When I send data without it I get:

Error due to invalid state of terminate port data mode

I am using the latest firmware downloaded via AirVantage.

When I choose auth = 0 I get Bad session ID

I am not planning on using the HTTPS protocol so I’d prefer to not touch it at the moment.

---

<div class="post-metadata">

**Author:** ![jyijyi](https://sea1.discourse-cdn.com/flex025/user_avatar/forum.sierrawireless.com/jyijyi/32/4766_2.png) [@jyijyi](https://forum.sierrawireless.com/u/jyijyi)\
**Post date:** [December 30, 2025, 8:38am UTC](https://forum.sierrawireless.com/t/hl7812-dtls-and-config/35689/4 "2025-12-30T08:38:10Z")

</div>

Testing with https can at least let you know if the certificate is ok  
You can see here:

> [@Hl7800 khttp\_error: 1,5](https://forum.sierrawireless.com/t/hl7800-khttp-error-1-5/32308/23):
>
> I think I am making progress but still not there yet. I have successfully loaded the certificate as per your instructions and the behaviour is different as follows:- AT+KHTTPCFG=1,“myurl”,443,2,0 +KHTTPCFG: 1 OK +KCNX\_IND: 1,1,0 +KHTTP\_ERROR: 1,5 I also keep getting CME ERROR:92 Error due to invalid state of session - what dies this mean and how can it be addressed.

Btw, are you using the latest firmware?

[https://source.sierrawireless.com/resources/airprime/software/hl781x-and-hl7845-firmware/hl781x-release-6,-d-,2/](https://source.sierrawireless.com/resources/airprime/software/hl781x-and-hl7845-firmware/hl781x-release-6,-d-,2/)

---

<div class="post-metadata">

**Author:** ![jyijyi](https://sea1.discourse-cdn.com/flex025/user_avatar/forum.sierrawireless.com/jyijyi/32/4766_2.png) [@jyijyi](https://forum.sierrawireless.com/u/jyijyi)\
**Post date:** [December 31, 2025, 8:57am UTC](https://forum.sierrawireless.com/t/hl7812-dtls-and-config/35689/5 "2025-12-31T08:57:59Z")

</div>

you can also test secure TCP socket, I saw other user can make it work to receive data from server, so that means the certificate is OK:

> [@Data stuck in modem until remote closes connection](https://forum.sierrawireless.com/t/data-stuck-in-modem-until-remote-closes-connection/35032/10):
>
> I managed to reproduce the issue with a TLS connection to a local TCP server. I generate a self-signed certificate with this command: openssl req -x509 -newkey rsa:2048 -keyout server.key -out server.crt -days 365 -nodes I run the TLS server with this python script: import socket import ssl import time import os # Server configuration HOST = '0.0.0.0' PORT = 443 # Port to listen on CERT\_FILE = 'server.crt' # Path to the server's certificate file KEY\_FILE = 'server.key' # Path to …

---

<div class="post-metadata">

**Author:** ![hkiol](https://sea1.discourse-cdn.com/flex025/user_avatar/forum.sierrawireless.com/hkiol/32/5998_2.png) [@hkiol](https://forum.sierrawireless.com/u/hkiol)\
**Post date:** [February 4, 2026, 8:10am UTC](https://forum.sierrawireless.com/t/hl7812-dtls-and-config/35689/6 "2026-02-04T08:10:46Z")

</div>

Hi again,

I have been informed that the LWM2M server uses and sends as the ServerHello a self-signed certificate which doesn’t have a CA.

My device then sends Fatal Alert Unknown CA message.

Is this info helpful for you to pinpoint what the issue is?

I have successfully created the root CA and the device cert and key and loaded all of them onto the HL modem.

thanks

---

<div class="post-metadata">

**Author:** ![jyijyi](https://sea1.discourse-cdn.com/flex025/user_avatar/forum.sierrawireless.com/jyijyi/32/4766_2.png) [@jyijyi](https://forum.sierrawireless.com/u/jyijyi)\
**Post date:** [February 4, 2026, 8:42am UTC](https://forum.sierrawireless.com/t/hl7812-dtls-and-config/35689/7 "2026-02-04T08:42:22Z")

</div>

as mentioned before, have you tested with HTTPS server or secure TCP socket?

---

<div class="post-metadata">

**Author:** ![hkiol](https://sea1.discourse-cdn.com/flex025/user_avatar/forum.sierrawireless.com/hkiol/32/5998_2.png) [@hkiol](https://forum.sierrawireless.com/u/hkiol)\
**Post date:** [February 4, 2026, 8:53am UTC](https://forum.sierrawireless.com/t/hl7812-dtls-and-config/35689/8 "2026-02-04T08:53:42Z")

</div>

The connection is being denied during the TLS handshake, before any HTTPS or secure TCP protocol layer is reached.

That’s why I shared the new information about the server presenting a self-signed certificate with no CA. The modem is rejecting it with _Fatal Alert: Unknown CA_, so the session is terminated before HTTPS or DTLS can come into play.

I was hoping this detail would help narrow the issue down to certificate trust rather than the higher-level protocol.

TCP approach:

```auto
AT+KCNXCFG=1,"GPRS","iot.1nce.net"

OK
AT+KSSLCRYPTO=0,8,3,25392,12,4,3,0

OK
AT+KTCPCFG=1,3,"lwm2m.eu-latest.cumulocity.com",5784

+KTCPCFG: 1

OK
AT+KTCPCNX=1

OK

+KCNX_IND: 1,1,0

+KTCP_NOTIF: 1,13

```

thanks

---

<div class="post-metadata">

**Author:** ![jyijyi](https://sea1.discourse-cdn.com/flex025/user_avatar/forum.sierrawireless.com/jyijyi/32/4766_2.png) [@jyijyi](https://forum.sierrawireless.com/u/jyijyi)\
**Post date:** [February 4, 2026, 9:06am UTC](https://forum.sierrawireless.com/t/hl7812-dtls-and-config/35689/9 "2026-02-04T09:06:40Z")

</div>

i remember for one-way authentication, a server must have CA certificate + server certificate and client needs to have the CA certificate  
for mutual authentication, the server must have CA certificate + server certificate and client needs to have the CA certificate + client certificate.

So I would suggest you to set up your own HTTPS and secure TCP server to verify

Btw, have you tried to set +ksslcryto to use server authentication instead of mutual authentication?

Furthermore, i saw your +ktcpcfg is not specifying the profile for ssl…
