We need either a DLL file or a PowerShell function created that can be used to Publish messages to AWS IoT Core and subscribe to messages using the MQTT protocol. The finished product must be easily implemented in to an exist PowerShell script, which sends and receives JSON content to/from AWS IoT Core.
Our IoT devices authenticate using x509 certificates and communicate using the MQTT protocol on port 443. In order for this to work, AWS requires us to implement the Application Layer Protocol Negotiation (ALPN) TLS extension and use the ALPN ProtocolName 'x-amzn-mqtt-ca'.
For more information on this requirement, please see: [login to view URL]
The final product will allow us to:
- Connect to an AWS IoT Core address using x509 authentication.
- Publish a message to the IoT endpoint (Async, possibly using Register-ObjectEvent).
- Subscribe to messages from the IoT endpoint (Async, possibly using Register-ObjectEvent).