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

Connect to azure Iot hub with x509 certificate using go #86

Open
Sampath280 opened this issue Mar 27, 2024 · 1 comment
Open

Connect to azure Iot hub with x509 certificate using go #86

Sampath280 opened this issue Mar 27, 2024 · 1 comment

Comments

@Sampath280
Copy link

Sampath280 commented Mar 27, 2024

c, _ := iotdevice.NewFromX509(iotmqtt.New(), device_id, hostname, cert)

   if err := client.Connect(context.Background()); err != nil {
        fmt.Println("Error connecting to iothub: ", err)
        return
    }

using this git
get a message of not Authorized with go . I need to connect with x509 certificate and send messages. Any help appreciated. Thank you

@Sampath280 Sampath280 changed the title Connect azure Iot hub with x509 certificate Connect to azure Iot hub with x509 certificate using go Mar 27, 2024
@pedrolemos4
Copy link

This was fixed by using mqtt with web sockets

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

2 participants