简体   繁体   中英

Can Netty be configured to use OCSP?

I currently use Netty 3.9.5 and I want to use OCSP (Online Certificate Status Protocol) to verify a PKI certificate. I have only found Java examples using a local keystore to check the authentication of a certificate. Since I am new to the SSL/TLS world, I am hoping that this is a lack of knowledge on my part. Does Netty 3.x or 4.x support the use of OCSP or is this something I will need to add myself? Are there any NIO frameworks that support OCSP?

You will need to add this yourself by implementing the javax.net.ssl.TrustManagerFactory interface which will do the OCSP validation. There is some code in this class here you maybe able to use to do the OCSP validation.

If you take a look at the Netty HttpSnoopClient.java example it shows you how to register your custom ssl TrustManager in line 65.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM