MQTT Connection Error -12

Hello, 

I am working on connecting a NRF9161 to a MQTT server (EMQX) but i am getting a connection error (-12), I was hoping someone could help me navigate this one. It looks like the error is connected to memory for the CA cert. 

Some context:

I have successfully connected to the Nordic MQTT development server (8883 and 1883) by following the steps in the the MQTT over LTE example. When I try to connect to the EMQX server over port 8883 I get this error. 

Below are some details about the config files. 

I've tried maxing out the NRF_MODEM_LIB_HEAP to 4096 but that did not resolve the error. 4096 is the internal limit. 

[00:00:23.223,907] <inf> Simkura_SB6_READER: New buffer
[00:00:23.271,453] <inf> Simkura_SB6_READER: TX buffer sent
[00:00:25.633,087] <err> Simkura_SB6_MAIN: Error in mqtt_connect: -12
[00:00:25.641,082] <inf> Simkura_SB6_MAIN: Reconnecting in 60 seconds...
[00:00:30.129,333] <inf> Simkura_SB6_NETWORK: RRC mode: Idle
[00:01:26.237,762] <inf> Simkura_SB6_NETWORK: RRC mode: Connected

# Memory
CONFIG_HEAP_MEM_POOL_SIZE=16384
CONFIG_MAIN_STACK_SIZE=8192
CONFIG_NRF_MODEM_LIB_HEAP_SIZE=4096
Is there anyway to override the heap limit for the modem? 
Thank you, 
Jack
Related