Java SSL Certificate Revocation Checking

前端 未结 4 1413
旧巷少年郎
旧巷少年郎 2020-12-15 12:53

I\'m currently writing a network TCP server using SSL. In production, we\'ll finally require clients to authenticate with a certificate.

In order to revoke certifica

4条回答
  •  我在风中等你
    2020-12-15 13:27

    Is OCSP OK for you?

    bellow code enables OCSP for me:

    // for debugging:
    System.setProperty("javax.net.debug", "all");
    System.setProperty("java.security.debug", "all");
    
    System.setProperty("com.sun.net.ssl.checkRevocation", "true");
    Security.setProperty("ocsp.enable", "true");
    

    failed on CRL for errors like: How to check revocation status of X509Certificate chain using JAVA?

提交回复
热议问题