Thanks to visit codestin.com
Credit goes to github.com

Skip to content

v2.4.4

Compare
Choose a tag to compare
@sky-sharma sky-sharma released this 13 Sep 11:56
· 13 commits to master since this release

This release provides an additional way to authenticate a device: using mTLS authentication.
This requires passing an x509keyPair when creating the Device object.

Definition: System.Device(name, x509keyPair={"certfile": "/path/to/your/cert.pem", "keyfile": "/path/to/your.key"})
Returns: Device object.

mTLS authentication is achieved by a POST request being sent to API {platformURL}:444/api/v/4/devices/mtls/auth with the provided x509keyPair being loaded into the SSL context's cert chain. This is handled by the SDK.