You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+20-6Lines changed: 20 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -52,9 +52,9 @@ The java-nats client is provided in a single jar file, with a single external de
52
52
53
53
### Downloading the Jar
54
54
55
-
You can download the latest jar at [https://search.maven.org/remotecontent?filepath=io/nats/jnats/2.6.5/jnats-2.6.5.jar](https://search.maven.org/remotecontent?filepath=io/nats/jnats/2.6.5/jnats-2.6.5.jar).
55
+
You can download the latest jar at [https://search.maven.org/remotecontent?filepath=io/nats/jnats/2.6.6/jnats-2.6.6.jar](https://search.maven.org/remotecontent?filepath=io/nats/jnats/2.6.6/jnats-2.6.6.jar).
56
56
57
-
The examples are available at [https://search.maven.org/remotecontent?filepath=io/nats/jnats/2.6.5/jnats-2.6.5-examples.jar](https://search.maven.org/remotecontent?filepath=io/nats/jnats/2.6.5/jnats-2.6.5-examples.jar).
57
+
The examples are available at [https://search.maven.org/remotecontent?filepath=io/nats/jnats/2.6.6/jnats-2.6.6-examples.jar](https://search.maven.org/remotecontent?filepath=io/nats/jnats/2.6.6/jnats-2.6.6-examples.jar).
58
58
59
59
To use NKeys, you will need the ed25519 library, which can be downloaded at [https://repo1.maven.org/maven2/net/i2p/crypto/eddsa/0.3.0/eddsa-0.3.0.jar](https://repo1.maven.org/maven2/net/i2p/crypto/eddsa/0.3.0/eddsa-0.3.0.jar).
60
60
@@ -64,7 +64,7 @@ The NATS client is available in the Maven central repository, and can be importe
64
64
65
65
```groovy
66
66
dependencies {
67
-
implementation 'io.nats:jnats:2.6.5'
67
+
implementation 'io.nats:jnats:2.6.6'
68
68
}
69
69
```
70
70
@@ -90,7 +90,7 @@ The NATS client is available on the Maven central repository, and can be importe
90
90
<dependency>
91
91
<groupId>io.nats</groupId>
92
92
<artifactId>jnats</artifactId>
93
-
<version>2.6.5</version>
93
+
<version>2.6.6</version>
94
94
</dependency>
95
95
```
96
96
@@ -226,15 +226,15 @@ NATS supports TLS 1.2. The server can be configured to verify client certificate
226
226
1.TheJava library allows the use of the tls:// protocol in its urls. This setting expects a default SSLContext to be set. You can set this default context using System properties, or in code. For example, you could run the publish example using:
227
227
228
228
```bash
229
-
java -Djavax.net.ssl.keyStore=src/test/resources/keystore.jks -Djavax.net.ssl.keyStorePassword=password -Djavax.net.ssl.trustStore=src/test/resources/cacerts-Djavax.net.ssl.trustStorePassword=password io.nats.examples.NatsPub tls://localhost:4443 test "hello world"
229
+
java -Djavax.net.ssl.keyStore=src/test/resources/keystore.jks -Djavax.net.ssl.keyStorePassword=password -Djavax.net.ssl.trustStore=src/test/resources/truststore.jks-Djavax.net.ssl.trustStorePassword=password io.nats.examples.NatsPub tls://localhost:4443 test "hello world"
@@ -401,6 +401,20 @@ which will create a folder called `build/reports/jacoco` containing the file `in
401
401
402
402
Many of the tests run nats-server on a custom port. If nats-server is in your path they should just work, but in cases where it is not, or an IDE running tests has issues with the path you can specify the nats-server location with the environment variable `nats_-_server_path`.
403
403
404
+
## TLS Certs
405
+
406
+
The raw TLS test certs are in [src/test/resources/certs](src/test/resources/certs) and come from the [nats.go](https://github.com/nats-io/nats.go) repository. However, the java client also needs a keystore and truststore.jks files for creating a context. These can be created using:
Copy file name to clipboardExpand all lines: src/examples/java/io/nats/examples/examples.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -30,7 +30,7 @@ To see how queues split messages, run the `NatsQSub` in multiple windows and the
30
30
A set of sample certificates are provided in the repo for testing. These use the highly secure password `password`. To run with the full client and trust default keystore you can use command line arguments to set System properties.
0 commit comments