Skip to content

Commit

Permalink
Arrange for the default httpClient to ignore SSL certificates entirel…
Browse files Browse the repository at this point in the history
…y. This is per the Metadata IOP, but also means that it won't be fazed by either self-signed certificates or wildcard ones.
  • Loading branch information
iay committed Oct 26, 2012
1 parent 82406cc commit adbfc47
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion mdx/common-beans.xml
Original file line number Diff line number Diff line change
Expand Up @@ -374,12 +374,22 @@
*********************
-->

<!--
httpClientBuilder
Factory for the httpClient bean below.
-->
<bean id="httpClientBuilder"
class="net.shibboleth.utilities.java.support.httpclient.HttpClientBuilder"
p:connectionDisregardSslCertificate="true"
/>

<!--
httpClient
Common, basic, HTTP client for use with HTTP resources.
-->
<bean name="httpClient" class="org.apache.http.impl.client.DefaultHttpClient"/>
<bean id="httpClient" factory-bean="httpClientBuilder" factory-method="buildClient"/>

<!--
parserPool
Expand Down

0 comments on commit adbfc47

Please sign in to comment.