Code Monkey home page Code Monkey logo

Comments (7)

mrohera avatar mrohera commented on July 17, 2024

Hello,
This could likely be because your target does not have the appropriate TLS certificates installed on your target. On your Ubuntu host, there is a install base of CA root certificates which is why things worked seamlessly.

Could you try installing the appropriate CA certificate(s) on your target and see if this unblocks you for the moment?

Here is how you can do this:

  1. From your Ubuntu host, open up a Chrome or Firefox browser and point it to your EventHub instance using https://
  2. Obtain all the certs in the chain and install them on your target.
  3. Retry your code.

Additionally, for your reference, enabling log tracing on your EventHub Sender and Receiver could make debugging easier.

from azure-event-hubs-c.

vishalguptabit avatar vishalguptabit commented on July 17, 2024

how to enable log tracing ?? i am also not getting the log when i am cross compiling it for nvidia. only info log is coming .....

from azure-event-hubs-c.

vishalguptabit avatar vishalguptabit commented on July 17, 2024

There is nothing like eventHub in certificate tab under firefox in ubuntu ??

from azure-event-hubs-c.

vishalguptabit avatar vishalguptabit commented on July 17, 2024

i have debugged this code and found
xio_open(connection->io, connection_on_io_open_complete, connection, connection_on_bytes_received, connection, connection_on_io_error, connection)

is returning success.

But none of the registered function is getting called on my nvidia board. but on my desktop machine "connection_on_io_open_complete" is getting called .....

from azure-event-hubs-c.

mrohera avatar mrohera commented on July 17, 2024

I am not sure if you have retrieved the certificate or not, all that needs to be done here is point your browser to https://<your_event_hub>.servicebus.windows.net/ (for example). Obtain any certificates here (there should be three) like you would from any other website.

To enable tracing please do this in your code for a EventHub Receiver:

  1. eventHubRxHandle = EventHubReceiver_Create(...)
  2. EventHubReceiver_SetConnectionTracing(eventHubRxHandle , true); // this enables connection tracing
  3. EventHubReceiver_ReceiveFromStartTimestampWithTimeoutAsync or EventHubReceiver_ReceiveFromStartTimestampAsync depending on what you want to do.

Similarly, to To enable tracing please do this in your code for a EventHub Sender:

  1. eventHubTxHandle = EventHubClient_CreateFromConnectionString(...)
  2. EventHubClient_SetLogTrace(eventHubTxHandle, true);
  3. Add your sender code after this.

Please try this out and send us any logs. Additionally as always please remember to NOT paste your connection string details.

Thank you.

from azure-event-hubs-c.

vishalguptabit avatar vishalguptabit commented on July 17, 2024

connection Tracing is enabled in my code. but nothing is coming to the terminal. I have captured Wireshark packet for this. And found my client is not able to verify the server certificate, then after some time, "FIN" packet is coming from Server side.

one more question is azure needed "LDAP" support to communicate ??

I am attaching my Wireshark log with this.
image

from azure-event-hubs-c.

vishalguptabit avatar vishalguptabit commented on July 17, 2024

finally, it works.... certificate issue is resolved. you can close this issue.... :)

from azure-event-hubs-c.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.