Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

UNKNOWN ERROR CODE (001D) #68

Closed
githubnu9 opened this issue Mar 4, 2024 · 2 comments
Closed

UNKNOWN ERROR CODE (001D) #68

githubnu9 opened this issue Mar 4, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@githubnu9
Copy link

githubnu9 commented Mar 4, 2024

Hi all,

I'm trying to connect with my own mqtt broker via a gsm800L while using the example mqtt_gsm_sim800l_azure_x509_device_Twin.ino with a self-generated CA/Client/Private key.

But im receiving error code (001D)

[  9390][V][ssl_client.cpp:135] client_net_recv_timeout(): SSL client RX (received=5 expected=5 in 0ms)
[  9399][V][ssl_client.cpp:118] client_net_recv_timeout(): Timeout set to 0
[  9406][V][ssl_client.cpp:135] client_net_recv_timeout(): SSL client RX (received=40 expected=40 in 0ms)
[  9416][V][ssl_client.cpp:722] perform_ssl_handshake(): Protocol is TLSv1.2 Ciphersuite is TLS-ECDHE-RSA-WITH-AES-256-GCM-SHA384
[  9427][E][ssl_client.cpp:728] perform_ssl_handshake(): mbedtls_ssl_get_record_expansion returned -0xffffffe3
[  9437][D][ssl_client.cpp:791] stop_ssl_socket(): Cleaning SSL connection.
[  9443][D][ssl_client.cpp:795] stop_ssl_socket(): Stopping SSL client. Current client pointer address: 0x3ffc1e04
[  9467][D][ssl_client.cpp:800] stop_ssl_socket(): Freeing CA cert. Current ca_cert address: 0x3ffba2e4
[  9467][D][ssl_client.cpp:808] stop_ssl_socket(): Freeing client cert and client key. Current client_cert address: 0x3ffba43c, client_key address: 0x3ffba594
[  9479][D][ssl_client.cpp:816] stop_ssl_socket(): Freeing SSL context. Current ssl_ctx address: 0x3ffb9d14
[  9488][D][ssl_client.cpp:819] stop_ssl_socket(): Freeing SSL config. Current ssl_conf address: 0x3ffb9f34
[  9498][D][ssl_client.cpp:822] stop_ssl_socket(): Freeing DRBG context. Current drbg_ctx address: 0x3ffba01c
[  9507][D][ssl_client.cpp:825] stop_ssl_socket(): Freeing entropy context. Current entropy_ctx address: 0x3ffba06c
[  9517][D][ssl_client.cpp:828] stop_ssl_socket(): Finished cleaning SSL connection.
[  9525][D][ssl_client.cpp:249] cleanup(): Free internal heap after TLS 303284
[  9532][E][ssl_client.cpp:45] _handle_error(): [start_ssl_client():353]: (29) UNKNOWN ERROR CODE (001D)
[  9541][V][SSLClient.cpp:232] connect(): Return value from start_ssl_client: 0
[  9548][E][SSLClient.cpp:235] connect(): start_ssl_client failed: 0
[  9554][D][SSLClient.cpp:90] stop(): Stopping ssl client
[  9559][D][ssl_client.cpp:791] stop_ssl_socket(): Cleaning SSL connection.
[  9566][D][ssl_client.cpp:795] stop_ssl_socket(): Stopping SSL client. Current client pointer address: 0x3ffc1e04
[  9584][D][ssl_client.cpp:816] stop_ssl_socket(): Freeing SSL context. Current ssl_ctx address: 0x3ffb9d14
[  9585][D][ssl_client.cpp:819] stop_ssl_socket(): Freeing SSL config. Current ssl_conf address: 0x3ffb9f34
[  9595][D][ssl_client.cpp:822] stop_ssl_socket(): Freeing DRBG context. Current drbg_ctx address: 0x3ffba01c
[  9604][D][ssl_client.cpp:825] stop_ssl_socket(): Freeing entropy context. Current entropy_ctx address: 0x3ffba06c
[  9615][D][ssl_client.cpp:828] stop_ssl_socket(): Finished cleaning SSL connection.

In Mosquitto i see the following logging:

1709589226: New connection from 62.xxx.xxx.xxx:14080 on port 8883.
1709589230: Client <unknown> closed its connection.

Wireshark shows the following:
afbeelding

The private key and certificate work while using WiFiClientSecure.h via WiFi.
My search for the error code did not give any usefull information.

any help is appreciated!

@RobertByrnes
Copy link
Collaborator

@githubnu9 #78 Please see this PR and the comments in issue #71 This may now be fixed

@RobertByrnes RobertByrnes added the bug Something isn't working label Apr 29, 2024
@RobertByrnes RobertByrnes mentioned this issue May 1, 2024
@RobertByrnes
Copy link
Collaborator

Closing as solved by v1.2.0

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants