I am looking OCSP validation during snmp4j TLSTM connection establishment .
To try this I have the revoked certificate (which has the OCSP URL in the certificate) in the TrustStores of SNMP4j Agent and Client application which connects using snmp4j API.
Have set the the system properties as below in Client and Agent.
However the during the initial handshake the certificates get validated and connection gets established successfully .
Is there any configuration available to enable OCSP validation in SNMP4J ?
If not how are we supposed to do the OCSP validation ? As the snmp.send gets executed once the certificate is validated and we do not have the reference of Agent/client certificate to validate in Client/Agent .
I am running the OCSP server locally and verifying the certificate using openssl command returns the status as revoked(as expected) .
Can you please provide your inputs on this ?