OCSP check in Java secure sockets
If I set Security.setProperty("ocsp.enable", "true") , will an SSLSocket or SSLServerSocket connection automatically check for certificate revocation using OCSP? Do I have to do the OCSP check manually when creating the socket? (I'm not using CRLs.) You can use this TrustManager implementation I whipped up for some testing which is based on the OCSP checking code on XueLei.Fan's blog . I have used this with Netty based on the their HttpSnoopClient hitting https://www.mozilla.org/en-US/ and it works. import io.netty.handler.ssl.util.SimpleTrustManagerFactory; import io.netty.util.internal