Introduce choice between secure and non secure com 27/7027/6
authorelinuxhenrik <henrik.b.andersson@est.tech>
Mon, 8 Nov 2021 14:58:20 +0000 (15:58 +0100)
committerelinuxhenrik <henrik.b.andersson@est.tech>
Wed, 10 Nov 2021 15:19:08 +0000 (16:19 +0100)
commitbfce194da9644a9498577addd4bd232dd67d0f86
tree9d797b1c8688356e182054002528e80405b536a8
parent23ef6be86d3ed4f04dbba48ab41af1a1c40debf3
Introduce choice between secure and non secure com

The DMaaP Mediator producer now uses secure communication towards any
address configured to use the https scheme. If its own callback is
configured to the https scheme, it will only listen to an https port,
otherwise it will only use an http port.

Also moved the certificate and key files to a separate folder.

Issue-ID: NONRTRIC-633
Signed-off-by: elinuxhenrik <henrik.b.andersson@est.tech>
Change-Id: Id3bb18e83d40d26740b71be7901911c9a41502e3
dmaap-mediator-producer/Dockerfile
dmaap-mediator-producer/README.md
dmaap-mediator-producer/internal/config/config.go
dmaap-mediator-producer/internal/config/config_test.go
dmaap-mediator-producer/internal/restclient/HTTPClient.go
dmaap-mediator-producer/internal/restclient/HTTPClient_test.go
dmaap-mediator-producer/main.go
dmaap-mediator-producer/security/producer.crt [moved from dmaap-mediator-producer/configs/producer.crt with 100% similarity]
dmaap-mediator-producer/security/producer.key [moved from dmaap-mediator-producer/configs/producer.key with 100% similarity]
dmaap-mediator-producer/stub/dmaap/mrstub.go