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:
fun buildCertChainForHSM(certificateAlias: String, keyStore: KeyStore, certificatesStore: <ERROR CLASS>?, ctx: <ERROR CLASS>): List<X509Certificate>
Overload for the buildCertChainForLocal