diff options
author | Brian Freeman <bf1936@att.com> | 2020-03-26 08:14:46 -0500 |
---|---|---|
committer | Morgan Richomme <morgan.richomme@orange.com> | 2020-03-27 18:06:42 +0000 |
commit | bea11319edf8ec6ade8e0b8c936bc7b7e69b1d2f (patch) | |
tree | bff5f32002fbb80e4e299edfa0cd2af011ca32f9 /vnfs/VESreporting_vFW5.0/vpp_measurement_reporter.c | |
parent | 676591091ff3c154193213b26103c694f1a5f1be (diff) |
Move vFW to HTTPS VES
Issue-ID: INT-1319
Change-Id: Ie100f919d162416676ce42a7fa785c8cef2dd917
Signed-off-by: Brian Freeman <bf1936@att.com>
Diffstat (limited to 'vnfs/VESreporting_vFW5.0/vpp_measurement_reporter.c')
-rw-r--r-- | vnfs/VESreporting_vFW5.0/vpp_measurement_reporter.c | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/vnfs/VESreporting_vFW5.0/vpp_measurement_reporter.c b/vnfs/VESreporting_vFW5.0/vpp_measurement_reporter.c index 180f8037..123d5036 100644 --- a/vnfs/VESreporting_vFW5.0/vpp_measurement_reporter.c +++ b/vnfs/VESreporting_vFW5.0/vpp_measurement_reporter.c @@ -67,6 +67,10 @@ int main(int argc, char** argv) char* fqdn = argv[1]; int port = atoi(argv[2]); + char* caFile = "/opt/config/onap-ca.crt"; + char* userName = "sample1"; + char* passWord = "sample1"; + if(argc == 6) { fqdn2 = argv[3]; @@ -97,15 +101,15 @@ int main(int argc, char** argv) NULL, /* optional path */ NULL, /* optional topic */ 100, /* Ring Buffer size */ - 0, /* HTTPS? */ + 1, /* HTTPS? */ NULL, /* cert file */ NULL, /* key file */ - NULL, /* ca info */ - NULL, /* ca file */ + caFile, /* ca file */ + NULL, /* ca directory */ 0, /* verify peer */ 0, /* verify host */ - "sample1", /* Username */ - "sample1", /* Password */ + userName, /* Username */ + passWord, /* Password */ "sample1", /* Username2 */ "sample1", /* Password2 */ NULL, /* Source ip */ |