CZERTAINLY / CZERTAINLY-Keystore-Entity-Provider

MIT License
1 stars 0 forks source link

Ignore chain certificates when listing end entity certificate in keystore #11

Closed 3KeyPradeep closed 2 years ago

3KeyPradeep commented 2 years ago

Ignore chain certificates when listing end entity certificate in keystore. In the JKS, if there are more than 1 trusted ca cert, then the end entities are automatically added with their respective chain when displayed. So it is important to take only the first certificate and add it to the list. Chains will be ignored during this step. But Since the ca certs are also part of the trustedCertEntry entity, it will be added when the code sees the data.