problem when using basic Auth with sslcontext and proxy Auth using camel-http4

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

problem when using basic Auth with sslcontext and proxy Auth using camel-http4

phani
Dear Team,

need your help to resolve this issue.

I have a requirement to implement proxy authentication with basic auth. but
while i was adding proxyAuthUsername and ProxyAuthPassword i am getting
HTTP 401 error from target server.

below is the http end point : https4://
test.org/DownloadHandler.ashx?proxyAuthHost=testhost&authPassword=pass&bridgeEndpoint=true&authUsername=user&proxyAuthScheme=http4&proxyAuthPort=8081&throwExceptionOnFailure=false&sslContextParametersRef=sslContextParameters&proxyAuthPassword=proxypass&disconnect=true&okStatusCodeRange=200-299&proxyAuthUsername=proxyuname

ssl context was implemented this way:

<camel:sslContextParameters id="sslContextParameters"> <camel:keyManagers
keyPassword="keyPassword"> <camel:keyStore resource=
"/users/home/server/keystore.jks" password="keystorePassword"/> </
camel:keyManagers> </camel:sslContextParameters>

with camel security protocol TLS1.2

It was working with proxy (proxy without proxy authentication)details
earlier. but when i introduce proxyAuthUsername and ProxyAuthPassword i am
having 401 error.

following below post in stackover flow, I tried replacing camel-http4 with
camel-http but it is not recognizing the sslcertificates. ( getting PKIK
invalid certificates to target, actually the certs are valid, looks like
camel-http the sslcontext is getting ignored

*version i am using: 2.10.0.redhat-60024*

https://stackoverflow.com/questions/42629981/camel-http4-using-basic-auth-and-proxy-auth



could you please help to resolve this problem.

Thanks.

Best Regards,
Sriphani Maddimsetti


<http://www.avg.com/email-signature?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail>
Virus-free.
www.avg.com
<http://www.avg.com/email-signature?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail>
<#m_7946843807326937234_DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>