create a useable test certificate for an end user. webid-java6
authorHenry Story <henry.story@bblfish.net>
Wed, 23 May 2012 16:04:30 +0200
branchwebid-java6
changeset 208 f5296aa510e8
parent 207 c2247e08cf5b
child 209 85a63edddca9
create a useable test certificate for an end user.
src/test/resources/JohnDoe.p12
src/test/resources/JohnDoe.pem
test_www/foaf.n3
Binary file src/test/resources/JohnDoe.p12 has changed
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/src/test/resources/JohnDoe.pem	Wed May 23 16:04:30 2012 +0200
@@ -0,0 +1,59 @@
+Bag Attributes
+    friendlyName: John Doe
+    localKeyID: AC 40 B2 E2 CB FA BA 99 31 19 84 48 C6 2A 9C 6A F9 2F BD 3E 
+subject=/C=FR/CN=John Doe/[email protected]
+issuer=/C=FR/ST=Essonne/O=MyProfile/OU=MyProfile/CN=MyProfile
+-----BEGIN CERTIFICATE-----
+MIIDWzCCAsSgAwIBAgIJAP/V3sbj4N55MA0GCSqGSIb3DQEBBQUAMFsxCzAJBgNV
+BAYTAkZSMRAwDgYDVQQIEwdFc3Nvbm5lMRIwEAYDVQQKEwlNeVByb2ZpbGUxEjAQ
+BgNVBAsTCU15UHJvZmlsZTESMBAGA1UEAxMJTXlQcm9maWxlMB4XDTEyMDUyMzEy
+NTc1MloXDTIyMDUyMTEyNTc1MlowPjELMAkGA1UEBhMCRlIxETAPBgNVBAMTCEpv
+aG4gRG9lMRwwGgYJKoZIhvcNAQkBFg1qb2VAbG9jYWxob3N0MIIBIjANBgkqhkiG
+9w0BAQEFAAOCAQ8AMIIBCgKCAQEArYdRrO4yBLcoXS5Rnl75d09+NOTlBQChocJ1
+KUjHpLKFBy2T0BLWRTtb8XCnDBDvPWRIIoYJmhJ3ESg+VO7hzxyOGq+iIzrSnK0d
+FnezTB9F6i8pblIkI3d/1LRj2SLeXwFnEa3CQXfkdV4nuk+xeKHEtGiYRXY+bWwt
+MqX/7d+fX625yOLnsqfobWxmQtWujZ/HqCxXrAzXW3l8g4bcsiPmupODWKsxrN3z
+W+6l/F6WWs9wXdhIdAw9F3cgAUGd/KWnZy4p2voTDS03957SYqWMmLXzFycE1z0M
+kej2uwRsfWI/5r4bVhmflr+frFWWB6AUReEZhhhDNlkgnPTJGQIDAQABo4G/MIG8
+MAkGA1UdEwQCMAAwLAYJYIZIAYb4QgENBB8WHU9wZW5TU0wgR2VuZXJhdGVkIENl
+cnRpZmljYXRlMB0GA1UdDgQWBBSsQLLiy/q6mTEZhEjGKpxq+S+9PjAfBgNVHSME
+GDAWgBSmauM8jjh5l4t3jIf1SW5ry65FATBBBgNVHREEOjA4gQ1qb2VAbG9jYWxo
+b3N0hidodHRwczovL2xvY2FsaG9zdDo4NDQzLzIwMTIvZm9hZi5uMyNqb2UwDQYJ
+KoZIhvcNAQEFBQADgYEAU2i3OjgGR4N3HAObVXjDc6h+2iCk44ylzx5Fg+tLJyqt
+iUQL4XBKiaj87kxTNBNASXlm68WKXJmU8de48Zla5sdhGxNuGIxSphVTjCYbx/aY
+0l3p/Z1OcbI4EPqvFnYtpE3xdWF2q+UMQr6jea/sLRXORN2HKz8q3GITW04DPvU=
+-----END CERTIFICATE-----
+Bag Attributes
+    friendlyName: my-profile.eu
+    localKeyID: AC 40 B2 E2 CB FA BA 99 31 19 84 48 C6 2A 9C 6A F9 2F BD 3E 
+Key Attributes: <No Attributes>
+-----BEGIN ENCRYPTED PRIVATE KEY-----
+MIIFDjBABgkqhkiG9w0BBQ0wMzAbBgkqhkiG9w0BBQwwDgQI3ku0QwonlvMCAggA
+MBQGCCqGSIb3DQMHBAgisb41zYBv7QSCBMhCSN32ZMnGMcUl2QUQ/vjUANl39p9Y
+36Er/+h4rjCTO4oQP+jcO1NonY8BDh+sinFfSrtkj59IYewhCGOUjAdpDhQyyTDe
+BMbYcT+yzcPZB0EaIPbHgBFdlvhesuXXiL8J3IOYl6TvnO2+uaO6O5JYhFq3Pfjg
+OLtM3NXTbvxgyNr37MtjmTSSEMkHpRR9iuYW23YzkS1lp2Kbm6R8dFt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Y7mx4EWSgDl8ixOYNC+PifJRyk0aq6AP3FXVRgm9igAo9aMc8e3p+cn7fdGj18v
+lrl66DTLlClxJKNPrVJQyONj57EMSachia5inZiQ24mFJ0+c0cY975DiCLmfOTjB
++6JP7Dk0rQ8Lnu+sJ3nu7rww6YJJtWhBi54ogj4+dVspB/O7qyAijQqmuIqhvJp4
+m59T2UzsGvx316j4gFquUCpbauu/L2TKI91CNHQ7sobJJnHKrFZokBvlggka/26F
+1Tma7RJPowGoP/bgWPw05zjnZMsDrRIx2NFZqhAQbRY+YVesal8eKONoHcrhD9Z1
+g0eZOUCNKTrrQDagU9hco0zpnPcEkJdIgdB19TuVkVd0VEYmUI/aIQhfX/xHjF2C
+bDc=
+-----END ENCRYPTED PRIVATE KEY-----
--- a/test_www/foaf.n3	Wed May 23 16:02:27 2012 +0200
+++ b/test_www/foaf.n3	Wed May 23 16:04:30 2012 +0200
@@ -1,4 +1,6 @@
 @prefix foaf: <http://xmlns.com/foaf/0.1/> .
