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

Passing a device certificate to provisioning client on linux #254

Closed
mathias-nickl opened this issue Jan 25, 2019 · 4 comments
Closed

Passing a device certificate to provisioning client on linux #254

mathias-nickl opened this issue Jan 25, 2019 · 4 comments

Comments

@mathias-nickl
Copy link

mathias-nickl commented Jan 25, 2019

Hi there!

I am trying to provision devices with the python provisioning sdk on a linux machine. However I am not able to pass the device certificate to the provisioning client. In C# the provisioning client provides a parameter to pass the certificate via a security provider. But I am struggling to build an equivalent example in python.

How can I pass the device certificate to the provisioning device client in python?

Best

Mathias

  • OS and version used: Ubuntu 15.04

  • Python runtime used: 3.6

@1-Peter
Copy link

1-Peter commented Mar 22, 2019

Hi,

we are struggeling with a similar problem.
Any advice would be apprreciated.

Kind Regards
M. Peter

@pierreca
Copy link
Contributor

@mathias-nickl @1-Peter unfortunately i have no satisfying answer for now:

Because the current SDK is built on the C SDK, the way to do this is to implement a custom HSM module. See:
https://github.com/Azure/azure-iot-sdk-c/blob/master/provisioning_client/devdoc/using_custom_hsm.md

This entails developing a custom HSM module in C, then rebuilding the C+Python SDK while linking to the HSM module.

we're absolutely conscious of the fact that this is not a good python experience which is why we're working on a new implementation of the SDK that doesn't rely on the C SDK (here) rather than investing in trying to patch this version of the SDK, given this design obviously doesn't work for 99% of users.

@pierreca
Copy link
Contributor

pierreca commented Sep 4, 2019

I believe we've responded to this question in #272 : the new v2 client deals with certificate a lot better than v1.

@pierreca pierreca closed this as completed Sep 4, 2019
@az-iot-builder-01
Copy link
Collaborator

@mathias-nickl, @1-Peter, thank you for your contribution to our open-sourced project! Please help us improve by filling out this 2-minute customer satisfaction survey

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

4 participants