Add api samples to Certificates extension

Change-Id: Ifb61c9cd90f03225c27b5683e5f54f30c636994c
This commit is contained in:
Mauro S. M. Rodrigues 2012-10-01 15:18:33 -04:00 committed by Vishvananda Ishaya
parent 8d676a1096
commit 54c8d5a98b
6 changed files with 16 additions and 0 deletions

View File

@ -0,0 +1,6 @@
{
"certificate": {
"data": "Certificate:\n Data:\n Version: 1 (0x0)\n Serial Number: 23 (0x17)\n Signature Algorithm: md5WithRSAEncryption\n Issuer: O=NOVA ROOT, L=Mountain View, ST=California, C=US\n Validity\n Not Before: Oct 2 19:31:45 2012 GMT\n Not After : Oct 2 19:31:45 2013 GMT\n Subject: C=US, ST=California, O=OpenStack, OU=NovaDev, CN=openstack-fake-2012-10-02T19:31:45Z\n Subject Public Key Info:\n Public Key Algorithm: rsaEncryption\n RSA Public Key: (1024 bit)\n Modulus (1024 bit):\n 00:b8:87:67:7a:de:28:ed:f6:5d:1f:20:14:58:df:\n b0:f7:62:3d:85:61:a8:c2:31:49:5f:b5:2a:07:34:\n 0e:25:13:0d:2e:4d:79:c7:26:36:dd:d2:3e:c7:36:\n 54:80:0d:67:80:32:e6:a8:48:33:69:ec:22:2c:5c:\n cb:7a:88:0f:c0:48:de:67:14:54:d9:94:b4:6a:23:\n 36:28:23:44:47:8a:24:89:8e:f4:86:77:59:f8:62:\n b6:ab:d5:e0:bc:b4:ad:d1:95:dd:59:a3:aa:e3:ea:\n d3:ae:23:17:c5:54:96:a3:25:56:72:90:20:07:8c:\n 63:4d:be:e9:60:7e:10:57:17\n Exponent: 65537 (0x10001)\n Signature Algorithm: md5WithRSAEncryption\n 32:82:ff:8b:92:0e:8d:9c:6b:ce:7e:fe:34:16:2a:4c:47:4f:\n c7:28:a2:33:1e:48:56:2e:4b:e8:e8:e3:48:b1:3d:a3:43:21:\n ef:83:e7:df:e2:10:91:7e:9a:c0:4d:1e:96:68:2b:b9:f7:84:\n 7f:ec:84:8a:bf:bc:5e:50:05:d9:ce:4a:1a:bf:d2:bf:0c:d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VJajJVZykCAHjGNNvulgfhBXFwIDAQAB&#10;AoGBAIjfxx4YU/vO1lwUC4OwyS92q3OYcPk6XdakJryZHDTb4NcLmNzjt6bqIK7b&#10;2enyB2fMWdNRWvGiueZ2HmiRLDyOGsAVdEsHvL4qbr9EZGTqC8Qxx+zTevWWf6pB&#10;F1zxzbXNQDFZDf9kVsSLCkbMHITnW1k4MrM++9gfCO3WrfehAkEA4nd8TyCCZazq&#10;KMOQwFLTNaiVLeTXCtvGopl4ZNiKYZ1qI3KDXb2wbAyArFuERlotxFlylXpwtlMo&#10;SlI/C/sYqwJBANCX1sdfRJq8DpdP44ThWqOkWFLB9rBiwyyBt8746fX8amwr8eyz&#10;H44/z5GT/Vyp8qFsjkuDzeP93eeDnr2qE0UCP1zipRnPO6x4P5J4o+Y+EmLvwkAQ&#10;nCLYAaCvUbILHrbq2Z2wWjEYnEO03RHUd2xjkGH4TgcBMTmW4e+ZzEIduwJACnIw&#10;LVfWBbG5QVac3EC021EVoz9XbUnk4Eu2usS4Yrs7USN6QBJQWD1V1cKFg6h3ICJh&#10;leKJ4wsJm9h5kKH9yQJBAN8CaX223MlTSuBOVuIOwNA+09iLfx4UCLiH1fGMKDpe&#10;xVcmkM3qCnTqNxrAPSFdT9IyB3IXiaLWbvzl7MfiOwQ=&#10;-----END RSA PRIVATE KEY-----&#10;" data="Certificate:&#10; Data:&#10; Version: 1 (0x0)&#10; Serial Number: 23 (0x17)&#10; Signature Algorithm: md5WithRSAEncryption&#10; Issuer: O=NOVA ROOT, L=Mountain View, ST=California, C=US&#10; Validity&#10; Not Before: Oct 2 19:31:45 2012 GMT&#10; Not After : Oct 2 19:31:45 2013 GMT&#10; Subject: C=US, ST=California, O=OpenStack, OU=NovaDev, CN=openstack-fake-2012-10-02T19:31:45Z&#10; Subject Public Key Info:&#10; Public Key Algorithm: rsaEncryption&#10; RSA Public Key: (1024 bit)&#10; Modulus (1024 bit):&#10; 00:b8:87:67:7a:de:28:ed:f6:5d:1f:20:14:58:df:&#10; b0:f7:62:3d:85:61:a8:c2:31:49:5f:b5:2a:07:34:&#10; 0e:25:13:0d:2e:4d:79:c7:26:36:dd:d2:3e:c7:36:&#10; 54:80:0d:67:80:32:e6:a8:48:33:69:ec:22:2c:5c:&#10; cb:7a:88:0f:c0:48:de:67:14:54:d9:94:b4:6a:23:&#10; 36:28:23:44:47:8a:24:89:8e:f4:86:77:59:f8:62:&#10; b6:ab:d5:e0:bc:b4:ad:d1:95:dd:59:a3:aa:e3:ea:&#10; d3:ae:23:17:c5:54:96:a3:25:56:72:90:20:07:8c:&#10; 63:4d:be:e9:60:7e:10:57:17&#10; Exponent: 65537 (0x10001)&#10; Signature Algorithm: md5WithRSAEncryption&#10; 32:82:ff:8b:92:0e:8d:9c:6b:ce:7e:fe:34:16:2a:4c:47:4f:&#10; c7:28:a2:33:1e:48:56:2e:4b:e8:e8:e3:48:b1:3d:a3:43:21:&#10; ef:83:e7:df:e2:10:91:7e:9a:c0:4d:1e:96:68:2b:b9:f7:84:&#10; 7f:ec:84:8a:bf:bc:5e:50:05:d9:ce:4a:1a:bf:d2:bf:0c:d1:&#10; 7e:ec:64:c3:a5:37:78:a3:a6:2b:a1:b7:1c:cc:c8:b9:78:61:&#10; 98:50:3c:e6:28:34:f1:0e:62:bb:b5:d7:a1:dd:1f:38:c6:0d:&#10; 58:9f:81:67:ff:9c:32:fc:52:7e:6d:8c:91:43:49:fe:e3:48:&#10; bb:40&#10;-----BEGIN CERTIFICATE-----&#10;MIICMzCCAZwCARcwDQYJKoZIhvcNAQEEBQAwTjESMBAGA1UEChMJTk9WQSBST09U&#10;MRYwFAYDVQQHEw1Nb3VudGFpbiBWaWV3MRMwEQYDVQQIEwpDYWxpZm9ybmlhMQsw&#10;CQYDVQQGEwJVUzAeFw0xMjEwMDIxOTMxNDVaFw0xMzEwMDIxOTMxNDVaMHYxCzAJ&#10;BgNVBAYTAlVTMRMwEQYDVQQIEwpDYWxpZm9ybmlhMRIwEAYDVQQKEwlPcGVu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65yCSbUc4R2ea5H\nIK4wQIui0CJykvMBNjAe3bzztVVs8/ccDTsjtqq3F/KeQkKzQVfSWBrJSmYtG5tO\nG+dOSwIDAQABo4GwMIGtMAwGA1UdEwQFMAMBAf8wHQYDVR0OBBYEFCljRfaNOsA/\n9mHuq0io7Lt83FtaMH4GA1UdIwR3MHWAFCljRfaNOsA/9mHuq0io7Lt83FtaoVKk\nUDBOMRIwEAYDVQQKEwlOT1ZBIFJPT1QxFjAUBgNVBAcTDU1vdW50YWluIFZpZXcx\nEzARBgNVBAgTCkNhbGlmb3JuaWExCzAJBgNVBAYTAlVTggkAgn9SgVYqg5QwDQYJ\nKoZIhvcNAQEEBQADgYEAEbpJOOlpKCh5omwfAwAfFg1ml4h/FJiCH3PETmOCc+3l\nCtWTBd4MG8AoH7A3PU2JKAGVQ5XWo6+ihpW1RgfQpCnloI6vIeGcws+rSLnlzULt\nIvfCJpRg7iQdR3jZGt3295behtP1GsCqipJEulOkOaEIs8iLlXgSOG94Mkwlb4Q=\n-----END CERTIFICATE-----\n",
"private_key": null
}
}

View File

@ -0,0 +1,2 @@
<?xml version='1.0' encoding='UTF-8'?>
<certificate private_key="None" data="-----BEGIN CERTIFICATE-----&#10;MIICyzCCAjSgAwIBAgIJAIJ/UoFWKoOUMA0GCSqGSIb3DQEBBAUAME4xEjAQBgNV&#10;BAoTCU5PVkEgUk9PVDEWMBQGA1UEBxMNTW91bnRhaW4gVmlldzETMBEGA1UECBMK&#10;Q2FsaWZvcm5pYTELMAkGA1UEBhMCVVMwHhcNMTIxMDAyMTg1NzQ1WhcNMTMxMDAy&#10;MTg1NzQ1WjBOMRIwEAYDVQQKEwlOT1ZBIFJPT1QxFjAUBgNVBAcTDU1vdW50YWlu&#10;IFZpZXcxEzARBgNVBAgTCkNhbGlmb3JuaWExCzAJBgNVBAYTAlVTMIGfMA0GCSqG&#10;SIb3DQEBAQUAA4GNADCBiQKBgQCg0Bn8WSqbJF3QNTZUxo1TzmFBxuqvhjZLKbnQ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