# HTTPS certificate error

**URL:** https://forum.sierrawireless.com/t/https-certificate-error/7239
**Category:** Legacy HL Series
**Created:** [June 4, 2014, 9:14am UTC](https://forum.sierrawireless.com/t/https-certificate-error/7239 "2014-06-04T09:14:04Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![vinu1209](https://avatars.discourse-cdn.com/v4/letter/v/7ba0ec/32.png) [@vinu1209](https://forum.sierrawireless.com/u/vinu1209)
#### Post date: [June 4, 2014, 9:14am UTC](https://forum.sierrawireless.com/t/https-certificate-error/7239/1 "2014-06-04T09:14:04Z")

</div>

Hi,  
I am using HILONC v2 modem.  
I tried to send some data to the server using https commands.But i am always getting +KHTTPS\_ERROR : 0, 13(SSL initilization error).  
Below are the commands i used to sent the data.  
AT+CGATT=1

AT+KHTTPSCFG=0,“some ip address”,port number,2

AT+KCERTSTORE=1,some bytes  
(copied the certificate to the file system after getting connect option)

AT+KHTTPSPOST=0, “some uri”  
Here i get  
+KHTTPS\_ERROR : 0, 13

Can you help me in this what I am missing here ?

Regards  
Vineet

---

<div class="post-metadata">

### Author: ![vinu1209](https://avatars.discourse-cdn.com/v4/letter/v/7ba0ec/32.png) [@vinu1209](https://forum.sierrawireless.com/u/vinu1209)
#### Post date: [June 4, 2014, 9:49am UTC](https://forum.sierrawireless.com/t/https-certificate-error/7239/2 "2014-06-04T09:49:49Z")

</div>

More over if i don’t use authentication for HTTPS connection and try to send json data to server the server replies back content not supported.

AT+KHTTPSPOST=0, “some uri”

CONNECT  
HTTP/1.1 415 Unsupported Media Type  
Server: Apache-Coyote/1.1  
Content-Type: text/html;charset=utf-8  
Content-Length: 1136  
Date: Wed, 04 Jun 2014 09:43:52 GMT

JBoss Web/7.0.13.Final - Error report 
# HTTP Status 415 - Cannot consume content type

* * *

**type** Status report

**message** Cannot consume content type

**description** The server refused this request because the request entity is in a format not supported by the requested resource for the requested method (Cannot consume content type).

* * *

### JBoss Web/7.0.13.Final
--EOF--Pattern-- OK

Your immediate response in this will be highly appreciated

Thanks & Regards  
Vineet

---

<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: [June 11, 2014, 1:33pm UTC](https://forum.sierrawireless.com/t/https-certificate-error/7239/3 "2014-06-11T13:33:14Z")

</div>

Hello,

KHTTPS\_ERROR 13 means “initialize SSL error”.  
Usually it’s related with the certification.

Please check:

1. Is the root certification installed in the module?
2. Is the time of the module set correctly?

And it’s recommended to try KHTTPSGET first before using KHTTPSPOST, just to make sure that all settings are correct.

Thanks,
