# Error 1,5 while attempting an https connection with an HL7800 modem

**URL:** <https://forum.sierrawireless.com/t/error-1-5-while-attempting-an-https-connection-with-an-hl7800-modem/28980>\
**Category:** Uncategorized\
**Created:** [February 7, 2023, 1:17pm UTC](https://forum.sierrawireless.com/t/error-1-5-while-attempting-an-https-connection-with-an-hl7800-modem/28980 "2023-02-07T13:17:44Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![fabien.sanchez](https://avatars.discourse-cdn.com/v4/letter/f/e9a140/32.png) [@fabien.sanchez](https://forum.sierrawireless.com/u/fabien.sanchez)\
**Post date:** [February 7, 2023, 1:17pm UTC](https://forum.sierrawireless.com/t/error-1-5-while-attempting-an-https-connection-with-an-hl7800-modem/28980/1 "2023-02-07T13:17:44Z")

</div>

Hello everybody,

I am trying to connect with a Sierra HL7800 modem to a cloud function hosted on google firebase (in https ) in order to send a post request.  
The problem is that I can’t connect to the cloud function. I get a KHTTP 1,5 error.  
I specify that the cloudfunction works with the POSTMAN site (send a successful post request, server response).  
Does anyone have an idea?  
I’m attaching below the commands I’ve done  
Thanks in advance

Fabien

> Blockquote  
> at  
> OK  
> at&k3  
> OK  
> at+cpin?  
> +CPIN: READY

OK  
at+creg?  
+CREG: 0,5

OK  
at+cereg?  
+CEREG: 0,5

OK  
ati3  
HL7800.4.6.9.4

OK  
at+kcertstore?  
CONNECT  
root\_cert,0,1911  
-----END CERTIFICATE-----nGuV/u3gm3c6dtxQ/PeEMMA3KgqlbbC1j+Qa3bb  
root\_cert,1,0  
root\_cert,2,0  
root\_cert,3,0  
local\_cert,0,1996  
-----END CERTIFICATE-----hSFm/Y3m6xv+cXDBlHz4n/FsRC6UfTdZTqPwJNl  
local\_cert,1,0  
local\_cert,2,0

OK  
at+kprivkstore?  
CONNECT  
private\_key,0,1704  
-----END PRIVATE KEY-----yt0snLO2fv868VdUSP+fJfj9FwbI10LKcRPqa+W  
private\_key,1,0  
private\_key,2,0

OK  
at+ksslcfg?  
+KSSLCFG: 0,3  
+KSSLCFG: 2,0

OK  
at+cclk?  
+CCLK: “23/02/07,11:43:36+04”

OK  
at+cgdcont=1,“ipv4v6”,“[iot.1nce.net](http://iot.1nce.net)”  
OK  
at+kcnxcfg=1,“gprs”,“[iot.1nce.net](http://iot.1nce.net)”  
OK  
at+kcnxprofile=1  
OK  
at+ksslcrypto=0,8,3,25392,12,4,1,0  
OK  
at+kcnxup=1  
OK

+KCNX\_IND: 1,1,0  
AT+KHTTPCFG=1,“[us-central1-kiomda-preprod.cloudfunctions.net](http://us-central1-kiomda-preprod.cloudfunctions.net)”,443,2,0  
+KHTTPCFG: 1

OK

+KHTTP\_ERROR: 1,5

> Blockquote

---

<div class="post-metadata">

**Author:** ![jerdung](https://avatars.discourse-cdn.com/v4/letter/j/82dd89/32.png) [@jerdung](https://forum.sierrawireless.com/u/jerdung)\
**Post date:** [February 13, 2023, 7:44am UTC](https://forum.sierrawireless.com/t/error-1-5-while-attempting-an-https-connection-with-an-hl7800-modem/28980/2 "2023-02-13T07:44:47Z")

</div>

Hi @fabien.sanchez ,  
Could you please share with me some information as below:

1. Has this issue happened before? Or is this the first time?
2. How many HL7800 devices did you observe this issue? If It’s just only one, could you please retry on another HL7800 device?
3. Please make sure your network is stable during HTTP implementation
4. Please share with me the Wireshark log on the Server side

Thanks,

---

<div class="post-metadata">

**Author:** ![fabien.sanchez](https://avatars.discourse-cdn.com/v4/letter/f/e9a140/32.png) [@fabien.sanchez](https://forum.sierrawireless.com/u/fabien.sanchez)\
**Post date:** [February 15, 2023, 8:06am UTC](https://forum.sierrawireless.com/t/error-1-5-while-attempting-an-https-connection-with-an-hl7800-modem/28980/3 "2023-02-15T08:06:05Z")

</div>

Hi Jerdung,  
This is the first time I try to connect to my cloud function. I have only one HL7800 for the moment but an order for several modems is in progress.  
I think I found the error. I use Putty to send AT commands and some caracters in the .crt certificates are removed by the terminal.  
Which terminal do you use to send AT commands ? Do you use .crt files to send certficiates files ?

Fabien

---

<div class="post-metadata">

**Author:** ![fabien.sanchez](https://avatars.discourse-cdn.com/v4/letter/f/e9a140/32.png) [@fabien.sanchez](https://forum.sierrawireless.com/u/fabien.sanchez)\
**Post date:** [February 15, 2023, 8:35am UTC](https://forum.sierrawireless.com/t/error-1-5-while-attempting-an-https-connection-with-an-hl7800-modem/28980/4 "2023-02-15T08:35:54Z")

</div>

I try to download a certificate in .crt format (CA certificate from the website [www.howsmyssl.com](http://www.howsmyssl.com) for example) with Clearterminal, I get an 930 error code.

 ![image](https://us1.discourse-cdn.com/flex025/uploads/sierrawireless/original/2X/4/40553d53bc09993f7cf31e13c065f08ae102134e.png)

 ![image](https://us1.discourse-cdn.com/flex025/uploads/sierrawireless/original/2X/4/40553d53bc09993f7cf31e13c065f08ae102134e.png)

I think I need some help here

---

<div class="post-metadata">

**Author:** ![fabien.sanchez](https://avatars.discourse-cdn.com/v4/letter/f/e9a140/32.png) [@fabien.sanchez](https://forum.sierrawireless.com/u/fabien.sanchez)\
**Post date:** [February 15, 2023, 9:12am UTC](https://forum.sierrawireless.com/t/error-1-5-while-attempting-an-https-connection-with-an-hl7800-modem/28980/5 "2023-02-15T09:12:56Z")

</div>

It seems that 0x0D caracters are removed from each line from the original .crt file and I don’t know why :

 ![image](https://us1.discourse-cdn.com/flex025/uploads/sierrawireless/original/2X/9/99d37f7ce2246b3011fda527b433c18af802aaf3.png)

---

<div class="post-metadata">

**Author:** ![jerdung](https://avatars.discourse-cdn.com/v4/letter/j/82dd89/32.png) [@jerdung](https://forum.sierrawireless.com/u/jerdung)\
**Post date:** [February 16, 2023, 10:30am UTC](https://forum.sierrawireless.com/t/error-1-5-while-attempting-an-https-connection-with-an-hl7800-modem/28980/6 "2023-02-16T10:30:45Z")

</div>

Hi @fabien.sanchez  
You can refer to how to upload the certificate as follows:

1. Set custom end of data pattern

> `AT+KPATTERN="--EOF--Pattern--"`

1. Upload your certificate to internal storage  
Example with Root certificate:

> ```
> AT+KCERTSTORE=0
> CONNECT
> <Copy and paste your CA cert here. Then end the certificate with "--EOF--Pattern--">
> OK
> 
> ```

1. Query your certificate

> AT+KCERTSTORE?

Thanks,

---

<div class="post-metadata">

**Author:** ![fabien.sanchez](https://avatars.discourse-cdn.com/v4/letter/f/e9a140/32.png) [@fabien.sanchez](https://forum.sierrawireless.com/u/fabien.sanchez)\
**Post date:** [February 16, 2023, 10:57am UTC](https://forum.sierrawireless.com/t/error-1-5-while-attempting-an-https-connection-with-an-hl7800-modem/28980/7 "2023-02-16T10:57:54Z")

</div>

Hi Jerdung

Thanks for the reply, the problem was related to the terminal software I was using
