CORDA-1937: Do not ignore alias parameter passed in. (#5314)

By now we were lucky because all the time `X509Utilities.CORDA_ROOT_CA` been used as an input parameter.
This commit is contained in:
Viktor Kolomeyko 2019-07-19 21:47:52 +01:00 committed by Anthony Keenan
parent a204b50f5b
commit 4e66885cf9

View File

@ -45,7 +45,7 @@ interface CertificateStore : Iterable<Pair<String, X509Certificate>> {
operator fun set(alias: String, certificate: X509Certificate) {
update {
internal.addOrReplaceCertificate(X509Utilities.CORDA_ROOT_CA, certificate)
internal.addOrReplaceCertificate(alias, certificate)
}
}