diff --git a/samples/contacts/certificates/Readme.txt b/samples/contacts/certificates/Readme.txt new file mode 100644 index 0000000000..3be24dd61b --- /dev/null +++ b/samples/contacts/certificates/Readme.txt @@ -0,0 +1,38 @@ + +This directory contains some example certificates for the X.509 version of the contacts +application. They have all been generated using openssl with a demo certificate authority. +The password for all the files is "password" + +- marissa.p12 is a pkcs12 file containing the client certificate and private key for +the user marissa, and should be imported into your browser. + +- server.p12 is a pkcs12 file containing a server certificate and private key. + +- ca.jks is a java keystore file[1] containing the CA public certificate. This is used as +the trust store for the server to indicate which client certificates are valid. + +The app has been tested in JBoss 3.2.7 (Tomcat 5.0) using the following configuration for +the connector: + + + + +To try out the application, first get the server running with client authentication enabled. + + + + +[1] This was origially also a pkcs12 file. However I couldn't get tomcat to work with +it unless it contained the CA's private key as well as the certificate, which is obviously +not feasible. If anyone works out how to get Tomcat to work with a pkcs12 file containing +a single certificate, then please let me know. + +$Id$ diff --git a/samples/contacts/certificates/ca.jks b/samples/contacts/certificates/ca.jks new file mode 100644 index 0000000000..525c5ee3a3 Binary files /dev/null and b/samples/contacts/certificates/ca.jks differ diff --git a/samples/contacts/certificates/marissa.p12 b/samples/contacts/certificates/marissa.p12 new file mode 100644 index 0000000000..f210b80b4d Binary files /dev/null and b/samples/contacts/certificates/marissa.p12 differ diff --git a/samples/contacts/certificates/server.p12 b/samples/contacts/certificates/server.p12 new file mode 100644 index 0000000000..d5f6940f14 Binary files /dev/null and b/samples/contacts/certificates/server.p12 differ