It looks like you have a Basic Auth header in your curl. I think even though you specified a -u that header is taking a priority. remove the basic auth and use -u or create a basic auth header with the correct credentials.
Brian From: [email protected] <[email protected]> On Behalf Of Kuldeep Singh Negi via lists.onap.org Sent: Tuesday, December 15, 2020 10:35 PM To: FREEMAN, BRIAN D <[email protected]>; [email protected] Subject: FW: [onap-discuss] #ves Exception while sending https request to ves-collector(Frankfurt)-SSLHandshakeException. What are the certificates to be added? Hi Brian, Just resending it… Requesting for your response on this earlier discussed issue. Regards, Kuldeep From: [email protected]<mailto:[email protected]> <[email protected]<mailto:[email protected]>> On Behalf Of Kuldeep Singh Negi via lists.onap.org Sent: Monday, December 14, 2020 9:34 PM To: [email protected]<mailto:[email protected]> Cc: [email protected]<mailto:[email protected]> Subject: Re: [onap-discuss] #ves Exception while sending https request to ves-collector(Frankfurt)-SSLHandshakeException. What are the certificates to be added? [CAUTION: This Email is from outside the Organization. Unless you trust the sender, Don’t click links or open attachments as it may be a Phishing email, which can steal your Information and compromise your Computer.] Hi Brian, I am trying to post a ves event (Frankfurt) and getting POL2000 Unauthorized user error. I have added cert from https://gerrit.onap.org/r/c/demo/+/106709/3/vnfs/VESreporting_vFW5.0_DANOS/onap-ca.crt<https://urldefense.com/v3/__https:/apc01.safelinks.protection.outlook.com/?url=https*3A*2F*2Fgerrit.onap.org*2Fr*2Fc*2Fdemo*2F*2B*2F106709*2F3*2Fvnfs*2FVESreporting_vFW5.0_DANOS*2Fonap-ca.crt&data=04*7C01*7Ckuldeepsinghn*40hcl.com*7Cc1ab6cea8f604b60e9df08d8a049f7d8*7C189de737c93a4f5a8b686f4ca9941912*7C0*7C0*7C637435587664630342*7CUnknown*7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0*3D*7C1000&sdata=KKCvI*2F6xCgn6emwlsTGV7ASgSoXRJK8wNo8OK*2F8TfLA*3D&reserved=0__;JSUlJSUlJSUlJSUlJSUlJSUlJSUlJSUlJSUlJQ!!BhdT!333_xPO7F2ZEJKP8g6-nRq8rx4w-m4zUgGgXtxE5BHm6Nx3emw1inx3q-r3oCrg$> Had tried with creds shared earlier - https://gerrit.onap.org/r/gitweb?p=demo.git;a=blob;f=vnfs/VESreporting_vFW5.0/vpp_measurement_reporter.c;h=123d50364f3ccb3faa8d100f7fb80e43eb116a1d;hb=refs/heads/master<https://urldefense.com/v3/__https:/apc01.safelinks.protection.outlook.com/?url=https*3A*2F*2Fgerrit.onap.org*2Fr*2Fgitweb*3Fp*3Ddemo.git*3Ba*3Dblob*3Bf*3Dvnfs*2FVESreporting_vFW5.0*2Fvpp_measurement_reporter.c*3Bh*3D123d50364f3ccb3faa8d100f7fb80e43eb116a1d*3Bhb*3Drefs*2Fheads*2Fmaster&data=04*7C01*7Ckuldeepsinghn*40hcl.com*7Cc1ab6cea8f604b60e9df08d8a049f7d8*7C189de737c93a4f5a8b686f4ca9941912*7C0*7C0*7C637435587664640333*7CUnknown*7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0*3D*7C1000&sdata=s9nhSNU67*2BBSolkODetAySYp7fNuihhIQNJF*2BDgAmMc*3D&reserved=0__;JSUlJSUlJSUlJSUlJSUlJSUlJSUlJSUlJSUlJSUlJSUlJQ!!BhdT!333_xPO7F2ZEJKP8g6-nRq8rx4w-m4zUgGgXtxE5BHm6Nx3emw1inx3qif0-28g$> Am I using wrong credentials ? ubuntu@ransim-big:~$ curl "https://10.0.2.115:30417/eventListener/v7<https://urldefense.com/v3/__https:/10.0.2.115:30417/eventListener/v7__;!!BhdT!333_xPO7F2ZEJKP8g6-nRq8rx4w-m4zUgGgXtxE5BHm6Nx3emw1inx3qm8MMMaA$>" -k -v -u sample1 -H "Authorization: Basic QWxhZGRpbjpvcGVuIHNlc2FtZQ==" -H "X-MinorVersion: 1" -H "accept: */*" -H "Content-Type: application/json" -d @~/bkup-data/fm-event-data.json Warning: Couldn't read data from file "~/bkup-data/fm-event-data.json", this Warning: makes an empty POST. Enter host password for user 'sample1': * Trying 10.0.2.115... * TCP_NODELAY set * Connected to 10.0.2.115 (10.0.2.115) port 30417 (#0) * ALPN, offering h2 * ALPN, offering http/1.1 * successfully set certificate verify locations: * CAfile: /etc/ssl/certs/ca-certificates.crt CApath: /etc/ssl/certs * TLSv1.3 (OUT), TLS handshake, Client hello (1): * TLSv1.3 (IN), TLS handshake, Server hello (2): * TLSv1.3 (OUT), TLS change cipher, Client hello (1): * TLSv1.3 (OUT), TLS handshake, Client hello (1): * TLSv1.3 (IN), TLS handshake, Server hello (2): * TLSv1.3 (IN), TLS Unknown, Certificate Status (22): * TLSv1.3 (IN), TLS handshake, Unknown (8): * TLSv1.3 (IN), TLS handshake, Request CERT (13): * TLSv1.3 (IN), TLS handshake, Certificate (11): * TLSv1.3 (IN), TLS handshake, CERT verify (15): * TLSv1.3 (IN), TLS handshake, Finished (20): * TLSv1.3 (OUT), TLS Unknown, Certificate Status (22): * TLSv1.3 (OUT), TLS handshake, Certificate (11): * TLSv1.3 (OUT), TLS Unknown, Certificate Status (22): * TLSv1.3 (OUT), TLS handshake, Finished (20): * SSL connection using TLSv1.3 / TLS_AES_256_GCM_SHA384 * ALPN, server did not agree to a protocol * Server certificate: * subject: CN=dcae; [email protected]:DEV<mailto:[email protected]:DEV>; OU=OSAAF; O=ONAP; C=US * start date: Dec 3 17:23:45 2020 GMT * expire date: Dec 3 17:23:45 2021 GMT * issuer: C=US; O=ONAP; OU=OSAAF; CN=intermediateCA_9 * SSL certificate verify ok. * TLSv1.3 (OUT), TLS Unknown, Unknown (23): > POST /eventListener/v7 HTTP/1.1 > Host: 10.0.2.115:30417 > User-Agent: curl/7.58.0 > Authorization: Basic QWxhZGRpbjpvcGVuIHNlc2FtZQ== > X-MinorVersion: 1 > accept: */* > Content-Type: application/json > Content-Length: 0 > * TLSv1.3 (IN), TLS Unknown, Certificate Status (22): * TLSv1.3 (IN), TLS handshake, Newsession Ticket (4): * TLSv1.3 (IN), TLS Unknown, Unknown (23): < HTTP/1.1 401 < Content-Length: 87 < Date: Mon, 14 Dec 2020 15:57:28 GMT * HTTP error before end of send, stop sending < * Closing connection 0 * TLSv1.3 (OUT), TLS Unknown, Unknown (21): * TLSv1.3 (OUT), TLS alert, Client hello (1): {"requestError":{"PolicyException":{"messageId":"POL2000","text":"Unauthorized user"}}} Regards, Kuldeep From: [email protected]<mailto:[email protected]> <[email protected]<mailto:[email protected]>> On Behalf Of Brian Freeman via lists.onap.org Sent: Thursday, May 7, 2020 5:07 PM To: [email protected]<mailto:[email protected]>; FREEMAN, BRIAN D <[email protected]<mailto:[email protected]>>; [email protected]<mailto:[email protected]> Subject: Re: [onap-discuss] #ves Exception while sending https request to ves-collector(Frankfurt)-SSLHandshakeException. What are the certificates to be added? [CAUTION: This Email is from outside the Organization. Unless you trust the sender, Don’t click links or open attachments as it may be a Phishing email, which can steal your Information and compromise your Computer.] https://gerrit.onap.org/r/gitweb?p=demo.git;a=blob;f=vnfs/VESreporting_vFW5.0/vpp_measurement_reporter.c;h=123d50364f3ccb3faa8d100f7fb80e43eb116a1d;hb=refs/heads/master<https://urldefense.com/v3/__https:/apc01.safelinks.protection.outlook.com/?url=https*3A*2F*2Fgerrit.onap.org*2Fr*2Fgitweb*3Fp*3Ddemo.git*3Ba*3Dblob*3Bf*3Dvnfs*2FVESreporting_vFW5.0*2Fvpp_measurement_reporter.c*3Bh*3D123d50364f3ccb3faa8d100f7fb80e43eb116a1d*3Bhb*3Drefs*2Fheads*2Fmaster&data=04*7C01*7Ckuldeepsinghn*40hcl.com*7Cc1ab6cea8f604b60e9df08d8a049f7d8*7C189de737c93a4f5a8b686f4ca9941912*7C0*7C0*7C637435587664650327*7CUnknown*7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0*3D*7C1000&sdata=yKrgYaHwitw6HAagryrgxq8lXtFfxUDVZ5en1yhW*2FQQ*3D&reserved=0__;JSUlJSUlJSUlJSUlJSUlJSUlJSUlJSUlJSUlJSUlJSUl!!BhdT!333_xPO7F2ZEJKP8g6-nRq8rx4w-m4zUgGgXtxE5BHm6Nx3emw1inx3ql2Nutjk$> From: [email protected]<mailto:[email protected]> <[email protected]<mailto:[email protected]>> On Behalf Of FREEMAN, BRIAN D Sent: Thursday, May 7, 2020 7:35 AM To: [email protected]<mailto:[email protected]>; [email protected]<mailto:[email protected]> Subject: Re: [onap-discuss] #ves Exception while sending https request to ves-collector(Frankfurt)-SSLHandshakeException. What are the certificates to be added? ***Security Advisory: This Message Originated Outside of AT&T *** Reference http://cso.att.com/EmailSecurity/IDSP.html<https://urldefense.com/v3/__https:/apc01.safelinks.protection.outlook.com/?url=http*3A*2F*2Fcso.att.com*2FEmailSecurity*2FIDSP.html&data=04*7C01*7Ckuldeepsinghn*40hcl.com*7Cc1ab6cea8f604b60e9df08d8a049f7d8*7C189de737c93a4f5a8b686f4ca9941912*7C0*7C0*7C637435587664650327*7CUnknown*7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0*3D*7C1000&sdata=miP31*2B8xxe1qb1n*2BHGxiYPHKHi2VBnzr*2Bbp7fVrXW*2Fo*3D&reserved=0__;JSUlJSUlJSUlJSUlJSUlJSUlJSUlJQ!!BhdT!333_xPO7F2ZEJKP8g6-nRq8rx4w-m4zUgGgXtxE5BHm6Nx3emw1inx3qN0Yawqc$> for more information. See the example VESreporting 5.0 for vFWCL or vFWCLDN sample1:sample1 I believe are the default credentials. Brian From: [email protected]<mailto:[email protected]> <[email protected]<mailto:[email protected]>> On Behalf Of niranjana.y60 via lists.onap.org Sent: Thursday, May 7, 2020 7:27 AM To: FREEMAN, BRIAN D <[email protected]<mailto:[email protected]>>; [email protected]<mailto:[email protected]> Subject: Re: [onap-discuss] #ves Exception while sending https request to ves-collector(Frankfurt)-SSLHandshakeException. What are the certificates to be added? Hi Brian, Thanks for you response. I am able to establish SSL connection but I am getting 401 unauthorized exception while sending https request to ves. Is there any particular userName and password I should use in the authorization header before sending request? Below are the logs in in dcae-ves-collector pod when I send request: 2020-05-07 10:37:42 INFO SubjectDN didn't match with any regexp from /opt/app/VESCollector/etc/certSubjectMatcher.properties 2020-05-07 10:37:42 ERROR EVENT_RECEIPT_FAILURE: Unauthorized user 2020-05-07 10:37:42 INFO SubjectDN didn't match with any regexp from /opt/app/VESCollector/etc/certSubjectMatcher.properties 2020-05-07 10:37:42 ERROR EVENT_RECEIPT_FAILURE: Unauthorized user Regards, Niranjana ::DISCLAIMER:: ________________________________ The contents of this e-mail and any attachment(s) are confidential and intended for the named recipient(s) only. E-mail transmission is not guaranteed to be secure or error-free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or may contain viruses in transmission. The e mail and its contents (with or without referred errors) shall therefore not attach any liability on the originator or HCL or its affiliates. Views or opinions, if any, presented in this email are solely those of the author and may not necessarily reflect the views or opinions of HCL or its affiliates. Any form of reproduction, dissemination, copying, disclosure, modification, distribution and / or publication of this message without the prior written consent of authorized representative of HCL is strictly prohibited. If you have received this email in error please delete it and notify the sender immediately. Before opening any email and/or attachments, please check them for viruses and other defects. ________________________________ -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#22656): https://lists.onap.org/g/onap-discuss/message/22656 Mute This Topic: https://lists.onap.org/mt/78998709/21656 Mute #ves:https://lists.onap.org/g/onap-discuss/mutehashtag/ves Group Owner: [email protected] Unsubscribe: https://lists.onap.org/g/onap-discuss/unsub [[email protected]] -=-=-=-=-=-=-=-=-=-=-=-
