From c138b700030d22ae0bdbd6992fb4a4d8a3431798 Mon Sep 17 00:00:00 2001 From: Piotr Jaszczyk Date: Wed, 10 Apr 2019 10:32:00 +0200 Subject: Read passwords from files Key- and trust-store passwords should be read from files in order to work with DCAE tls-init-container. Change-Id: Ibe454663328268f33f8be25ef9ec129f1ce1d396 Issue-ID: DCAEGEN2-1412 Signed-off-by: Piotr Jaszczyk --- .../dcae/collectors/veshv/commandline/CommandLineOption.kt | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'sources/hv-collector-commandline/src/main/kotlin') diff --git a/sources/hv-collector-commandline/src/main/kotlin/org/onap/dcae/collectors/veshv/commandline/CommandLineOption.kt b/sources/hv-collector-commandline/src/main/kotlin/org/onap/dcae/collectors/veshv/commandline/CommandLineOption.kt index 1c1a355b..d08f6c09 100644 --- a/sources/hv-collector-commandline/src/main/kotlin/org/onap/dcae/collectors/veshv/commandline/CommandLineOption.kt +++ b/sources/hv-collector-commandline/src/main/kotlin/org/onap/dcae/collectors/veshv/commandline/CommandLineOption.kt @@ -91,11 +91,11 @@ enum class CommandLineOption(val option: Option, val required: Boolean = false) .desc("Key store in PKCS12 format") .build() ), - KEY_STORE_PASSWORD( + KEY_STORE_PASSWORD_FILE( Option.builder("kp") - .longOpt("key-store-password") + .longOpt("key-store-password-file") .hasArg() - .desc("Key store password") + .desc("File with key store password") .build() ), TRUST_STORE_FILE( @@ -105,11 +105,11 @@ enum class CommandLineOption(val option: Option, val required: Boolean = false) .desc("File with trusted certificate bundle in PKCS12 format") .build() ), - TRUST_STORE_PASSWORD( + TRUST_STORE_PASSWORD_FILE( Option.builder("tp") - .longOpt("trust-store-password") + .longOpt("trust-store-password-file") .hasArg() - .desc("Trust store password") + .desc("File with trust store password") .build() ), MAXIMUM_PAYLOAD_SIZE_BYTES( -- cgit 1.2.3-korg