From 7f675c7b004b8aa73b3044e8fa4de5d377d3188a Mon Sep 17 00:00:00 2001 From: Marnanel Thurman Date: Tue, 3 Oct 2023 15:58:50 +0100 Subject: [PATCH] Key pairs for testing. --- test/example-users/README.txt | 1 + test/example-users/fred.json | 48 +++++++++++++++++++++++++++++++ test/example-users/jim.json | 48 +++++++++++++++++++++++++++++++ test/example-users/private/fred | 15 ++++++++++ test/example-users/private/jim | 15 ++++++++++ test/example-users/private/sheila | 15 ++++++++++ test/example-users/sheila.json | 47 ++++++++++++++++++++++++++++++ 7 files changed, 189 insertions(+) create mode 100644 test/example-users/README.txt create mode 100644 test/example-users/fred.json create mode 100644 test/example-users/jim.json create mode 100644 test/example-users/private/fred create mode 100644 test/example-users/private/jim create mode 100644 test/example-users/private/sheila create mode 100644 test/example-users/sheila.json diff --git a/test/example-users/README.txt b/test/example-users/README.txt new file mode 100644 index 0000000..1229839 --- /dev/null +++ b/test/example-users/README.txt @@ -0,0 +1 @@ +These are public/private key pairs used in testing. diff --git a/test/example-users/fred.json b/test/example-users/fred.json new file mode 100644 index 0000000..da0e33b --- /dev/null +++ b/test/example-users/fred.json @@ -0,0 +1,48 @@ +{"@context":["https://www.w3.org/ns/activitystreams", +"https://w3id.org/security/v1", +{"manuallyApprovesFollowers":"as:manuallyApprovesFollowers", +"sensitive":"as:sensitive", +"movedTo":{"@id":"as:movedTo", +"@type":"@id"}, +"alsoKnownAs":{"@id":"as:alsoKnownAs", +"@type":"@id"}, +"Hashtag":"as:Hashtag", +"ostatus":"http://ostatus.org#", +"atomUri":"ostatus:atomUri", +"inReplyToAtomUri":"ostatus:inReplyToAtomUri", +"conversation":"ostatus:conversation", +"toot":"http://joinmastodon.org/ns#", +"Emoji":"toot:Emoji", +"focalPoint":{"@container":"@list", +"@id":"toot:focalPoint"}, +"featured":{"@id":"toot:featured", +"@type":"@id"}, +"schema":"http://schema.org#", +"PropertyValue":"schema:PropertyValue", +"value":"schema:value"}], +"id":"https://local.example.org/users/fred", +"type":"Person", +"following":"https://local.example.org/users/fred/following", +"followers":"https://local.example.org/users/fred/followers", +"inbox":"https://local.example.org/users/fred/inbox", +"outbox":"https://local.example.org/users/fred/outbox", +"featured":"https://local.example.org/users/fred/collections/featured", +"preferredUsername":"fred", +"name":"", +"summary":"I am not a basset hound.", +"url":"https://local.example.org/@fred", +"manuallyApprovesFollowers":false, +"publicKey":{"id":"https://local.example.org/users/fred#main-key", +"owner":"https://local.example.org/users/fred", +"publicKeyPem":"-----BEGIN PUBLIC KEY-----\nMIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDJtAZt9hgB/7bNozWtv9Er+Pnf\num97oM8cxRlqRqUXZk0wuST9A0eY5EUsN8j3qc6msZjDPSDQELr/U/o+zJLp/B8s\n7x3iHAHGD4LcQ9AbyDqbhX9JZkmwGx6PIVmbMDANmppqLik36V7cov6BuHz1gFpD\nP+iPjem4mph/KLwugQIDAQAB\n-----END PUBLIC KEY-----\n" +}, +"tag":[], +"attachment":[], +"endpoints":{"sharedInbox":"https://local.example.org/inbox"}, +"icon":{"type":"Image", +"mediaType":"image/png", +"url":"https://body.local.example.org/media/accounts/avatars/000/015/322/original/data.png"}, +"image":{"type":"Image", +"mediaType":"image/png", +"url":"https://body.local.example.org/media/accounts/headers/000/015/322/original/data.png"} +} diff --git a/test/example-users/jim.json b/test/example-users/jim.json new file mode 100644 index 0000000..f55d233 --- /dev/null +++ b/test/example-users/jim.json @@ -0,0 +1,48 @@ +{"@context":["https://www.w3.org/ns/activitystreams", +"https://w3id.org/security/v1", +{"manuallyApprovesFollowers":"as:manuallyApprovesFollowers", +"sensitive":"as:sensitive", +"movedTo":{"@id":"as:movedTo", +"@type":"@id"}, +"alsoKnownAs":{"@id":"as:alsoKnownAs", +"@type":"@id"}, +"Hashtag":"as:Hashtag", +"ostatus":"http://ostatus.org#", +"atomUri":"ostatus:atomUri", +"inReplyToAtomUri":"ostatus:inReplyToAtomUri", +"conversation":"ostatus:conversation", +"toot":"http://joinmastodon.org/ns#", +"Emoji":"toot:Emoji", +"focalPoint":{"@container":"@list", +"@id":"toot:focalPoint"}, +"featured":{"@id":"toot:featured", +"@type":"@id"}, +"schema":"http://schema.org#", +"PropertyValue":"schema:PropertyValue", +"value":"schema:value"}], +"id":"https://local.example.org/users/jim", +"type":"Person", +"following":"https://local.example.org/users/jim/following", +"followers":"https://local.example.org/users/jim/followers", +"inbox":"https://local.example.org/users/jim/inbox", +"outbox":"https://local.example.org/users/jim/outbox", +"featured":"https://local.example.org/users/jim/collections/featured", +"preferredUsername":"jim", +"name":"", +"summary":"His friends were very good to him.", +"url":"https://local.example.org/@jim", +"manuallyApprovesFollowers":false, +"publicKey":{"id":"https://local.example.org/users/jim#main-key", +"owner":"https://local.example.org/users/jim", +"publicKeyPem":"-----BEGIN PUBLIC KEY-----\nMIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDPPJ6uNXzpocC9Z1rue3sgZl/W\nnYHjbtkfQCUpdV9lgmtbOgpZrQos5sIB5QxUx+yRAXmdSRsD2q1Kaeeew5T+pv3h\nJKH4XMNZd2mZf1KAuHjPFBjCRGMUwdEEozSy8ZpDAg+jQ2ro8E7wgZ+wsYatSLbQ\n9SIkceGWqxyhabyIqwIDAQAB\n-----END PUBLIC KEY-----\n" +}, +"tag":[], +"attachment":[], +"endpoints":{"sharedInbox":"https://local.example.org/inbox"}, +"icon":{"type":"Image", +"mediaType":"image/png", +"url":"https://body.local.example.org/media/accounts/avatars/000/015/322/original/data.png"}, +"image":{"type":"Image", +"mediaType":"image/png", +"url":"https://body.local.example.org/media/accounts/headers/000/015/322/original/data.png"} +} diff --git a/test/example-users/private/fred b/test/example-users/private/fred new file mode 100644 index 0000000..a13f08f --- /dev/null +++ b/test/example-users/private/fred @@ -0,0 +1,15 @@ +-----BEGIN RSA PRIVATE KEY----- +MIICXwIBAAKBgQDJtAZt9hgB/7bNozWtv9Er+Pnfum97oM8cxRlqRqUXZk0wuST9 +A0eY5EUsN8j3qc6msZjDPSDQELr/U/o+zJLp/B8s7x3iHAHGD4LcQ9AbyDqbhX9J +ZkmwGx6PIVmbMDANmppqLik36V7cov6BuHz1gFpDP+iPjem4mph/KLwugQIDAQAB +AoGBAI6sRaQAYCkBzTeWC8E0HmwhN/Z2NKdZL0clb/3JrLtphI5DWBOT/0/5n6hQ +aVouBdvJYcowcgZa3zr+FtPW9s9EKswd4M6VEg7Kb7yvd7iD+6Hl/KY5YkpRutJF +ZVBt20iJi3xi+5D0BvMImD3nE/Zl2MgAJWIBlRywfDOuKS7BAkEA4hIoq0RAbSgf +VBzzWucpZa4o2Ll35tG9X5zQSmEjWuuIxipsiwcuyHURTEG+45TU/AasyDTvqqm6 +HhG4Z9SpaQJBAORoAzTfuF6Z7I3THSDLQjqWiE10K0qSkrcPf7fMlTdzheQdhS5T +A4liwuAkpoRKxpvBw+OvCkgaqr34+Oqo4VkCQQC19kPBxofM1HSS8VJ3IoTRkOLT +vkTiBoPUx5VnqNQaRGasik0fgkKHmqK3rFuHNq5PxNehteoKhd6GgWDaQfOxAkEA +1KV9rsFGrlSR5qyRJtH11AQH3Ex2bZQuod39I0qF9b1I/0r4jltdJJBdLD8TBIF1 +jNeGH7j8Uor5QarFW/tk6QJBAMEYab7c1YTagny4nrKoddPfNyjUF2a7HNHTnCQn +rbOt963SPr1/dv602FwOzKHAWVw401PfaHWkclEROZTwwEc= +-----END RSA PRIVATE KEY----- \ No newline at end of file diff --git a/test/example-users/private/jim b/test/example-users/private/jim new file mode 100644 index 0000000..d873aba --- /dev/null +++ b/test/example-users/private/jim @@ -0,0 +1,15 @@ +-----BEGIN RSA PRIVATE KEY----- +MIICXgIBAAKBgQDPPJ6uNXzpocC9Z1rue3sgZl/WnYHjbtkfQCUpdV9lgmtbOgpZ +rQos5sIB5QxUx+yRAXmdSRsD2q1Kaeeew5T+pv3hJKH4XMNZd2mZf1KAuHjPFBjC +RGMUwdEEozSy8ZpDAg+jQ2ro8E7wgZ+wsYatSLbQ9SIkceGWqxyhabyIqwIDAQAB +AoGBAMMfZqDMh+JKhHlROVLWPOYSviYKg2Oq2RANi2/vrXScSYzJpzksLip80yqJ +iQTCgME/TEyFqsQEP6mS8ZyQtlUjoz8j6q/9TFvQrWWHRNgiD9bdXFQr0+F9kxr9 +hdm1h7F5Q0JTGCPwBmL8GXCO8KmbZUMejITNqsIxx3bvzUoRAkEA1Eul1Mwkb/6C +cBuG0TPfXwluWdzS37XY+ckuQqgA5Jhj+vQTWbGovA/99W5GHHWsHJwGwcqqJJet +c4slKN3GBwJBAPnmXpAO1NiQMlIVohTfjCusypsSiHJXocigJG/DeEuMIHUJebuH +r6M7D2ENk7xh/kr3qA6369WokYT+K5Bqnz0CQQDPvApUVUIeeNwoWTcuBOVBeNgL +hOKv16Cuo6bpwL3G8jt7OFSrAwZKqBdojvR6Ksc045RVEzw0PFuU4YaGG6UHAkBZ +Q9LvfnzFRuzSqWuWLSwyxawxrHMU9PyTX7DkQ1yLD+jgJZxYQmWY1xXtQx5Momxl +dwWPDF+vmGEysl/5XDy5AkEAwbbjj3YstPYPnBsAbI0XYHfXxu7aZ+bwPNtH48r3 +3YPAqM+HO0i2ffHjMJCYfbttWiRJRFVHyp3QO/Wtww4DQQ== +-----END RSA PRIVATE KEY----- \ No newline at end of file diff --git a/test/example-users/private/sheila b/test/example-users/private/sheila new file mode 100644 index 0000000..a63d7e8 --- /dev/null +++ b/test/example-users/private/sheila @@ -0,0 +1,15 @@ +-----BEGIN RSA PRIVATE KEY----- +MIICXAIBAAKBgQCsGqRZbZV2nljTOW2b77fzpkx9+iqcNgEnlhdgSIjCPvhzwj6c +b0O5RVqPu6krvv+Dgiy89Mb0nregdOstUXzn40Yicg1OOHMitrpAQ+4MsotqspfF +ZF/Q9qSFom3PxDA55lIHYJJmusVM6bSlrdY8msAsL1BieW7065gtjzv6RQIDAQAB +AoGACURx/yLIfpeuPsmD3na9GBCnY805yCmcTE5nudaODq+nX0xhZLkVE3/pjX3U +cTeauLEkyZQAtqFpT+mb1Ffj+t3exqK68k7UwCUI23Gtbr5dRUOivWuN75Sf4xFo +7vQeSwIot/1PyU7JYXZ9Tq9WMBHcFocCdxu85QSBS40cPIECQQC60bIlj+bN7fvU +HoPyQbj1vfjbz6vcoeR6v+YGCiSFrzawOEuJ1xUC7c/uivgJUvKumhrOFfwLac+1 +Zay2t7khAkEA69X4ft06mfVNo1oM8ly33CO5TKlpFlVPBxEdKMHyZ2ZO1vIK6DsF +N67YwYI9OoncTvBucZ+Dy2GU0xUeqtSopQJANhtnsjNUUI49onjYFEDutdW4jsk9 +6F/HEbokf9lOLJ3LhAw57Ikrn7aKw3biUakBeopNeySo5BFYRBxXgnABoQJBANlf +MVoNo1QAy/zCpahGWZlovASzKY9SNjM3TP8iNMGlhQmNswv2SorWeCd0Wec45n1E +EyhbdOjjGn+sucWPmZkCQD8ekBtzToRvNZjocFJhZdcWMIAo96XsnTAxREKSmbnG +pFHXBWokjDO/rTRbqANocLr0GwFR8UBD70CJLLOCaEg= +-----END RSA PRIVATE KEY----- \ No newline at end of file diff --git a/test/example-users/sheila.json b/test/example-users/sheila.json new file mode 100644 index 0000000..d51b212 --- /dev/null +++ b/test/example-users/sheila.json @@ -0,0 +1,47 @@ +{"@context":["https://www.w3.org/ns/activitystreams", +"https://w3id.org/security/v1", +{"manuallyApprovesFollowers":"as:manuallyApprovesFollowers", +"sensitive":"as:sensitive", +"movedTo":{"@id":"as:movedTo", +"@type":"@id"}, +"alsoKnownAs":{"@id":"as:alsoKnownAs", +"@type":"@id"}, +"Hashtag":"as:Hashtag", +"ostatus":"http://ostatus.org#", +"atomUri":"ostatus:atomUri", +"inReplyToAtomUri":"ostatus:inReplyToAtomUri", +"conversation":"ostatus:conversation", +"toot":"http://joinmastodon.org/ns#", +"Emoji":"toot:Emoji", +"focalPoint":{"@container":"@list", +"@id":"toot:focalPoint"}, +"featured":{"@id":"toot:featured", +"@type":"@id"}, +"schema":"http://schema.org#", +"PropertyValue":"schema:PropertyValue", +"value":"schema:value"}], +"id":"https://local.example.org/users/sheila", +"type":"Person", +"following":"https://local.example.org/users/sheila/following", +"followers":"https://local.example.org/users/sheila/followers", +"inbox":"https://local.example.org/users/sheila/inbox", +"outbox":"https://local.example.org/users/sheila/outbox", +"featured":"https://local.example.org/users/sheila/collections/featured", +"preferredUsername":"sheila", +"name":"", +"summary":"What do you think?", +"url":"https://local.example.org/@sheila", +"manuallyApprovesFollowers":false, +"publicKey":{"id":"https://local.example.org/users/sheila#main-key", +"owner":"https://local.example.org/users/sheila", +"publicKeyPem":"-----BEGIN PUBLIC KEY-----\nMIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCsGqRZbZV2nljTOW2b77fzpkx9\n+iqcNgEnlhdgSIjCPvhzwj6cb0O5RVqPu6krvv+Dgiy89Mb0nregdOstUXzn40Yi\ncg1OOHMitrpAQ+4MsotqspfFZF/Q9qSFom3PxDA55lIHYJJmusVM6bSlrdY8msAs\nL1BieW7065gtjzv6RQIDAQAB\n-----END PUBLIC KEY-----\n"}, +"tag":[], +"attachment":[], +"endpoints":{"sharedInbox":"https://local.example.org/inbox"}, +"icon":{"type":"Image", +"mediaType":"image/png", +"url":"https://body.local.example.org/media/accounts/avatars/000/015/322/original/data.png"}, +"image":{"type":"Image", +"mediaType":"image/png", +"url":"https://body.local.example.org/media/accounts/headers/000/015/322/original/data.png"} +}