HTTPS certificate error

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

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

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,