Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Fix usage of tls_engine and tls_keyform. #1405

Merged
merged 1 commit into from
Sep 8, 2019

Conversation

woelfman
Copy link
Contributor

@woelfman woelfman commented Sep 6, 2019

The current implementation does not properly forward the engine
parameters to OpenSSL causing OpenSSL to incorrectly attempt to open the
engine key uri as a file.

This fix enables net_mosq.c:net__init_ssl_ctx to use ENGINE_load_private_key instead of SSL_CTX_use_PrivateKey_file.

Signed-off-by: Matt Woelfel matt@woelfware.com

@ralight
Copy link
Contributor

ralight commented Sep 6, 2019

Is that the whole commit? It doesn't quite match up to the comment for me.

@woelfman
Copy link
Contributor Author

woelfman commented Sep 6, 2019

Yes, this is it. Some of the engine parameters specified in mosquitto.conf are not making it all the way to where they are being used.

@ralight ralight added this to the 1.6.5 milestone Sep 6, 2019
@ralight
Copy link
Contributor

ralight commented Sep 6, 2019

Ok, thanks I'll look at it properly soon.

The current implementation does not properly forward the engine
parameters to OpenSSL causing OpenSSL to incorrectly attempt to open the
engine key uri as a file.

Sponsored-by: Trimble, Inc.
Signed-off-by: Matt Woelfel <matt@woelfware.com>
@ralight ralight merged commit 31f09d1 into eclipse:fixes Sep 8, 2019
@ralight
Copy link
Contributor

ralight commented Sep 8, 2019

Thanks very much!

@woelfman woelfman deleted the fix-engine-key-uri branch September 8, 2019 19:53
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 11, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants