I am working with Google Assistant / Dialogflow. I want to check all incoming requests. I need to get and verify a certificate. I try to get a certificate from a header or param from HttpRequestServlet but nothing to get. How can I do this?
I'm assuming that you want to validate incoming Dialogflow requests in your Java webhook server.
Take a look at this. You should use Mutual TLS authentication:
To request mTLS:
The documentation also provides a demo about how to do this on NodeJS server. In Java, it depends on what you're using but the process is the same. So take a look a these links about setting up mTLS on Java servers and you can use the NodeJS server demo as reference.