Skip to content

Can you provide an example of how to use PKCS#11 interface to connect MQTT on Android9.0? #251

Answered by TwistedTwigleg
Runxing123 asked this question in Q&A
Discussion options

You must be logged in to vote

I believe the following settings are the minimal required settings for making an PKCS11 connection:

  • pkcs11Lib
  • userPin
  • certificateFilePath

You can find sample code for creating an MQTT PKCS11 connection in the PKCS11 PubSub sample.
There is also a simplified PKCS11 connection sample here in this PR that might also be helpful as a reference as it only contains code for making a PKCS11 connection and nothing more: #233

Also: While we know the code compiles on Android, we have currently not run tests to ensure it works on Android at this time.

Replies: 3 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@graebm
Comment options

Answer selected by jmklix
Comment options

You must be logged in to vote
1 reply
@TwistedTwigleg
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
guidance Question that needs advice or information.
4 participants
Converted from issue

This discussion was converted from issue #242 on April 04, 2022 19:13.