Implement secure communications

The communication towards the consumer is not secured in this commit.

Also changed the configuration so that the address of the DMaaP Message
Router is given in one variable, named DMAAP_MR_ADDR.

Issue-ID: NONRTRIC-601
Signed-off-by: elinuxhenrik <henrik.b.andersson@est.tech>
Change-Id: Icb5b3c255367e823fcae2168ab37603092815893
diff --git a/dmaap-mediator-producer/internal/config/config.go b/dmaap-mediator-producer/internal/config/config.go
index dfd2505..b31b334 100644
--- a/dmaap-mediator-producer/internal/config/config.go
+++ b/dmaap-mediator-producer/internal/config/config.go
@@ -32,8 +32,9 @@
 	InfoProducerHost       string
 	InfoProducerPort       int
 	InfoCoordinatorAddress string
-	MRHost                 string
-	MRPort                 int
+	DMaaPMRAddress         string
+	ProducerCertPath       string
+	ProducerKeyPath        string
 }
 
 func New() *Config {
@@ -41,9 +42,10 @@
 		LogLevel:               getLogLevel(),
 		InfoProducerHost:       getEnv("INFO_PRODUCER_HOST", ""),
 		InfoProducerPort:       getEnvAsInt("INFO_PRODUCER_PORT", 8085),
-		InfoCoordinatorAddress: getEnv("INFO_COORD_ADDR", "http://enrichmentservice:8083"),
-		MRHost:                 getEnv("MR_HOST", "http://message-router.onap"),
-		MRPort:                 getEnvAsInt("MR_PORT", 3904),
+		InfoCoordinatorAddress: getEnv("INFO_COORD_ADDR", "https://enrichmentservice:8434"),
+		DMaaPMRAddress:         getEnv("DMAAP_MR_ADDR", "https://message-router.onap:3905"),
+		ProducerCertPath:       getEnv("PRODUCER_CERT_PATH", "configs/producer.crt"),
+		ProducerKeyPath:        getEnv("PRODUCER_KEY_PATH", "configs/producer.key"),
 	}
 }