AWS IoT MQTT Signature V4

From sgcWebSockets 4.4.3, the Amazon AWS IoT client supports Signature V4 Authentication, this means that you don't need to use a certificate to authenticate against AWS MQTT Server.

Signature V4 can be used for MQTT over WebSockets and port 443.


First you must create a new user in your AWS console and assign privileges for IoT devices. If the process ends successfully you will get an Access and Secret Key, save this because you will need later.

In TsgcIoTAmazon_MQTT_Client there is a new property called SignatureV4, you must enable it and set the keys provided by AWS and the region.

oIoT := TsgcIoTAmazon_MQTT_Client.Create(nil);
oIoT.SignatureV4.Enabled := True;
oIoT.SignatureV4.Region := 'us-east-1';
oIoT.SignatureV4.AccesKey := 'your access key here';
oIoT.SignatureV4.SecretKey := 'your secret key here';
oIoT.Host := 'amazon end point here'
oIoT.Port := 443;
oIoT.Active := True; 

Delphi Amazon AWS IoT Client Component

Client Amazon AWS IoT MQTT Client, download demo, check documentation and more.
Stay Informed

When you subscribe to the blog, we will send you an e-mail when there are new updates on the site so you wouldn't miss them.

AWS IoT MQTT Custom Authentication
Bittrex API V3 Support

Related Posts