corda / com.r3.corda.networkmanage.common.utils / buildCertChainForHSM

buildCertChainForHSM

fun buildCertChainForHSM(certificateAlias: String, keyStore: KeyStore, certificatesStores: Collection<<ERROR CLASS>>, ctx: <ERROR CLASS>): List<X509Certificate>

The method assumes that the certificates store has been built using the HSM. In this case, as certificate chains larger than 1 are not supported, the key store should always contain the initial certificate. There are two scenarios:

  1. The old PKI is being used - the certificates store will contain a single entry for the root
  2. The new PKI is being used - the certificates store will contain single entries for every member in the chain
fun buildCertChainForHSM(certificateAlias: String, keyStore: KeyStore, certificatesStore: <ERROR CLASS>?, ctx: <ERROR CLASS>): List<X509Certificate>

Overload for the buildCertChainForLocal