From aeba732ba576c03fee22d5261411e7bc399c1893 Mon Sep 17 00:00:00 2001 From: Luke Taylor Date: Sun, 27 Jan 2008 20:42:10 +0000 Subject: [PATCH] SEC-647: Created separate "certificates" directory so SSL certificates and keys can be shared between different sample applications. Added key for user "scott" and separate certificate authority pem file (can be installed in a browser). --- samples/certificates/Readme.txt | 10 ++++++++ samples/certificates/ca.pem | 22 ++++++++++++++++++ samples/{tutorial => certificates}/dianne.p12 | Bin samples/{tutorial => certificates}/rod.p12 | Bin samples/certificates/scott.p12 | Bin 0 -> 1768 bytes samples/{tutorial => certificates}/server.jks | Bin samples/tutorial/pom.xml | 4 ++-- 7 files changed, 34 insertions(+), 2 deletions(-) create mode 100644 samples/certificates/Readme.txt create mode 100644 samples/certificates/ca.pem rename samples/{tutorial => certificates}/dianne.p12 (100%) rename samples/{tutorial => certificates}/rod.p12 (100%) create mode 100644 samples/certificates/scott.p12 rename samples/{tutorial => certificates}/server.jks (100%) diff --git a/samples/certificates/Readme.txt b/samples/certificates/Readme.txt new file mode 100644 index 0000000000..64b415cf83 --- /dev/null +++ b/samples/certificates/Readme.txt @@ -0,0 +1,10 @@ +This directory contains certificates and keys for use with SSL in the sample applications. Certificates are issued by +our "Spring Security Test CA" certificate authority. + +ca.pem - the certificate authority's certificate. +server.jks - Java keystore containing the server certificate and privatekey. It Also contains the certificate authority + file and this is used as both keystore and truststore for they jetty server when running the samples with + the maven jetty plugin ("mvn jetty:run"). + +rod.p12, dianne.p12, scott.p12 are all certificate/key combinations for client authentication and can be installed in +your browser if you want to try out support for X.509 authentication. \ No newline at end of file diff --git a/samples/certificates/ca.pem b/samples/certificates/ca.pem new file mode 100644 index 0000000000..a5b52ca9d7 --- /dev/null +++ b/samples/certificates/ca.pem @@ -0,0 +1,22 @@ +-----BEGIN CERTIFICATE----- +MIIDojCCAoqgAwIBAgIEMKX1dzANBgkqhkiG9w0BAQUFADCBiTELMAkGA1UEBhMC +R0IxETAPBgNVBAgTCFNjb3RsYW5kMRAwD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+MKMEA/neshh/M/hWGNTFt77Hoa7pU9dv5RCWFvZPqsUgPrwGrmUvcmSDir3lSWQm +SuSED2LKVo+BFqwWS+jp49AR9b8B/Q== +-----END CERTIFICATE----- diff --git a/samples/tutorial/dianne.p12 b/samples/certificates/dianne.p12 similarity index 100% rename from samples/tutorial/dianne.p12 rename to samples/certificates/dianne.p12 diff --git a/samples/tutorial/rod.p12 b/samples/certificates/rod.p12 similarity index 100% rename from samples/tutorial/rod.p12 rename to samples/certificates/rod.p12 diff --git a/samples/certificates/scott.p12 b/samples/certificates/scott.p12 new file mode 100644 index 0000000000000000000000000000000000000000..f0a6357e730752bd6b2f05658ec8a1a85ade6de9 GIT binary patch literal 1768 zcmV@jf7w>$2!v?*0s;rnfPw}%uQ6CU(Nz)C_gUU@R@`pK{nk{#voCp;uha`md~4O@7hBjyQh3eo z2Dr>lsCwI_;J6Q9#e*Q-_2+&^`>0prztBJEvGhS1c`XtNV#hQTuC?S}RhFW4^~y*B zGgpJ+#R0=#oF0A<*-4I$xyyy&-M9;-oo<2b313{3rZTX}48q01?bD|PnrOk?fe`jn z_l_~K{O0pPH9tTM=eTSKvvoTn-f{ST$8AZdRaF9nV80a}RvM6@0ts#9CoR`k^0@Sh z<_tf3>whiFAMtPX(^GOeCDz3r`cDl-IXYFT#jDV;`W7i0#kMF@@&$0@?xH#ec23RAm&A2OB4P0< z@=z4KlB&fTb%svo>dJffN^0CR-3zA@$VY2+TFl>Vy_3o>~ zXkA|xn~hqiU>JpesBOi7R~2s-8P+**;kfW?XbWQHMh^z(FT?3GQ4LBzlh%tIMtWFo zG#Er$LwKuC)OQztsIN3W z8v1+Ad#ai{N?c%;l@v6&v6IC;KD4yUL=yCjguAc;DnA8`gCTH@C9!T+i19x;@!kG5 zebit)i6ut-TIo41YO|`MkA4y7#wsxs6S?70lQ8%f>(iX`bEZIeZEr7;`n74|=7Xj3 zJT~w61y-v&U?7RqM_O|_*;RPS8?|Q3Bcq3yo53=GM1CbtWl_p!n*#1 ztFk}3$cAyy7HC|5mVIt5(1{Wk*nddhl4G#5=b+?@URP3+(Iau3Iq8YsEntB-R@2;%w7^0OD<9G zzHa*RbCEssx#1=w*2Te1SxaxMahd}x?$pG_0XvvSYp*5>QK5GKuYcWCoE3YhIvVQN zlT7h+OxHdb-Pm-(-x&jr6J<77g$;-HJj-)COD)MSKaVx*zxDn{*?Daf7=f->R@b%e zjiy)c86OA)aNG^VHK~!e^eMG~`QHoGtzQr6g`X4N?bK4|@Qf1p+*g^eK+Un={OOl~ zO%x9HmFZ`_(N_5fPm+?;Ijlir02QE?-!F;}3aMvVbT07Sm){U{Ilz_LOI{q#3)5j? zIk%Dp?AO7AQ3%sfDqDqRwP}NB+5Ls(M@;Pn#=1)-e9^#f zFgY+GFbM_)D-Ht!8U+9Z6qH(bRzE1NLfB>#tCj=qGCB 8443 - server.jks + ../certificates/server.jks password password - server.jks + ../certificates/server.jks password true false