# Unable to Establish Secure HTTPS/FTPS Connection Using LARA-R6401 ("Cannot Set Secure Socket")

**URL:** <https://community.sparkfun.com/t/unable-to-establish-secure-https-ftps-connection-using-lara-r6401-cannot-set-secure-socket/64746>\
**Category:** Cellular\
**Created:** [April 23, 2025, 5:39am UTC](https://community.sparkfun.com/t/unable-to-establish-secure-https-ftps-connection-using-lara-r6401-cannot-set-secure-socket/64746 "2025-04-23T05:39:14Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Shravya\_Katakam](https://yyz1.discourse-cdn.com/sparkfun/user_avatar/community.sparkfun.com/shravya_katakam/32/7706_2.png) [@Shravya\_Katakam](https://community.sparkfun.com/u/Shravya_Katakam)\
**Post date:** [April 23, 2025, 5:39am UTC](https://community.sparkfun.com/t/unable-to-establish-secure-https-ftps-connection-using-lara-r6401-cannot-set-secure-socket/64746/1 "2025-04-23T05:39:14Z")

</div>

**Module: u-blox LARA-R6401 (SPARKFUN LTE STICK)**

**Network:** Jio India

**Firmware Version:** 2.14

Hi everyone,

I’m facing an issue while establishing secure **HTTP (HTTPS)** and **FTP (FTPS)** connections on the LARA-R6401 module. After setting up all required parameters, I consistently receive the following errors:

- **HTTPS:** `Error code 11 – server connection error`
- **FTPS:** `Error code 63 – Cannot set secure socket`

**Debug Steps Taken**

- Confirmed root certificate is imported successfully with valid base64 and no PEM headers
- Tried multiple known-good HTTPS and FTPS servers
- Non-secure HTTP and FTP operations succeed
- PDP context successfully shows IP addresses (IPv4 & IPv6)
- FTPS and HTTPS fail consistently when secure option is enabled
- Attempted different SSL profile IDs, DNS hostnames, and APNs

**Could you please advise:**

1. Does LARA-R6401 fully support secure FTP and HTTPS over IPv4/IPv6 in the latest firmware?
2. Is there a specific CA bundle required for T-Mobile USA networks?
3. Are the errors indicative of a firmware issue, or a module limitation?

I’ve also reviewed the official u-blox AT command examples from this document:

[content.u-blox.com](https://content.u-blox.com/sites/default/files/AT-CommandsExamples_AppNote_%28UBX-13001820%29.pdf)

### [AT-CommandsExamples\_AppNote\_%28UBX-13001820%29.pdf](https://content.u-blox.com/sites/default/files/AT-CommandsExamples_AppNote_%28UBX-13001820%29.pdf)

2.87 MB

Many of the same errors are mentioned in this , but unfortunately, no resolutions are provided.

Any insights, suggestions, or working configurations would be greatly appreciated.

---

<div class="post-metadata">

**Author:** ![TS-Russell](https://yyz1.discourse-cdn.com/sparkfun/user_avatar/community.sparkfun.com/ts-russell/32/6092_2.png) [@TS-Russell](https://community.sparkfun.com/u/TS-Russell)\
**Post date:** [April 26, 2025, 3:28am UTC](https://community.sparkfun.com/t/unable-to-establish-secure-https-ftps-connection-using-lara-r6401-cannot-set-secure-socket/64746/2 "2025-04-26T03:28:41Z")

</div>

I might suggest trying a different SIM provider to rule out that as the cause

---

<div class="post-metadata">

**Author:** ![Shravya\_Katakam](https://yyz1.discourse-cdn.com/sparkfun/user_avatar/community.sparkfun.com/shravya_katakam/32/7706_2.png) [@Shravya\_Katakam](https://community.sparkfun.com/u/Shravya_Katakam)\
**Post date:** [April 28, 2025, 5:34am UTC](https://community.sparkfun.com/t/unable-to-establish-secure-https-ftps-connection-using-lara-r6401-cannot-set-secure-socket/64746/3 "2025-04-28T05:34:04Z")

</div>

Thank you for replying, will try that.
