geocerts 0.0.11
Sign up to get free protection for your applications and to get access to all the features.
- data/.document +5 -0
- data/.gitignore +6 -0
- data/LICENSE +20 -0
- data/README.rdoc +71 -0
- data/Rakefile +70 -0
- data/VERSION +1 -0
- data/autotest/discover.rb +39 -0
- data/geocerts.gemspec +144 -0
- data/lib/geo_certs.rb +57 -0
- data/lib/geo_certs/agreement.rb +18 -0
- data/lib/geo_certs/api.rb +29 -0
- data/lib/geo_certs/api_object.rb +111 -0
- data/lib/geo_certs/certificate.rb +88 -0
- data/lib/geo_certs/collection.rb +12 -0
- data/lib/geo_certs/csr.rb +31 -0
- data/lib/geo_certs/email.rb +8 -0
- data/lib/geo_certs/endpoints/agreements.rb +23 -0
- data/lib/geo_certs/endpoints/certificates.rb +73 -0
- data/lib/geo_certs/endpoints/events.rb +56 -0
- data/lib/geo_certs/endpoints/orders.rb +181 -0
- data/lib/geo_certs/endpoints/products.rb +30 -0
- data/lib/geo_certs/errors.rb +30 -0
- data/lib/geo_certs/event.rb +67 -0
- data/lib/geo_certs/exceptions.rb +124 -0
- data/lib/geo_certs/hash_extension.rb +50 -0
- data/lib/geo_certs/order.rb +369 -0
- data/lib/geo_certs/order/administrator.rb +23 -0
- data/lib/geo_certs/order/contact.rb +30 -0
- data/lib/geo_certs/order/extended_validation_approver.rb +23 -0
- data/lib/geo_certs/order/organization.rb +39 -0
- data/lib/geo_certs/order/renewal_information.rb +31 -0
- data/lib/geo_certs/parsers/order_parser.rb +8 -0
- data/lib/geo_certs/product.rb +67 -0
- data/test/config/initializers/_remote_tests.rb +15 -0
- data/test/config/initializers/fakeweb.rb +2 -0
- data/test/config/initializers/geocerts.rb +13 -0
- data/test/config/initializers/responses.rb +3 -0
- data/test/config/test_credentials.example.yml +2 -0
- data/test/factories.rb +15 -0
- data/test/fixtures/responses.rb +80 -0
- data/test/fixtures/responses/agreement.rb +136 -0
- data/test/fixtures/responses/certificate.rb +227 -0
- data/test/fixtures/responses/event.rb +60 -0
- data/test/fixtures/responses/order.rb +272 -0
- data/test/fixtures/responses/product.rb +77 -0
- data/test/integrations/agreement_test.rb +40 -0
- data/test/integrations/api_test.rb +33 -0
- data/test/integrations/certificate_test.rb +195 -0
- data/test/integrations/event_test.rb +167 -0
- data/test/integrations/order_test.rb +510 -0
- data/test/integrations/product_test.rb +72 -0
- data/test/test_helper.rb +68 -0
- data/test/units/certificate_test.rb +21 -0
- data/test/units/collection_test.rb +27 -0
- data/test/units/csr_test.rb +27 -0
- data/test/units/geo_certs_test.rb +19 -0
- data/test/units/order/administrator_test.rb +24 -0
- data/test/units/order/extended_validation_approver_test.rb +24 -0
- data/test/units/order/organization_test.rb +0 -0
- data/test/units/order/renewal_information_test.rb +36 -0
- data/test/units/order_test.rb +59 -0
- data/test/units/product_test.rb +21 -0
- metadata +220 -0
@@ -0,0 +1,227 @@
|
|
1
|
+
module Responses
|
2
|
+
|
3
|
+
module Certificate
|
4
|
+
|
5
|
+
All = %|HTTP/1.1 200 OK
|
6
|
+
Date: Tue, 08 Sep 2009 16:57:10 GMT
|
7
|
+
Server: Mongrel 1.1.3
|
8
|
+
Status: 200 OK
|
9
|
+
Cache-Control: no-cache
|
10
|
+
Content-Type: application/xml; charset=utf-8
|
11
|
+
Content-Length: 6359
|
12
|
+
Vary: Accept-Encoding
|
13
|
+
Connection: close
|
14
|
+
|
15
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
16
|
+
<certificates start_at="2009-08-09T12:57:10-04:00" end_at="2009-09-08T12:57:10-04:00">
|
17
|
+
<certificate>
|
18
|
+
<order-id type="integer">422815</order-id>
|
19
|
+
<geotrust-order-id>93520</geotrust-order-id>
|
20
|
+
<status>Renewed</status>
|
21
|
+
<certificate>-----BEGIN CERTIFICATE-----
|
22
|
+
MIIDATCCAmqgAwIBAgICHwkwDQYJKoZIhvcNAQEEBQAwSzELMAkGA1UEBhMCVVMx
|
23
|
+
FTATBgNVBAoTDEdlb1RydXN0IEluYzElMCMGA1UEAxMcR2VvVHJ1c3QgUHJlLVBy
|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MGMDAgbAMA0GCSqGSIb3DQEBBQUA
|
56
|
+
MA4GA1UEChMHRXF1aWZheDEtMCsGA1UECxMkRXF1aWZheCBTZWN1cmUgQ2VydGlm
|
57
|
+
aWNhdGUgQXV0aG9yaXR5MQ0wCwYDVQQDEwRDUkwxMBoGA1UdEAQTMBGBDzIwMTgw
|
58
|
+
1voqZiegDfqnc1zqcPGUIWVEX/r87yloqaKHee9570+sB3c4
|
59
|
+
-----END CERTIFICATE-----</ca-root>
|
60
|
+
<common-name>www.example.com</common-name>
|
61
|
+
<serial-number>1E08</serial-number>
|
62
|
+
<start-date type="datetime">2009-08-11T19:28:18-04:00</start-date>
|
63
|
+
<end-date type="datetime">2009-08-20T00:59:16-04:00</end-date>
|
64
|
+
<locality>Atlanta</locality>
|
65
|
+
<state>Georgia</state>
|
66
|
+
<organization>GeoCerts</organization>
|
67
|
+
<organizational-unit>Internet</organizational-unit>
|
68
|
+
<country>US</country>
|
69
|
+
<approver-email>ssladmin@example.com</approver-email>
|
70
|
+
<reissue-email>test@example.com</reissue-email>
|
71
|
+
<trial type="boolean">false</trial>
|
72
|
+
<url>https://api-test.geocerts.com/1/orders/422815/certificate.xml</url>
|
73
|
+
<dns-names></dns-names>
|
74
|
+
</certificate>
|
75
|
+
<certificate>
|
76
|
+
<order-id type="integer">422816</order-id>
|
77
|
+
<geotrust-order-id>93693</geotrust-order-id>
|
78
|
+
<status>Cancelled</status>
|
79
|
+
<certificate>-----BEGIN CERTIFICATE-----
|
80
|
+
MIIDATCCAmqgAwIBAgICHw0wDQYJKoZIhvcNAQEEBQAwSzELMAkGA1UEBhMCVVMx
|
81
|
+
FTATBgNVBAoTDEdlb1RydXN0IEluYzElMCMGA1UEAxMcR2VvVHJ1c3QgUHJlLVBy
|
82
|
+
b2R1Y3Rpb24gQ0EgMTAeFw0wOTA4MTQwMTQxMDhaFw0wOTA4MjIwNTIyMzRaMIHI
|
83
|
+
MQswCQYDVQQGEwJVUzEbMBkGA1UEChMSc3J2MDI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ewCHrPSqnI0kBBIZCe/zuf6IWUrVnZ9NA2zsmWLIodz2uFHdh
|
116
|
+
1voqZiegDfqnc1zqcPGUIWVEX/r87yloqaKHee9570+sB3c4
|
117
|
+
-----END CERTIFICATE-----</ca-root>
|
118
|
+
<common-name>srv02.wavepath.com</common-name>
|
119
|
+
<serial-number>1F0D</serial-number>
|
120
|
+
<start-date type="datetime">2009-08-13T21:41:08-04:00</start-date>
|
121
|
+
<end-date type="datetime">2009-08-22T01:22:34-04:00</end-date>
|
122
|
+
<locality></locality>
|
123
|
+
<state></state>
|
124
|
+
<organization>srv02.wavepath.com</organization>
|
125
|
+
<organizational-unit>Domain Control Validated - QuickSSL Premium(R)</organizational-unit>
|
126
|
+
<country>US</country>
|
127
|
+
<approver-email>ssladmin@wavepath.com</approver-email>
|
128
|
+
<reissue-email>brooks.smith@geocerts.com</reissue-email>
|
129
|
+
<trial type="boolean">false</trial>
|
130
|
+
<url>https://api-test.geocerts.com/1/orders/422816/certificate.xml</url>
|
131
|
+
<dns-names></dns-names>
|
132
|
+
</certificate>
|
133
|
+
</certificates>
|
134
|
+
|
|
135
|
+
Certificate = %|HTTP/1.1 200 OK
|
136
|
+
Date: Tue, 08 Sep 2009 16:57:10 GMT
|
137
|
+
Server: Mongrel 1.1.3
|
138
|
+
Status: 200 OK
|
139
|
+
Cache-Control: no-cache
|
140
|
+
Content-Type: application/xml; charset=utf-8
|
141
|
+
Content-Length: 3081
|
142
|
+
Vary: Accept-Encoding
|
143
|
+
Connection: close
|
144
|
+
|
145
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
146
|
+
<certificate>
|
147
|
+
<order-id type="integer">422815</order-id>
|
148
|
+
<geotrust-order-id>93520</geotrust-order-id>
|
149
|
+
<status>Renewed</status>
|
150
|
+
<certificate>-----BEGIN CERTIFICATE-----
|
151
|
+
MIIDATCCAmqgAwIBAgICHwkwDQYJKoZIhvcNAQEEBQAwSzELMAkGA1UEBhMCVVMx
|
152
|
+
FTATBgNVBAoT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1UdEwQF
|
184
|
+
MAMBAf8wGgYJKoZIhvZ9B0EABA0wCxsFVjMuMGMDAgbAMA0GCSqGSIb3DQEBBQUA
|
185
|
+
MA4GA1UEChMHRXF1aWZheDEtMCsGA1UECxMkRXF1aWZheCBTZWN1cmUgQ2VydGlm
|
186
|
+
aWNhdGUgQXV0aG9yaXR5MQ0wCwYDVQQDEwRDUkwxMBoGA1UdEAQTMBGBDzIwMTgw
|
187
|
+
1voqZiegDfqnc1zqcPGUIWVEX/r87yloqaKHee9570+sB3c4
|
188
|
+
-----END CERTIFICATE-----</ca-root>
|
189
|
+
<common-name>www.example.com</common-name>
|
190
|
+
<serial-number>1E08</serial-number>
|
191
|
+
<start-date type="datetime">2009-08-11T19:28:18-04:00</start-date>
|
192
|
+
<end-date type="datetime">2009-08-20T00:59:16-04:00</end-date>
|
193
|
+
<locality>Atlanta</locality>
|
194
|
+
<state>Georgia</state>
|
195
|
+
<organization>GeoCerts</organization>
|
196
|
+
<organizational-unit>Internet</organizational-unit>
|
197
|
+
<country>US</country>
|
198
|
+
<approver-email>ssladmin@example.com</approver-email>
|
199
|
+
<reissue-email>test@example.com</reissue-email>
|
200
|
+
<trial type="boolean">false</trial>
|
201
|
+
<url>https://api-test.geocerts.com/1/orders/422815/certificate.xml</url>
|
202
|
+
<dns-names></dns-names>
|
203
|
+
</certificate>
|
204
|
+
|
|
205
|
+
|
206
|
+
MissingCSRBody = %|HTTP/1.1 422 Unprocessable Entity
|
207
|
+
Date: Thu, 03 Sep 2009 16:57:30 GMT
|
208
|
+
Server: Mongrel 1.1.3
|
209
|
+
Status: 422 Unprocessable Entity
|
210
|
+
Cache-Control: no-cache
|
211
|
+
Content-Type: application/xml; charset=utf-8
|
212
|
+
Content-Length: 154
|
213
|
+
Vary: Accept-Encoding
|
214
|
+
Connection: close
|
215
|
+
|
216
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
217
|
+
<errors>
|
218
|
+
<error>
|
219
|
+
<code>-90010</code>
|
220
|
+
<message>A CSR Body must be provided</message>
|
221
|
+
</error>
|
222
|
+
</errors>
|
223
|
+
|
|
224
|
+
|
225
|
+
end
|
226
|
+
|
227
|
+
end
|
@@ -0,0 +1,60 @@
|
|
1
|
+
module Responses
|
2
|
+
|
3
|
+
module Event
|
4
|
+
|
5
|
+
All = %|HTTP/1.1 200 OK
|
6
|
+
Date: Tue, 08 Sep 2009 20:27:15 GMT
|
7
|
+
Server: Mongrel 1.1.3
|
8
|
+
Status: 200 OK
|
9
|
+
Cache-Control: no-cache
|
10
|
+
Content-Type: application/xml; charset=utf-8
|
11
|
+
Content-Length: 538
|
12
|
+
Vary: Accept-Encoding
|
13
|
+
Connection: close
|
14
|
+
|
15
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
16
|
+
<events start_at="2009-01-01T00:00:00Z" end_at="2009-09-08T16:27:15-04:00">
|
17
|
+
<event>
|
18
|
+
<event-id>795652</event-id>
|
19
|
+
<order-id type="integer">422800</order-id>
|
20
|
+
<name>Approver Confirmed</name>
|
21
|
+
<created-at type="datetime">2009-08-12T16:38:14-04:00</created-at>
|
22
|
+
</event>
|
23
|
+
<event>
|
24
|
+
<event-id>795651</event-id>
|
25
|
+
<order-id type="integer">422801</order-id>
|
26
|
+
<name>Approver Confirmed</name>
|
27
|
+
<created-at type="datetime">2009-08-12T16:08:12-04:00</created-at>
|
28
|
+
</event>
|
29
|
+
</events>
|
30
|
+
|
|
31
|
+
|
32
|
+
Order = %|HTTP/1.1 200 OK
|
33
|
+
Date: Tue, 08 Sep 2009 20:27:15 GMT
|
34
|
+
Server: Mongrel 1.1.3
|
35
|
+
Status: 200 OK
|
36
|
+
Cache-Control: no-cache
|
37
|
+
Content-Type: application/xml; charset=utf-8
|
38
|
+
Content-Length: 538
|
39
|
+
Vary: Accept-Encoding
|
40
|
+
Connection: close
|
41
|
+
|
42
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
43
|
+
<events start_at="2009-01-01T00:00:00Z" end_at="2009-09-08T16:27:15-04:00">
|
44
|
+
<event>
|
45
|
+
<event-id>795652</event-id>
|
46
|
+
<order-id type="integer">422815</order-id>
|
47
|
+
<name>Approver Confirmed</name>
|
48
|
+
<created-at type="datetime">2009-08-12T16:38:14-04:00</created-at>
|
49
|
+
</event>
|
50
|
+
<event>
|
51
|
+
<event-id>795651</event-id>
|
52
|
+
<order-id type="integer">422815</order-id>
|
53
|
+
<name>Approver Confirmed</name>
|
54
|
+
<created-at type="datetime">2009-08-12T16:08:12-04:00</created-at>
|
55
|
+
</event>
|
56
|
+
</events>|
|
57
|
+
|
58
|
+
end
|
59
|
+
|
60
|
+
end
|
@@ -0,0 +1,272 @@
|
|
1
|
+
module Responses
|
2
|
+
|
3
|
+
module Order
|
4
|
+
|
5
|
+
All = %|HTTP/1.1 200 OK
|
6
|
+
Date: Thu, 03 Sep 2009 15:56:44 GMT
|
7
|
+
Server: Mongrel 1.1.3
|
8
|
+
Status: 200 OK
|
9
|
+
Cache-Control: no-cache
|
10
|
+
Content-Type: application/xml; charset=utf-8
|
11
|
+
Content-Length: 2137
|
12
|
+
Vary: Accept-Encoding
|
13
|
+
Connection: close
|
14
|
+
|
15
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
16
|
+
<orders end_at="2009-09-03T11:56:44-04:00" start_at="2009-08-04T11:56:44-04:00">
|
17
|
+
<order>
|
18
|
+
<id type="integer">422815</id>
|
19
|
+
<domain>srv02.wavepath.com</domain>
|
20
|
+
<geotrust-order-id>93520</geotrust-order-id>
|
21
|
+
<status-major>Complete</status-major>
|
22
|
+
<status-minor>Order Complete</status-minor>
|
23
|
+
<years type="integer">1</years>
|
24
|
+
<licenses type="integer">1</licenses>
|
25
|
+
<created-at type="datetime">2009-08-12T16:43:02-04:00</created-at>
|
26
|
+
<completed-at type="datetime">2009-08-12T16:45:06-04:00</completed-at>
|
27
|
+
<trial type="boolean">false</trial>
|
28
|
+
<renewal type="boolean">false</renewal>
|
29
|
+
<sans></sans>
|
30
|
+
<state>COMPLETED</state>
|
31
|
+
<total-price type="float">69</total-price>
|
32
|
+
<pending-audit type="boolean">false</pending-audit>
|
33
|
+
<product>
|
34
|
+
<sku>Q</sku>
|
35
|
+
</product>
|
36
|
+
</order>
|
37
|
+
<order>
|
38
|
+
<id type="integer">422816</id>
|
39
|
+
<domain>srv02.wavepath.com</domain>
|
40
|
+
<geotrust-order-id>93693</geotrust-order-id>
|
41
|
+
<status-major>Cancelled</status-major>
|
42
|
+
<status-minor>Order Complete</status-minor>
|
43
|
+
<years type="integer">1</years>
|
44
|
+
<licenses type="integer">1</licenses>
|
45
|
+
<created-at type="datetime">2009-08-14T09:52:31-04:00</created-at>
|
46
|
+
<completed-at type="datetime">2009-08-14T09:54:04-04:00</completed-at>
|
47
|
+
<trial type="boolean">false</trial>
|
48
|
+
<renewal type="boolean">true</renewal>
|
49
|
+
<sans></sans>
|
50
|
+
<state>COMPLETED</state>
|
51
|
+
<total-price type="float">69</total-price>
|
52
|
+
<pending-audit type="boolean">false</pending-audit>
|
53
|
+
<product>
|
54
|
+
<sku>Q</sku>
|
55
|
+
</product>
|
56
|
+
</order>
|
57
|
+
<order>
|
58
|
+
<id type="integer">422817</id>
|
59
|
+
<domain>srv02.wavepath.com</domain>
|
60
|
+
<geotrust-order-id>93698</geotrust-order-id>
|
61
|
+
<status-major>Cancelled</status-major>
|
62
|
+
<status-minor>Order Cancelled</status-minor>
|
63
|
+
<years type="integer">1</years>
|
64
|
+
<licenses type="integer">1</licenses>
|
65
|
+
<created-at type="datetime">2009-08-14T11:12:26-04:00</created-at>
|
66
|
+
<completed-at type="datetime">2009-08-14T11:13:19-04:00</completed-at>
|
67
|
+
<trial type="boolean">false</trial>
|
68
|
+
<renewal type="boolean">true</renewal>
|
69
|
+
<sans></sans>
|
70
|
+
<state>REJECTED</state>
|
71
|
+
<total-price type="float">69</total-price>
|
72
|
+
<pending-audit type="boolean">false</pending-audit>
|
73
|
+
<product>
|
74
|
+
<sku>Q</sku>
|
75
|
+
</product>
|
76
|
+
</order>
|
77
|
+
</orders>
|
78
|
+
|
|
79
|
+
|
80
|
+
Order = %|HTTP/1.1 200 OK
|
81
|
+
Date: Thu, 03 Sep 2009 16:23:03 GMT
|
82
|
+
Server: Mongrel 1.1.3
|
83
|
+
Status: 200 OK
|
84
|
+
Cache-Control: no-cache
|
85
|
+
Content-Type: application/xml; charset=utf-8
|
86
|
+
Content-Length: 704
|
87
|
+
Vary: Accept-Encoding
|
88
|
+
Connection: close
|
89
|
+
|
90
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
91
|
+
<order>
|
92
|
+
<id type="integer">422815</id>
|
93
|
+
<domain>srv02.wavepath.com</domain>
|
94
|
+
<geotrust-order-id>93520</geotrust-order-id>
|
95
|
+
<status-major>Complete</status-major>
|
96
|
+
<status-minor>Order Complete</status-minor>
|
97
|
+
<years type="integer">1</years>
|
98
|
+
<licenses type="integer">1</licenses>
|
99
|
+
<created-at type="datetime">2009-08-12T16:43:02-04:00</created-at>
|
100
|
+
<completed-at type="datetime">2009-08-12T16:45:06-04:00</completed-at>
|
101
|
+
<trial type="boolean">false</trial>
|
102
|
+
<renewal type="boolean">false</renewal>
|
103
|
+
<sans></sans>
|
104
|
+
<state>COMPLETED</state>
|
105
|
+
<total-price type="float">69</total-price>
|
106
|
+
<pending-audit type="boolean">false</pending-audit>
|
107
|
+
<product>
|
108
|
+
<sku>Q</sku>
|
109
|
+
</product>
|
110
|
+
</order>
|
111
|
+
|
|
112
|
+
|
113
|
+
OrderWithWarnings = %|HTTP/1.1 200 OK
|
114
|
+
Date: Thu, 03 Sep 2009 16:23:03 GMT
|
115
|
+
Server: Mongrel 1.1.3
|
116
|
+
Status: 200 OK
|
117
|
+
Cache-Control: no-cache
|
118
|
+
Content-Type: application/xml; charset=utf-8
|
119
|
+
Content-Length: 831
|
120
|
+
Vary: Accept-Encoding
|
121
|
+
Connection: close
|
122
|
+
|
123
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
124
|
+
<order>
|
125
|
+
<id type="integer">422815</id>
|
126
|
+
<domain>srv02.wavepath.com</domain>
|
127
|
+
<geotrust-order-id>93520</geotrust-order-id>
|
128
|
+
<status-major>Complete</status-major>
|
129
|
+
<status-minor>Order Complete</status-minor>
|
130
|
+
<years type="integer">1</years>
|
131
|
+
<licenses type="integer">1</licenses>
|
132
|
+
<created-at type="datetime">2009-08-12T16:43:02-04:00</created-at>
|
133
|
+
<completed-at type="datetime">2009-08-12T16:45:06-04:00</completed-at>
|
134
|
+
<trial type="boolean">false</trial>
|
135
|
+
<renewal type="boolean">false</renewal>
|
136
|
+
<sans></sans>
|
137
|
+
<state>COMPLETED</state>
|
138
|
+
<total-price type="float">69</total-price>
|
139
|
+
<pending-audit type="boolean">false</pending-audit>
|
140
|
+
<product>
|
141
|
+
<sku>Q</sku>
|
142
|
+
</product>
|
143
|
+
<warnings>
|
144
|
+
<warning>
|
145
|
+
<code type="integer">12345</code>
|
146
|
+
<message>Sample Test Warning</message>
|
147
|
+
</warning>
|
148
|
+
</warnings
|
149
|
+
</order>
|
150
|
+
|
|
151
|
+
|
152
|
+
DomainMissing = %|HTTP/1.1 422 Unprocessable Entity
|
153
|
+
Date: Thu, 03 Sep 2009 16:58:44 GMT
|
154
|
+
Server: Mongrel 1.1.3
|
155
|
+
Status: 422 Unprocessable Entity
|
156
|
+
Cache-Control: no-cache
|
157
|
+
Content-Type: application/xml; charset=utf-8
|
158
|
+
Content-Length: 156
|
159
|
+
Vary: Accept-Encoding
|
160
|
+
Connection: close
|
161
|
+
|
162
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
163
|
+
<errors>
|
164
|
+
<error>
|
165
|
+
<code>-90001</code>
|
166
|
+
<message>You must supply a domain name</message>
|
167
|
+
</error>
|
168
|
+
</errors>
|
169
|
+
|
|
170
|
+
|
171
|
+
Approvers = %|HTTP/1.1 200 OK
|
172
|
+
Date: Thu, 03 Sep 2009 16:59:37 GMT
|
173
|
+
Server: Mongrel 1.1.3
|
174
|
+
Status: 200 OK
|
175
|
+
Cache-Control: no-cache
|
176
|
+
Content-Type: application/xml; charset=utf-8
|
177
|
+
Content-Length: 634
|
178
|
+
Vary: Accept-Encoding
|
179
|
+
Connection: close
|
180
|
+
|
181
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
182
|
+
<emails>
|
183
|
+
<email>blank@geocerts.com</email>
|
184
|
+
<email>admin@geocerts.com</email>
|
185
|
+
<email>administrator@geocerts.com</email>
|
186
|
+
<email>hostmaster@geocerts.com</email>
|
187
|
+
<email>root@geocerts.com</email>
|
188
|
+
<email>ssladmin@geocerts.com</email>
|
189
|
+
<email>sysadmin@geocerts.com</email>
|
190
|
+
<email>webmaster@geocerts.com</email>
|
191
|
+
<email>info@geocerts.com</email>
|
192
|
+
<email>is@geocerts.com</email>
|
193
|
+
<email>it@geocerts.com</email>
|
194
|
+
<email>mis@geocerts.com</email>
|
195
|
+
<email>ssladministrator@geocerts.com</email>
|
196
|
+
<email>sslwebmaster@geocerts.com</email>
|
197
|
+
<email>postmaster@geocerts.com</email>
|
198
|
+
</emails>
|
199
|
+
|
|
200
|
+
|
201
|
+
BadModifyResponse = %|HTTP/1.1 422 Unprocessable Entity
|
202
|
+
Date: Thu, 03 Sep 2009 17:17:35 GMT
|
203
|
+
Server: Mongrel 1.1.3
|
204
|
+
Status: 422 Unprocessable Entity
|
205
|
+
Cache-Control: no-cache
|
206
|
+
Content-Type: application/xml; charset=utf-8
|
207
|
+
Content-Length: 181
|
208
|
+
Vary: Accept-Encoding
|
209
|
+
Connection: close
|
210
|
+
|
211
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
212
|
+
<errors>
|
213
|
+
<error>
|
214
|
+
<code>-90003</code>
|
215
|
+
<message>Desired order state must be provided (CANCEL, APPROVE)</message>
|
216
|
+
</error>
|
217
|
+
</errors>
|
218
|
+
|
|
219
|
+
|
220
|
+
WrongState = %|HTTP/1.1 422 Unprocessable Entity
|
221
|
+
Date: Thu, 03 Sep 2009 17:33:08 GMT
|
222
|
+
Server: Mongrel 1.1.3
|
223
|
+
Status: 422 Unprocessable Entity
|
224
|
+
Cache-Control: no-cache
|
225
|
+
Content-Type: application/xml; charset=utf-8
|
226
|
+
Content-Length: 179
|
227
|
+
Vary: Accept-Encoding
|
228
|
+
Connection: close
|
229
|
+
|
230
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
231
|
+
<errors>
|
232
|
+
<error>
|
233
|
+
<code>-90002</code>
|
234
|
+
<message>Order #422815 is in the wrong state for cancellation</message>
|
235
|
+
</error>
|
236
|
+
</errors>
|
237
|
+
|
|
238
|
+
|
239
|
+
Validation = %|HTTP/1.1 200 OK
|
240
|
+
Date: Thu, 03 Sep 2009 16:23:03 GMT
|
241
|
+
Server: Mongrel 1.1.3
|
242
|
+
Status: 200 OK
|
243
|
+
Cache-Control: no-cache
|
244
|
+
Content-Type: application/xml; charset=utf-8
|
245
|
+
Content-Length: 1248
|
246
|
+
Vary: Accept-Encoding
|
247
|
+
Connection: close
|
248
|
+
|
249
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
250
|
+
<order>
|
251
|
+
<total-price type="float">69</total-price>
|
252
|
+
<csr>
|
253
|
+
<common-name>www.example.com</common-name>
|
254
|
+
<city>Atlanta</city>
|
255
|
+
<state>GA</state>
|
256
|
+
<country>US</country>
|
257
|
+
<organization>GeoCerts Inc</organization>
|
258
|
+
<org-unit>Internet</org-unit>
|
259
|
+
<body>-----BEGIN CERTIFICATE REQUEST-----\nMIIBwjCCASsCAQAwgYExCzAJBgNVBAYTAlVTMRAwDgYDVQQIEwdHZW9yZ2lhMRAw\nDgYDVQQHEwdBdGxhbnRhMRUwEwYDVQQKEwxHZW9DZXJ0cyBJbmMxFTATBgNVBAMT\nDHdhdmVwYXRoLmNvbTEgMB4GCSqGSIb3DQEJARYRdXNlckB3YXZlcGF0aC5jb20w\ngZ8wDQYJKoZIhvcNAQEBBQADgY0AMIGJAoGBAMtz8xzYGMFHauj0cPCv80RDUVr+\neRdWzVj1jn8ugsXUsa2WPgWxqlG9fR3ENAT08M0J/xnmbjvcu1LLVJrs7jSPOQYf\nKcaw9zz2hPAxShTu9D/miq4pAKAWJ0di/LpUkhn2RN72rLQ6CproOvtHNjtzSkLk\nvAQWLj0UPIecvjpbAgMBAAGgADANBgkqhkiG9w0BAQUFAAOBgQAX+2iHoNRTEjd9\nyaRplEVlZ6fUmesWamFvYqhFwezek6+ECTX9K6q7R1omwzARbFssGHZMrST3J/S5\ndM3OJD6+N+YzXHfyHJzccMSE8g+jREx+Mgst/VYYLAX690iwHXBVbSLCW/hThD08\nbuRab8WSICBO6USXtrQLSeDfqwiApQ==\n-----END CERTIFICATE REQUEST-----\n</body>
|
260
|
+
</csr>
|
261
|
+
<renewal-info>
|
262
|
+
<indicator type="boolean">true</indicator>
|
263
|
+
<months type="integer">1</months>
|
264
|
+
<serial-number>abC12De</serial-number>
|
265
|
+
<order-id>1234ab</order-id>
|
266
|
+
<expiration-date type="datetime">2009-01-01T00:00:00Z</expiration-date>
|
267
|
+
</renewal-info>
|
268
|
+
</order>
|
269
|
+
|
|
270
|
+
end
|
271
|
+
|
272
|
+
end
|