[email protected] cert: <http://www.w3.org/ns/auth/cert#> .
[email protected] rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
 @prefix : <#> .
 
 <> a foaf:PersonalProfileDocument;
@@ -6,4 +8,9 @@
 
 :joe a foaf:Person;
     foaf:name "John Doe";
-    foaf:knows <http://bblfish.net/people/henry/card#me> .
+    foaf:knows <http://bblfish.net/people/henry/card#me> ;
+    cert:key [ 
+        rdfs:comment "create using https://my-profile.eu/certgen.php on 23 May 2012";
+        cert:modulus "ad8751acee3204b7285d2e519e5ef9774f7e34e4e50500a1a1c2752948c7a4b285072d93d012d6453b5bf170a70c10ef3d64482286099a127711283e54eee1cf1c8e1aafa2233ad29cad1d1677b34c1f45ea2f296e522423777fd4b463d922de5f016711adc24177e4755e27ba4fb178a1c4b4689845763e6d6c2d32a5ffeddf9f5fadb9c8e2e7b2a7e86d6c6642d5ae8d9fc7a82c57ac0cd75b797c8386dcb223e6ba938358ab31acddf35beea5fc5e965acf705dd848740c3d17772001419dfca5a7672e29dafa130d2d37f79ed262a58c98b5f3172704d73d0c91e8f6bb046c7d623fe6be1b56199f96bf9fac559607a01445e1198618433659209cf4c919"^^xsd:hexBinary;
+       cert:exponent 65537
+    ] .