aboutsummaryrefslogtreecommitdiffstats
path: root/libraries/spongycastle/core/src/test/java/org/spongycastle/crypto/tls/test/GnuTLSSetup.txt
diff options
context:
space:
mode:
Diffstat (limited to 'libraries/spongycastle/core/src/test/java/org/spongycastle/crypto/tls/test/GnuTLSSetup.txt')
-rw-r--r--libraries/spongycastle/core/src/test/java/org/spongycastle/crypto/tls/test/GnuTLSSetup.txt18
1 files changed, 18 insertions, 0 deletions
diff --git a/libraries/spongycastle/core/src/test/java/org/spongycastle/crypto/tls/test/GnuTLSSetup.txt b/libraries/spongycastle/core/src/test/java/org/spongycastle/crypto/tls/test/GnuTLSSetup.txt
new file mode 100644
index 000000000..62c595094
--- /dev/null
+++ b/libraries/spongycastle/core/src/test/java/org/spongycastle/crypto/tls/test/GnuTLSSetup.txt
@@ -0,0 +1,18 @@
+-----------------------------------------------------------------------
+Instructions for setting up a GnuTLS server for use with DTLSClientTest
+-----------------------------------------------------------------------
+
+- Download GnuTLS from http://www.gnutls.org/download.html
+
+- Unpack to folder and add ${GNUTLS_HOME}/bin to PATH
+
+- Make a working folder somewhere and copy the x509-*.pem from this package (in src/test/resources) to there.
+
+- Go to working folder and start GnuTLS server (defaults to port 5556):
+TLS:
+ gnutls-serv --http --x509cafile x509-ca.pem --x509keyfile x509-server-key.pem --x509certfile x509-server.pem
+DTLS:
+ gnutls-serv --echo --udp --mtu 1500 --x509cafile x509-ca.pem --x509keyfile x509-server-key.pem --x509certfile x509-server.pem
+
+- Further information in GnuTLS documentation at http://www.gnutls.org/documentation.html
+ see "7.2. Invoking gnutls-serv", section titled "gnutls-serv Examples" if you want to generate your own keys and certificates.