Certificate and key are not loaded when using WolfSSL #3464
-
Between creating the context SSL_CTX_new and establishing the SSL connection SSL_CTX_new , the certificate/key must be loaded. If this does not happen, SSL_CTX_new aborts. Environment
|
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
|
Are you having an issue or asking a question ? Moving to questions |
Beta Was this translation helpful? Give feedback.
-
|
I have an issue in mg_tls_init function on stm32 with wolfssl: mg_tls_init: SSL_CTX_NEW(TLS_server_method()); tls->ssl = SSL_new(tls->ctx) will always fail if no certificate is loaded. WolfSSL returns NO_PRIVATE_KEY = -317, /* need the private key */ |
Beta Was this translation helpful? Give feedback.
-
|
D'you see ? The issue template is there for a reason.
WolfSSL currently does not work with our TCP/IP stack (you don't say)
For other stacks, follow the tutorial I linked. Check your code, check your
versions, no one has your issue.
…On Thu, Mar 12, 2026, 7:49 AM njso151Mk ***@***.***> wrote:
I have an issue in mg_tls_init function on stm32 with wolfssl:
mg_tls_init:
SSL_CTX_NEW(TLS_server_method());
tls->ssl = SSL_new(tls->ctx) will always fail if no certificate is loaded.
WolfSSL returns NO_PRIVATE_KEY = -317, /* need the private key */
—
Reply to this email directly, view it on GitHub
<#3464 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABOEEKYJQAN7M5OYRXZVVUL4QKI2LAVCNFSM6AAAAACWPPZATOVHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTMMBZGYZDMMQ>
.
You are receiving this because you modified the open/close state.Message
ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
Are you having an issue or asking a question ? Moving to questions
WolfSSL CI/CD tests pass: https://github.com/cesanta/mongoose/actions/runs/22976590148/job/66706580384
7.19 is obsolete
Please see our documentation, and follow the guidelines in our tutorials.
https://mongoose.ws/documentation/tutorials/tls/
Thank you