Skip to content

Commit

Permalink
doc changes for ignoreSSLIssues
Browse files Browse the repository at this point in the history
  • Loading branch information
adamhurwitz committed Mar 28, 2014
1 parent 2aa6f90 commit d6b3e55
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 d6b3e55

Please sign in to comment.