forked from bcgit/bc-java
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathGnuTLSSetup.html
30 lines (27 loc) · 1.22 KB
/
GnuTLSSetup.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<body>
<h3>Instructions for setting up a GnuTLS server for use with DTLSClientTest, TlsClientTest.</h3>
<ul>
<li> Download GnuTLS from http://www.gnutls.org/download.html
<li> Unpack to folder and add ${GNUTLS_HOME}/bin to PATH
<li> Make a working folder somewhere and copy the x509-*.pem from this package (in src/test/resources) to there.
<li> Go to working folder and start GnuTLS server (defaults to port 5556):
<ul>
<li>TLS:
<pre>
gnutls-serv --http --x509cafile x509-ca-rsa.pem --x509keyfile x509-server-key-rsa-sign.pem --x509certfile x509-server-rsa-sign.pem
</pre>
</li>
<li> DTLS:
<pre>
gnutls-serv --echo --udp --mtu 1500 --x509cafile x509-ca-rsa.pem --x509keyfile x509-server-key-rsa-sign.pem --x509certfile x509-server-rsa-sign.pem
</pre>
</li>
</ul>
</li>
</ul>
<p> Further information in GnuTLS documentation at <a href="http://www.gnutls.org/documentation.html">http://www.gnutls.org/documentation.html</a> see "7.2. Invoking gnutls-serv", section titled "gnutls-serv Examples" if you want to generate your own keys and certificates.</p>
</body>
</html>