Skip to content

Commit abb52b8

Browse files
committed
Prerelease fix
1 parent c201225 commit abb52b8

6 files changed

Lines changed: 36 additions & 8 deletions

File tree

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
plugins {
2-
id 'net.researchgate.release' version '2.6.0'
2+
id 'net.researchgate.release' version '2.8.1'
33
id "de.undercouch.download" version "3.4.2"
44
id "com.github.hierynomus.license" version "0.14.0"
55
id 'com.github.ben-manes.versions' version '0.14.0'

docs/conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
author = u'SpectoLabs'
2020

2121

22-
version = '0.12.3'
22+
version = '0.13.0'
2323
# The full version, including alpha/beta/rc tags.
2424
release = version
2525

docs/pages/corefunctionality/configuration.rst

Lines changed: 31 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -117,19 +117,45 @@ SSL
117117
---
118118

119119
When requests pass through Hoverfly, it needs to decrypt them in order for it to persist them to a database, or to perform matching. So you end up with SSL between Hoverfly and
120-
the external service, and then SSL again between your client and Hoverfly. To get this to work, Hoverfly comes with it's own self-signed certificate which has to be trusted by
121-
your client. To avoid the pain of configuring your keystore, Hoverfly's certificate is trusted automatically when you instantiate it.
120+
the external service, and then SSL again between your client and Hoverfly. To get this to work, Hoverfly comes with it's own CA certificate which has to be trusted by
121+
your client. To avoid the pain of configuring your keystore, Hoverfly's certificate is trusted automatically when you instantiate it.
122122

123-
Alternatively, you can override the default SSL certificate by providing your own certificate and key files via the ``HoverflyConfig`` object, for example:
123+
Alternatively, you can override the default CA certificate by providing your own certificate and key files via the ``HoverflyConfig`` object, for example:
124124

125125
.. code-block:: java
126126
127127
localConfigs()
128-
.sslCertificatePath("ssl/ca.crt")
129-
.sslKeyPath("ssl/ca.key");
128+
.overrideDefaultCaCert("ssl/ca.crt", "ssl/ca.key");
130129
131130
The input to these config options should be the file path relative to the classpath. Any PEM encoded certificate and key files are supported.
132131

132+
Mutual TLS authentication
133+
-------------------------
134+
135+
For two-way or mutual SSL authentication, you can provide Hoverfly with a client certificate and a certificate key that you use to authenticate with the remote server.
136+
137+
.. code-block:: java
138+
139+
localConfigs()
140+
.enableClientAuth("ssl/client-auth.crt", "ssl/client-auth.key");
141+
142+
The input to these config options should be the file path relative to the classpath. Any PEM encoded certificate and key files are supported.
143+
144+
You can enable Mutual TLS for specific hosts, for example:
145+
146+
.. code-block:: java
147+
148+
localConfigs()
149+
.enableClientAuth("ssl/client-auth.crt", "ssl/client-auth.key", "foo.com", "bar.com");
150+
151+
You can also provide a client CA cert:
152+
153+
.. code-block:: java
154+
155+
localConfigs()
156+
.enableClientAuth("ssl/client-auth.crt", "ssl/client-auth.key")
157+
.clientAuthCaCertPath("ssl/client-ca.crt");
158+
133159
134160
Simulation Preprocessor
135161
-----------------------

junit5/gradle.properties

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
1+
version=0.12.4-SNAPSHOT
12
title=Hoverfly Java JUnit5
23
description=JUnit 5 extension for Hoverfly-Java

maven-release.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ if [[ "${PROJECT_VERSION[0]}" == *"SNAPSHOT" ]]; then
1717

1818
if [ "${IS_RELEASE}" = true ]; then
1919
echo "Performing a release"
20-
./gradlew :release -Prelease.releaseVersion=${RELEASE_VERSION} -Prelease.newVersion=${NEXT_DEV_VERSION} -x :junit5:createReleaseTag
20+
./gradlew :release -Prelease.releaseVersion=${RELEASE_VERSION} -Prelease.newVersion=${NEXT_DEV_VERSION} -x :junit5:createReleaseTag -x :testng:createReleaseTag
2121
else
2222
echo "Deploying snapshot version"
2323
./gradlew uploadArchives

testng/gradle.properties

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
1+
version=0.12.4-SNAPSHOT
12
title=Hoverfly Java TestNg
23
description=TestNg extension for Hoverfly-Java

0 commit comments

Comments
 (0)