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

Add PKCS11 URL as a possible TLS key #1820

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from

Conversation

woelfman
Copy link
Contributor

@woelfman woelfman commented Sep 9, 2020

The current interface expects a file name for the key. This commit
allows a PKCS11 URL to pass the setter validation.

The API can be used as in this example:

mosquitto_tls_set(mosq, cafile, capath, certfile, "pkcs11:token=...", pw_callback);
mosquitto_string_option(mosq, MOSQ_OPT_TLS_ENGINE, "pkcs11");
mosquitto_string_option(mosq, MOSQ_OPT_TLS_KEYFORM, "engine");

Signed-off-by: Matt Woelfel [email protected]

@ralight ralight force-pushed the develop branch 2 times, most recently from 0ed1b50 to cf1c156 Compare September 22, 2020 13:49
The current interface expects a file name for the key. This commit
allows a PKCS11 URL to pass the setter validation.

The API can be used as in this example:

   mosquitto_tls_set(mosq, cafile, capath, certfile, "pkcs11:token=...", pw_callback);
   mosquitto_string_option(mosq, MOSQ_OPT_TLS_ENGINE, "pkcs11");
   mosquitto_string_option(mosq, MOSQ_OPT_TLS_KEYFORM, "engine");

Signed-off-by: Matt Woelfel <[email protected]>
@marco99asr
Copy link

can someone help me?
#2646

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

Successfully merging this pull request may close these issues.

None yet

2 participants