mirror of
https://github.com/corda/corda.git
synced 2024-12-28 16:58:55 +00:00
ENT-1756 register providers first thing on doorman boot.
This commit is contained in:
parent
2fc7e5e674
commit
f1ddd2b747
@ -13,6 +13,8 @@ package com.r3.corda.networkmanage.doorman
|
|||||||
import com.jcabi.manifests.Manifests
|
import com.jcabi.manifests.Manifests
|
||||||
import com.r3.corda.networkmanage.common.utils.*
|
import com.r3.corda.networkmanage.common.utils.*
|
||||||
import com.r3.corda.networkmanage.doorman.signer.LocalSigner
|
import com.r3.corda.networkmanage.doorman.signer.LocalSigner
|
||||||
|
import net.corda.core.crypto.CordaSecurityProvider
|
||||||
|
import net.corda.core.crypto.Crypto
|
||||||
import net.corda.core.internal.exists
|
import net.corda.core.internal.exists
|
||||||
import net.corda.nodeapi.internal.crypto.X509KeyStore
|
import net.corda.nodeapi.internal.crypto.X509KeyStore
|
||||||
import net.corda.nodeapi.internal.crypto.X509Utilities
|
import net.corda.nodeapi.internal.crypto.X509Utilities
|
||||||
@ -24,6 +26,7 @@ import kotlin.system.exitProcess
|
|||||||
private val logger = LoggerFactory.getLogger("com.r3.corda.networkmanage.doorman")
|
private val logger = LoggerFactory.getLogger("com.r3.corda.networkmanage.doorman")
|
||||||
|
|
||||||
fun main(args: Array<String>) {
|
fun main(args: Array<String>) {
|
||||||
|
Crypto.findProvider(CordaSecurityProvider.PROVIDER_NAME) // Required to register Providers first thing on boot.
|
||||||
if (Manifests.exists("Doorman-Version")) {
|
if (Manifests.exists("Doorman-Version")) {
|
||||||
println("Version: ${Manifests.read("Doorman-Version")}")
|
println("Version: ${Manifests.read("Doorman-Version")}")
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user