Hello Vamshi, Change http to https and add the "-k" option to your curl command. Jorge
From: onap-discuss@lists.onap.org [mailto:onap-discuss@lists.onap.org] On Behalf Of vamshi Sent: Friday, November 16, 2018 3:23 AM To: onap-discuss@lists.onap.org Subject: [onap-discuss] [Policy] TLS handshake error Hi, While accessing policy API's from policy related pods I see a failure due to security reasons. It seems the connections made secured. It seems we should use certificate to invoke these API's from rest clients like curl, https. Can someone help where to find the certificate. Appreciate your help. policy@policy-pdp-0:/tmp/policy-install$ curl -H 'Content-Type: application/json' -H 'Accept: application/json' -H 'ClientAuth: cHl0aG9uOnRlc3Q=' -H 'Authorization: Basic dGVzdHBkcDphbHBoYTEyMw==' -H 'Environment: TEST' -X POST -d '{"policyName": ".*"}' http://localhost:8081/pdp/api/listConfig<https://urldefense.proofpoint.com/v2/url?u=https-3A__slack-2Dredir.net_link-3Furl-3Dhttp-253A-252F-252Flocalhost-253A8081-252Fpdp-252Fapi-252FlistConfig-26v-3D3&d=DwMFAg&c=LFYZ-o9_HUMeMTSQicvjIg&r=KBxNCnvBiULMFrLf7-mWDLRIqfGifj9OdPuEw3oydrY&m=43idooOMvOHed_UcTiJx2L40M7uRCtaVaEtjwEKnwgg&s=gRLisZE053Wtr3nNrP_y8Mxs31rSvETdoFA9-wm7U2g&e=> Bad Request This combination of host and port requires TLS. Thanks & Regards, Vamshi Krishna | Tech Mahindra [cid:image001.jpg@01D25617.55BC0E30]<https://urldefense.proofpoint.com/v2/url?u=http-3A__www.techmahindra.com_&d=DwMFAg&c=LFYZ-o9_HUMeMTSQicvjIg&r=KBxNCnvBiULMFrLf7-mWDLRIqfGifj9OdPuEw3oydrY&m=43idooOMvOHed_UcTiJx2L40M7uRCtaVaEtjwEKnwgg&s=KrR2xW_X4ggMsW_QDhDy3zSgjAqrM5CgYX-YBlHn0A8&e=> ============================================================================================================================ Disclaimer: This message and the information contained herein is proprietary and confidential and subject to the Tech Mahindra policy statement, you may review the policy at http://www.techmahindra.com/Disclaimer.html<https://urldefense.proofpoint.com/v2/url?u=http-3A__www.techmahindra.com_Disclaimer.html&d=DwMFAg&c=LFYZ-o9_HUMeMTSQicvjIg&r=KBxNCnvBiULMFrLf7-mWDLRIqfGifj9OdPuEw3oydrY&m=43idooOMvOHed_UcTiJx2L40M7uRCtaVaEtjwEKnwgg&s=tIVRbFaz3ghdrM8et5Pn5PQ85-XZbwUa5VY0iA64OqE&e=> externally http://tim.techmahindra.com/tim/disclaimer.html<https://urldefense.proofpoint.com/v2/url?u=http-3A__tim.techmahindra.com_tim_disclaimer.html&d=DwMFAg&c=LFYZ-o9_HUMeMTSQicvjIg&r=KBxNCnvBiULMFrLf7-mWDLRIqfGifj9OdPuEw3oydrY&m=43idooOMvOHed_UcTiJx2L40M7uRCtaVaEtjwEKnwgg&s=iHeV5QWN5Axh2tA6uw9JYEfXZq34_r34aSU1vgM5jPc&e=> internally within TechMahindra. ============================================================================================================================ -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#13790): https://lists.onap.org/g/onap-discuss/message/13790 Mute This Topic: https://lists.onap.org/mt/28164768/21656 Group Owner: onap-discuss+ow...@lists.onap.org Unsubscribe: https://lists.onap.org/g/onap-discuss/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-