Skip to content

Commit

Permalink
Merge pull request #29 from adamhurwitz/master
Browse files Browse the repository at this point in the history
doc changes for ignoreSSLIssues
  • Loading branch information
jgritman committed May 8, 2014
2 parents 2aa6f90 + d6b3e55 commit 3cb29e9
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 1 deletion.
15 changes: 14 additions & 1 deletion src/site/apt/doc/ssl.apt
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
SSL Configuration

SSL should, for the most part, "just work." There are a few situations where
it is not completely intuitive. You can follow the example below, or see HttpClient's
it is not completely intuitive. You can follow the examples below, or see HttpClient's
{{{http://hc.apache.org/httpcomponents-client-ga/httpclient/apidocs/org/apache/http/conn/ssl/SSLSocketFactory.html}SSLSocketFactory documentation}}
for more information.

Expand Down Expand Up @@ -62,3 +62,16 @@ Certificate was added to keystore

%{code-snippet|id=ssl1|brush=groovy|file=src/site/examples.txt}



* ignoreSSLIssues

Alternatively there is a convenience method to ignore SSL issues that arise from
untrusted certificates as well as hostname mismatches. This method is ideally suited
for dev and test situations where strict SSL usage is too time-consuming to configure.

%{code-snippet|id=ssl2|brush=groovy|file=src/site/examples.txt}




7 changes: 7 additions & 0 deletions src/site/examples.txt
Original file line number Diff line number Diff line change
Expand Up @@ -474,6 +474,12 @@ def status = http.request( HEAD ) {
}
END SNIPPET: ssl1

START SNIPPET: ssl2
http = new HTTPBuilder("some default path")
http.ignoreSSLIssues()

END SNIPPET: ssl2

START SNIPPET: contenttype1
import au.com.bytecode.opencsv.CSVReader
import groovyx.net.http.ParserRegistry
Expand Down Expand Up @@ -664,3 +670,4 @@ START SNIPPET: download4
</resolvers>
</ivysettings>
END SNIPPET: download4

0 comments on commit 3cb29e9

Please sign in to comment.