enrollement through Proxy in nodejs

Soni, Rohitashav 1 Reputation point
2022-07-20T07:37:31.243+00:00

we are using this repo : https://github.com/Azure/azure-iot-sdk-node

in the example "create_individual_x509_enrollment.js"

we are trying perform enrollment through proxy server but we are not also to do so, we have tried few ways but non of them worked can you please suggest a way to perform enrollment through proxy.

Azure IoT Hub
Azure IoT Hub
An Azure service that enables bidirectional communication between internet of things (IoT) devices and applications.
1,272 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Sander van de Velde | MVP 36,761 Reputation points MVP Volunteer Moderator
    2022-07-21T08:24:57.377+00:00

    Hello @Soni, Rohitashav ,

    you want to test creating an individual enrollment for a device using X509 certificates as security/identity.

    You mention you need proxy support to have this working.

    This means you want to execute this code somewhere outside Azure, probably on your development machine in a corporate environment.

    It's good practice to have this code only executed WITHIN Azure, eg. in an Azure Function or as part of WebApp or LogicApp logic or inside a CICD pipeline.

    This is mainly to prevent exposing/leaking service keys (like the DPS connection string you need) outside Azure.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.