CORDA-2205 Fixing CRL issuer store lookup (#4205)

This commit is contained in:
Michal Kit 2018-11-09 13:45:23 +00:00 committed by GitHub
parent 4c25250fc8
commit 2f644039b5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -347,12 +347,7 @@ class NodeRegistrationHelper(
if (principalMatchesCertificatePrincipal(tlsCertCrlIssuer, rootCert)) { if (principalMatchesCertificatePrincipal(tlsCertCrlIssuer, rootCert)) {
return rootCert return rootCert
} }
val trustStore = config.p2pSslOptions.trustStore.getOptional() return findMatchingCertificate(tlsCertCrlIssuer, rootTrustStore)
return if (trustStore != null) {
findMatchingCertificate(tlsCertCrlIssuer, trustStore.value)
} else {
null
}
} }
override fun isTlsCrlIssuerCertRequired(): Boolean { override fun isTlsCrlIssuerCertRequired(): Boolean {