todvora / eet-client

Client and library for #EET communication - http://www.etrzby.cz/ , written in Java
MIT License
48 stars 26 forks source link

Remove custom CRL handling #21

Closed todvora closed 7 years ago

todvora commented 7 years ago

There is a pretty significant part of the code which handles CRL parsing and download from EET certificates used to sign responses. I'd like to replace this part with several standard properties, which should force JRE to do the same procedure:

System.setProperty("com.sun.security.enableCRLDP", "true");
System.setProperty("com.sun.net.ssl.checkRevocation", "true");
Security.setProperty("com.sun.security.onlyCheckRevocationOfEECert", "true"); // verify only revocation of the last cert in path (the EET cert)

Any other ideas, recommendations or code snippets?

Thanks!