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

Unable to find the file path Syntax #2770

Open
georgethomas08 opened this issue Mar 12, 2023 · 1 comment
Open

Unable to find the file path Syntax #2770

georgethomas08 opened this issue Mar 12, 2023 · 1 comment

Comments

@georgethomas08
Copy link

Hi Team,

https://github.com/eclipse/mosquitto/blob/master/examples/publish/basic-1.c

In this program I couldn't find any option to map the device certificate, private_key and RootCA certificate of AWS, It would be grateful if you could help me

Regards
george thomas

@ralight
Copy link
Contributor

ralight commented Apr 1, 2023

You should use the mosquitto_tls_set() function before calling mosquitto_connect().

mosquitto_tls_set(mosq, "path/to/rootca", NULL, "path/to/device.crt", "path/to/private.key", NULL);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants