diff --git a/network-management/registration-tool/src/main/kotlin/com/r3/corda/networkmanage/registration/Main.kt b/network-management/registration-tool/src/main/kotlin/com/r3/corda/networkmanage/registration/Main.kt index df2702eb13..53cb400af4 100644 --- a/network-management/registration-tool/src/main/kotlin/com/r3/corda/networkmanage/registration/Main.kt +++ b/network-management/registration-tool/src/main/kotlin/com/r3/corda/networkmanage/registration/Main.kt @@ -6,10 +6,12 @@ import joptsimple.OptionParser import joptsimple.OptionSpecBuilder import joptsimple.util.PathConverter import joptsimple.util.PathProperties +import net.corda.core.crypto.Crypto import java.nio.file.Path import kotlin.system.exitProcess fun main(args: Array) { + Crypto.registerProviders() // Required to register Providers first thing on boot. val options = try { parseOptions(*args) } catch (e: ShowHelpException) { diff --git a/network-management/src/main/kotlin/com/r3/corda/networkmanage/doorman/Main.kt b/network-management/src/main/kotlin/com/r3/corda/networkmanage/doorman/Main.kt index 54d7d24c77..05ee1efccf 100644 --- a/network-management/src/main/kotlin/com/r3/corda/networkmanage/doorman/Main.kt +++ b/network-management/src/main/kotlin/com/r3/corda/networkmanage/doorman/Main.kt @@ -25,7 +25,7 @@ import kotlin.system.exitProcess private val logger = LoggerFactory.getLogger("com.r3.corda.networkmanage.doorman") fun main(args: Array) { - Crypto.findProvider(CordaSecurityProvider.PROVIDER_NAME) // Required to register Providers first thing on boot. + Crypto.registerProviders() // Required to register Providers first thing on boot. if (Manifests.exists("Doorman-Version")) { println("Version: ${Manifests.read("Doorman-Version")}") }