closestToRoot

fun List<X509Certificate>.closestToRoot(predicate: (X509Certificate) -> Boolean): X509Certificate(source)

Returns the certificate matching the predicate that is closest to the root. Can be the root itself.

Throws

if no match is found