How to Access and Verify the Certificate of an HTTPS Webhook Sender in a Python Node?

This topic was automatically generated from Slack. You can find the original thread here.

Hello, Is it possible to access and read (verify) the certificate sent from the sender of a HTTPS webhook? Want to do it in a python node but don’t seem to be able to access it any way.

Hi , could you share your exact use case to access this data?

If you want to verify if the webhook request comes from the verified source, maybe you can require the webhook request to have the authentication data such as API-Key, username/password (basic auth), then have the code step in your workflow to verify it

use case is trading view webhook authentication:
Webhook authentication

When sending a request, the webhook server also sends an SSL certificate to the specified URL. With this certificate, you can verify that the request was actually sent by the TradingView server.
Note:
The certificate is sent only when using the HTTPS protocol. Enabling and corresponding configuration of the certificate verification is carried out entirely on the side of the webhook recipient application, and no additional actions need to be performed on the TradingView website.

anyway, unfortunately I cant use pipe dream because i am writing code, and its throwing errors, and im changing the code but it still throwing the same error like it is not updating my code. Even though the revision history is correct, the latest code that I see on my screen is not being executed. Very frustrating. How do I “save” it so it runs the correct code?

anyway, unfortunately I cant use pipe dream because i am writing code, and its throwing errors, and im changing the code but it still throwing the same error like it is not updating my code. Even though the revision history is correct, the latest code that I see on my screen is not being executed. Very frustrating. How do I “save” it so it runs the correct code?
Pipedream saves automatically after you change your workflow. Then you can click Deploy to push the latest changes to the live environment

If the error persist after you changed, maybe the change is not addressing the root cause completely?

No. The stack trace is showing an error on a line that no longer exists. Its not running the latest code

Could you share your workflow url if possible? Then I can share with the Pipedream internal team for checking