From 0b8cbae95b51b744d9779a1ed339277196482260 Mon Sep 17 00:00:00 2001 From: Adrian Likins Date: Tue, 12 Jan 2010 13:50:42 -0500 Subject: Add annotations for Attribute class Add a test case for Attribute Make Product and EntitlementPool use the Attribute class --- proxy/src/test/resources/certs/certificates.readme | 22 +++ proxy/src/test/resources/certs/rest_api_test.jks | Bin 0 -> 2001 bytes .../src/test/resources/certs/rest_client_test.p12 | Bin 0 -> 1840 bytes proxy/src/test/resources/certs/server.xml | 147 +++++++++++++++++++++ 4 files changed, 169 insertions(+) create mode 100644 proxy/src/test/resources/certs/certificates.readme create mode 100644 proxy/src/test/resources/certs/rest_api_test.jks create mode 100644 proxy/src/test/resources/certs/rest_client_test.p12 create mode 100644 proxy/src/test/resources/certs/server.xml (limited to 'proxy/src/test/resources/certs') diff --git a/proxy/src/test/resources/certs/certificates.readme b/proxy/src/test/resources/certs/certificates.readme new file mode 100644 index 0000000..0039145 --- /dev/null +++ b/proxy/src/test/resources/certs/certificates.readme @@ -0,0 +1,22 @@ +to generate certificates: + +keytool -genkeypair -alias servercert -keyalg RSA -dname "CN=Web Server,OU=Unit,O=Organization,L=City,S=State,C=US" -keypass password -keystore server.jks -storepass password +keytool -genkeypair -alias clientcert -keystore clientcert.p12 -storetype pkcs12 -keyalg RSA -dname "CN=Client,OU=Unit,O=Organization,L=City,S=State,C=US" -keypass password -storepass password +keytool -exportcert -alias %1 -file clientcert.cer -keystore clientcert.p12 -storetype pkcs12 -storepass password +keytool -importcert -keystore server.jks -alias clientcert -file clientcert.cer -v -trustcacerts -noprompt -storepass password + +tomcat connector configuration: + + + +install client certificate into your browser of choice, and you should be good to go! \ No newline at end of file diff --git a/proxy/src/test/resources/certs/rest_api_test.jks b/proxy/src/test/resources/certs/rest_api_test.jks new file mode 100644 index 0000000..b055808 Binary files /dev/null and b/proxy/src/test/resources/certs/rest_api_test.jks differ diff --git a/proxy/src/test/resources/certs/rest_client_test.p12 b/proxy/src/test/resources/certs/rest_client_test.p12 new file mode 100644 index 0000000..f2d100e Binary files /dev/null and b/proxy/src/test/resources/certs/rest_client_test.p12 differ diff --git a/proxy/src/test/resources/certs/server.xml b/proxy/src/test/resources/certs/server.xml new file mode 100644 index 0000000..85ab0e1 --- /dev/null +++ b/proxy/src/test/resources/certs/server.xml @@ -0,0 +1,147 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file -- cgit