lumberg 1.1.1 → 2.0.0.pre3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (175) hide show
  1. checksums.yaml +7 -0
  2. data/.travis.yml +1 -6
  3. data/README.md +130 -23
  4. data/lib/lumberg.rb +2 -0
  5. data/lib/lumberg/cpanel.rb +29 -0
  6. data/lib/lumberg/cpanel/addon_domain.rb +50 -0
  7. data/lib/lumberg/cpanel/backups.rb +16 -0
  8. data/lib/lumberg/cpanel/base.rb +56 -0
  9. data/lib/lumberg/cpanel/box_trapper.rb +18 -0
  10. data/lib/lumberg/cpanel/branding.rb +89 -0
  11. data/lib/lumberg/cpanel/contact.rb +38 -0
  12. data/lib/lumberg/cpanel/cron.rb +89 -0
  13. data/lib/lumberg/cpanel/dns_lookup.rb +23 -0
  14. data/lib/lumberg/cpanel/domain_keys.rb +37 -0
  15. data/lib/lumberg/cpanel/domain_lookup.rb +71 -0
  16. data/lib/lumberg/cpanel/email.rb +491 -0
  17. data/lib/lumberg/cpanel/file_manager.rb +146 -0
  18. data/lib/lumberg/cpanel/gpg.rb +36 -0
  19. data/lib/lumberg/cpanel/locale.rb +15 -0
  20. data/lib/lumberg/cpanel/mime.rb +34 -0
  21. data/lib/lumberg/cpanel/mysql.rb +66 -0
  22. data/lib/lumberg/cpanel/net.rb +28 -0
  23. data/lib/lumberg/cpanel/park.rb +58 -0
  24. data/lib/lumberg/cpanel/password.rb +52 -0
  25. data/lib/lumberg/cpanel/random_data.rb +25 -0
  26. data/lib/lumberg/cpanel/redirect.rb +44 -0
  27. data/lib/lumberg/cpanel/ssl.rb +198 -0
  28. data/lib/lumberg/cpanel/sub_domain.rb +61 -0
  29. data/lib/lumberg/cpanel/support.rb +29 -0
  30. data/lib/lumberg/cpanel/zone_edit.rb +134 -0
  31. data/lib/lumberg/format_whm.rb +24 -1
  32. data/lib/lumberg/version.rb +1 -1
  33. data/lib/lumberg/whm.rb +2 -1
  34. data/lib/lumberg/whm/account.rb +4 -4
  35. data/lib/lumberg/whm/cert.rb +69 -0
  36. data/lib/lumberg/whm/dns.rb +28 -4
  37. data/lib/lumberg/whm/reseller.rb +4 -4
  38. data/lib/lumberg/whm/server.rb +64 -15
  39. data/lumberg.gemspec +4 -3
  40. data/spec/config_spec.rb +2 -2
  41. data/spec/cpanel/addon_domain_spec.rb +84 -0
  42. data/spec/cpanel/backups_spec.rb +22 -0
  43. data/spec/cpanel/base_spec.rb +128 -0
  44. data/spec/cpanel/box_trapper_spec.rb +22 -0
  45. data/spec/cpanel/branding_spec.rb +46 -0
  46. data/spec/cpanel/contact_spec.rb +50 -0
  47. data/spec/cpanel/cron_spec.rb +161 -0
  48. data/spec/cpanel/dns_lookup_spec.rb +22 -0
  49. data/spec/cpanel/domain_keys_spec.rb +46 -0
  50. data/spec/cpanel/domain_lookup_spec.rb +77 -0
  51. data/spec/cpanel/email_spec.rb +615 -0
  52. data/spec/cpanel/file_manager_spec.rb +73 -0
  53. data/spec/cpanel/gpg_spec.rb +48 -0
  54. data/spec/cpanel/locale_spec.rb +23 -0
  55. data/spec/cpanel/mime_spec.rb +0 -0
  56. data/spec/cpanel/mysql_spec.rb +0 -0
  57. data/spec/cpanel/net_spec.rb +30 -0
  58. data/spec/cpanel/park_spec.rb +94 -0
  59. data/spec/cpanel/password_spec.rb +35 -0
  60. data/spec/cpanel/random_data_spec.rb +24 -0
  61. data/spec/cpanel/redirect_spec.rb +0 -0
  62. data/spec/cpanel/ssl_spec.rb +138 -0
  63. data/spec/cpanel/sub_domain_spec.rb +72 -0
  64. data/spec/cpanel/support_spec.rb +38 -0
  65. data/spec/cpanel/zone_edit_spec.rb +0 -0
  66. data/spec/sample_certs/cpanel.crt +28 -0
  67. data/spec/sample_certs/cpanel.key +28 -0
  68. data/spec/sample_certs/main.crt +27 -0
  69. data/spec/sample_certs/sample.crt +26 -0
  70. data/spec/sample_certs/sample.key +27 -0
  71. data/spec/spec_helper.rb +7 -1
  72. data/spec/support/cpanel_matchers.rb +17 -0
  73. data/spec/vcr_cassettes/cpanel/addon_domain/add.yml +77 -0
  74. data/spec/vcr_cassettes/cpanel/addon_domain/list.yml +77 -0
  75. data/spec/vcr_cassettes/cpanel/addon_domain/remove.yml +77 -0
  76. data/spec/vcr_cassettes/cpanel/backups/list.yml +40 -0
  77. data/spec/vcr_cassettes/cpanel/box_trapper/list.yml +40 -0
  78. data/spec/vcr_cassettes/cpanel/branding/list_icons.yml +40 -0
  79. data/spec/vcr_cassettes/cpanel/branding/list_image_types.yml +40 -0
  80. data/spec/vcr_cassettes/cpanel/branding/list_object_types.yml +40 -0
  81. data/spec/vcr_cassettes/cpanel/branding/list_pkgs.yml +40 -0
  82. data/spec/vcr_cassettes/cpanel/branding/list_sprites.yml +40 -0
  83. data/spec/vcr_cassettes/cpanel/contact/show.yml +40 -0
  84. data/spec/vcr_cassettes/cpanel/contact/update.yml +40 -0
  85. data/spec/vcr_cassettes/cpanel/cron/add.yml +77 -0
  86. data/spec/vcr_cassettes/cpanel/cron/edit.yml +114 -0
  87. data/spec/vcr_cassettes/cpanel/cron/email.yml +77 -0
  88. data/spec/vcr_cassettes/cpanel/cron/list.yml +77 -0
  89. data/spec/vcr_cassettes/cpanel/cron/remove.yml +151 -0
  90. data/spec/vcr_cassettes/cpanel/cron/set_email.yml +77 -0
  91. data/spec/vcr_cassettes/cpanel/dns_lookup/name_to_ip.yml +40 -0
  92. data/spec/vcr_cassettes/cpanel/domain_keys/add.yml +40 -0
  93. data/spec/vcr_cassettes/cpanel/domain_keys/available.yml +40 -0
  94. data/spec/vcr_cassettes/cpanel/domain_keys/installed.yml +40 -0
  95. data/spec/vcr_cassettes/cpanel/domain_keys/remove.yml +40 -0
  96. data/spec/vcr_cassettes/cpanel/domain_lookup/count.yml +40 -0
  97. data/spec/vcr_cassettes/cpanel/domain_lookup/docroot.yml +40 -0
  98. data/spec/vcr_cassettes/cpanel/domain_lookup/docroots.yml +40 -0
  99. data/spec/vcr_cassettes/cpanel/domain_lookup/document_root.yml +40 -0
  100. data/spec/vcr_cassettes/cpanel/domain_lookup/document_roots.yml +40 -0
  101. data/spec/vcr_cassettes/cpanel/domain_lookup/list.yml +40 -0
  102. data/spec/vcr_cassettes/cpanel/email/acceptable_encodings.yml +40 -0
  103. data/spec/vcr_cassettes/cpanel/email/accounts.yml +188 -0
  104. data/spec/vcr_cassettes/cpanel/email/add_account.yml +77 -0
  105. data/spec/vcr_cassettes/cpanel/email/add_filter.yml +77 -0
  106. data/spec/vcr_cassettes/cpanel/email/add_forwarder.yml +77 -0
  107. data/spec/vcr_cassettes/cpanel/email/add_mailing_list.yml +73 -0
  108. data/spec/vcr_cassettes/cpanel/email/add_mx.yml +40 -0
  109. data/spec/vcr_cassettes/cpanel/email/change_mx.yml +40 -0
  110. data/spec/vcr_cassettes/cpanel/email/check_local_delivery_local.yml +77 -0
  111. data/spec/vcr_cassettes/cpanel/email/check_local_delivery_remote.yml +77 -0
  112. data/spec/vcr_cassettes/cpanel/email/default_address.yml +40 -0
  113. data/spec/vcr_cassettes/cpanel/email/delete_mx.yml +40 -0
  114. data/spec/vcr_cassettes/cpanel/email/disk_usage.yml +77 -0
  115. data/spec/vcr_cassettes/cpanel/email/domains.yml +40 -0
  116. data/spec/vcr_cassettes/cpanel/email/domains_with_aliases.yml +77 -0
  117. data/spec/vcr_cassettes/cpanel/email/edit_quota.yml +112 -0
  118. data/spec/vcr_cassettes/cpanel/email/filters.yml +114 -0
  119. data/spec/vcr_cassettes/cpanel/email/forwarders.yml +77 -0
  120. data/spec/vcr_cassettes/cpanel/email/mail_dir.yml +77 -0
  121. data/spec/vcr_cassettes/cpanel/email/mail_dirs.yml +77 -0
  122. data/spec/vcr_cassettes/cpanel/email/mailing_lists.yml +73 -0
  123. data/spec/vcr_cassettes/cpanel/email/main_discard.yml +40 -0
  124. data/spec/vcr_cassettes/cpanel/email/mx.yml +40 -0
  125. data/spec/vcr_cassettes/cpanel/email/remove.yml +77 -0
  126. data/spec/vcr_cassettes/cpanel/email/set_mail_delivery_local.yml +77 -0
  127. data/spec/vcr_cassettes/cpanel/email/set_mail_delivery_remote.yml +77 -0
  128. data/spec/vcr_cassettes/cpanel/email/set_mx_type.yml +40 -0
  129. data/spec/vcr_cassettes/cpanel/file_manager/disk_usage.yml +38 -0
  130. data/spec/vcr_cassettes/cpanel/file_manager/list.yml +38 -0
  131. data/spec/vcr_cassettes/cpanel/file_manager/operate.yml +77 -0
  132. data/spec/vcr_cassettes/cpanel/file_manager/show.yml +40 -0
  133. data/spec/vcr_cassettes/cpanel/file_manager/stat.yml +38 -0
  134. data/spec/vcr_cassettes/cpanel/gpg/count.yml +40 -0
  135. data/spec/vcr_cassettes/cpanel/gpg/count_private.yml +40 -0
  136. data/spec/vcr_cassettes/cpanel/gpg/list.yml +40 -0
  137. data/spec/vcr_cassettes/cpanel/gpg/list_private.yml +40 -0
  138. data/spec/vcr_cassettes/cpanel/locale/show.yml +40 -0
  139. data/spec/vcr_cassettes/cpanel/net/query_hostname.yml +40 -0
  140. data/spec/vcr_cassettes/cpanel/net/traceroute.yml +40 -0
  141. data/spec/vcr_cassettes/cpanel/park/add.yml +77 -0
  142. data/spec/vcr_cassettes/cpanel/park/list.yml +77 -0
  143. data/spec/vcr_cassettes/cpanel/park/list_addon_domains.yml +77 -0
  144. data/spec/vcr_cassettes/cpanel/park/remove.yml +77 -0
  145. data/spec/vcr_cassettes/cpanel/password/digest_authentication.yml +77 -0
  146. data/spec/vcr_cassettes/cpanel/password/modify.yml +77 -0
  147. data/spec/vcr_cassettes/cpanel/random_data/show.yml +40 -0
  148. data/spec/vcr_cassettes/cpanel/ssl/fetchcabundle.yml +40 -0
  149. data/spec/vcr_cassettes/cpanel/ssl/gencrt.yml +40 -0
  150. data/spec/vcr_cassettes/cpanel/ssl/gencsr.yml +40 -0
  151. data/spec/vcr_cassettes/cpanel/ssl/genkey.yml +40 -0
  152. data/spec/vcr_cassettes/cpanel/ssl/installssl.yml +40 -0
  153. data/spec/vcr_cassettes/cpanel/ssl/listcrts.yml +40 -0
  154. data/spec/vcr_cassettes/cpanel/ssl/listcsrs.yml +40 -0
  155. data/spec/vcr_cassettes/cpanel/ssl/listkeys.yml +40 -0
  156. data/spec/vcr_cassettes/cpanel/ssl/listsslitems.yml +40 -0
  157. data/spec/vcr_cassettes/cpanel/ssl/showcrt.yml +38 -0
  158. data/spec/vcr_cassettes/cpanel/ssl/showcsr.yml +38 -0
  159. data/spec/vcr_cassettes/cpanel/ssl/showkey.yml +38 -0
  160. data/spec/vcr_cassettes/cpanel/ssl/uploadcrt.yml +40 -0
  161. data/spec/vcr_cassettes/cpanel/sub_domain/add.yml +77 -0
  162. data/spec/vcr_cassettes/cpanel/sub_domain/list.yml +77 -0
  163. data/spec/vcr_cassettes/cpanel/sub_domain/remove.yml +77 -0
  164. data/spec/vcr_cassettes/cpanel/support/contactable.yml +40 -0
  165. data/spec/vcr_cassettes/whm/cert/fetchsslinfo.yml +38 -0
  166. data/spec/vcr_cassettes/whm/cert/generatessl.yml +38 -0
  167. data/spec/vcr_cassettes/whm/cert/installssl.yml +38 -0
  168. data/spec/vcr_cassettes/whm/cert/listcrts.yml +38 -0
  169. data/spec/vcr_cassettes/whm/server/gettweaksetting.yml +44 -0
  170. data/spec/vcr_cassettes/whm/server/settweaksetting.yml +44 -0
  171. data/spec/vcr_cassettes/whm/server/themes.yml +38 -0
  172. data/spec/whm/cert_spec.rb +62 -0
  173. data/spec/whm/server_spec.rb +79 -3
  174. metadata +376 -34
  175. data/.rvmrc +0 -49
@@ -0,0 +1,77 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://myhost.com:2087/json-api/cpanel?cpanel_jsonapi_apiversion=2&cpanel_jsonapi_func=set_digest_auth&cpanel_jsonapi_module=Passwd&cpanel_jsonapi_user=lumberg&enable=1&enabledigest=1&password=realtopsecretpassword
6
+ body:
7
+ string: ""
8
+ headers:
9
+ Authorization:
10
+ - WHM root:iscool
11
+ Accept:
12
+ - "*/*"
13
+ User-Agent:
14
+ - Faraday v0.8.7
15
+ response:
16
+ status:
17
+ code: 200
18
+ message: OK
19
+ headers:
20
+ Date:
21
+ - Wed, 15 May 2013 04:25:11 GMT
22
+ Server:
23
+ - cpsrvd/11.36.0.4
24
+ X-Keep-Alive-Count:
25
+ - "1"
26
+ Content-Type:
27
+ - application/json; charset="utf-8"
28
+ Keep-Alive:
29
+ - timeout=70, max=200
30
+ Connection:
31
+ - Keep-Alive
32
+ Content-Length:
33
+ - "164"
34
+ body:
35
+ string: |
36
+ {"cpanelresult":{"event":{"result":1},"data":[{"reason":"Digest Authentication enabled.","result":"1"}],"apiversion":2,"module":"Passwd","func":"set_digest_auth"}}
37
+
38
+ http_version:
39
+ recorded_at: Wed, 15 May 2013 04:20:30 GMT
40
+ - request:
41
+ method: get
42
+ uri: https://myhost.com:2087/json-api/cpanel?cpanel_jsonapi_apiversion=2&cpanel_jsonapi_func=set_digest_auth&cpanel_jsonapi_module=Passwd&cpanel_jsonapi_user=lumberg&enable=1&enabledigest=0&password=realtopsecretpassword
43
+ body:
44
+ string: ""
45
+ headers:
46
+ Authorization:
47
+ - WHM root:iscool
48
+ Accept:
49
+ - "*/*"
50
+ User-Agent:
51
+ - Faraday v0.8.7
52
+ response:
53
+ status:
54
+ code: 200
55
+ message: OK
56
+ headers:
57
+ Date:
58
+ - Mon, 10 Jun 2013 18:55:17 GMT
59
+ Server:
60
+ - cpsrvd/11.36.0.4
61
+ X-Keep-Alive-Count:
62
+ - "1"
63
+ Content-Type:
64
+ - application/json; charset="utf-8"
65
+ Keep-Alive:
66
+ - timeout=70, max=200
67
+ Connection:
68
+ - Keep-Alive
69
+ Content-Length:
70
+ - "165"
71
+ body:
72
+ string: |
73
+ {"cpanelresult":{"event":{"result":1},"apiversion":2,"module":"Passwd","data":[{"reason":"Digest Authentication disabled.","result":"1"}],"func":"set_digest_auth"}}
74
+
75
+ http_version:
76
+ recorded_at: Mon, 10 Jun 2013 18:54:28 GMT
77
+ recorded_with: VCR 2.0.1
@@ -0,0 +1,77 @@
1
+ ---
2
+ recorded_with: VCR 2.0.1
3
+ http_interactions:
4
+ - request:
5
+ method: get
6
+ uri: https://myhost.com:2087/json-api/cpanel?cpanel_jsonapi_apiversion=2&cpanel_jsonapi_func=change_password&cpanel_jsonapi_module=Passwd&cpanel_jsonapi_user=lumberg&newpass=realtopsecretpassword&oldpass=12345
7
+ body:
8
+ string: ""
9
+ headers:
10
+ Authorization:
11
+ - WHM root:iscool
12
+ User-Agent:
13
+ - Faraday v0.8.7
14
+ Accept:
15
+ - "*/*"
16
+ response:
17
+ status:
18
+ code: 200
19
+ message: OK
20
+ headers:
21
+ Server:
22
+ - cpsrvd/11.36.0.4
23
+ Content-Type:
24
+ - application/json; charset="utf-8"
25
+ Connection:
26
+ - Keep-Alive
27
+ Date:
28
+ - Wed, 15 May 2013 04:25:10 GMT
29
+ Content-Length:
30
+ - "482"
31
+ Keep-Alive:
32
+ - timeout=70, max=200
33
+ X-Keep-Alive-Count:
34
+ - "1"
35
+ body:
36
+ string: |
37
+ {"cpanelresult":{"data":[{"statustxt":"Your password has been changed!","applist":[{"app":"system"},{"app":"ftp"},{"app":"mail"},{"app":"webdisk (digest)"}],"status":1,"passwdoutput":"Changing password for user lumberg.\r\nChanging password for lumberg\r\n(current) UNIX password: \r\nNew UNIX password: \r\nRetype new UNIX password: \r\npasswd: all authentication tokens updated successfully.\r\n"}],"func":"change_password","apiversion":2,"event":{"result":1},"module":"Passwd"}}
38
+
39
+ http_version:
40
+ recorded_at: Wed, 15 May 2013 04:20:30 GMT
41
+ - request:
42
+ method: get
43
+ uri: https://myhost.com:2087/json-api/cpanel?cpanel_jsonapi_apiversion=2&cpanel_jsonapi_func=change_password&cpanel_jsonapi_module=Passwd&cpanel_jsonapi_user=lumberg&new=realtopsecretpassword&old=12345
44
+ body:
45
+ string: ""
46
+ headers:
47
+ Authorization:
48
+ - WHM root:iscool
49
+ User-Agent:
50
+ - Faraday v0.8.7
51
+ Accept:
52
+ - "*/*"
53
+ response:
54
+ status:
55
+ code: 200
56
+ message: OK
57
+ headers:
58
+ Server:
59
+ - cpsrvd/11.36.0.4
60
+ Connection:
61
+ - Keep-Alive
62
+ Date:
63
+ - Mon, 10 Jun 2013 18:54:20 GMT
64
+ Content-Type:
65
+ - application/json; charset="utf-8"
66
+ X-Keep-Alive-Count:
67
+ - "1"
68
+ Keep-Alive:
69
+ - timeout=70, max=200
70
+ Content-Length:
71
+ - "263"
72
+ body:
73
+ string: |
74
+ {"cpanelresult":{"event":{"result":1},"error":"\"oldpass\" is a required argument.","data":[{"passwdoutput":null,"applist":[{"app":"none"}],"statustxt":"\"oldpass\" is a required argument.","status":0}],"func":"change_password","module":"Passwd","apiversion":2}}
75
+
76
+ http_version:
77
+ recorded_at: Mon, 10 Jun 2013 18:53:32 GMT
@@ -0,0 +1,40 @@
1
+ ---
2
+ recorded_with: VCR 2.0.1
3
+ http_interactions:
4
+ - request:
5
+ method: get
6
+ uri: https://myhost.com:2087/json-api/cpanel?cpanel_jsonapi_apiversion=2&cpanel_jsonapi_func=getranddata&cpanel_jsonapi_module=Rand&cpanel_jsonapi_user=lumberg&length=10
7
+ body:
8
+ string: ""
9
+ headers:
10
+ Accept:
11
+ - "*/*"
12
+ Authorization:
13
+ - WHM root:iscool
14
+ User-Agent:
15
+ - Faraday v0.8.7
16
+ response:
17
+ status:
18
+ code: 200
19
+ message: OK
20
+ headers:
21
+ X-Keep-Alive-Count:
22
+ - "1"
23
+ Content-Length:
24
+ - "125"
25
+ Connection:
26
+ - Keep-Alive
27
+ Server:
28
+ - cpsrvd/11.36.0.4
29
+ Content-Type:
30
+ - application/json; charset="utf-8"
31
+ Date:
32
+ - Wed, 15 May 2013 04:26:07 GMT
33
+ Keep-Alive:
34
+ - timeout=70, max=200
35
+ body:
36
+ string: |
37
+ {"cpanelresult":{"event":{"result":1},"apiversion":2,"module":"Rand","data":[{"random":"W2v9kFSldI"}],"func":"getranddata"}}
38
+
39
+ http_version:
40
+ recorded_at: Wed, 15 May 2013 04:21:27 GMT
@@ -0,0 +1,40 @@
1
+ ---
2
+ recorded_with: VCR 2.0.1
3
+ http_interactions:
4
+ - request:
5
+ method: get
6
+ uri: https://myhost.com:2087/json-api/cpanel?cpanel_jsonapi_apiversion=2&cpanel_jsonapi_func=listsslitems&cpanel_jsonapi_module=SSL&cpanel_jsonapi_user=lumberg&crt=-----BEGIN%20CERTIFICATE-----%0AMIIEjzCCA3egAwIBAgIJAKUkEYvfuZIgMA0GCSqGSIb3DQEBBQUAMIGLMQswCQYD%0AVQQGEwJVUzELMAkGA1UECBMCSUwxEDAOBgNVBAcTB0NoaWNhZ28xEDAOBgNVBAoT%0AB0luaXRlY2gxDDAKBgNVBAsTA1RQUzEZMBcGA1UEAxMQbHVtYmVyZy10ZXN0LmNv%0AbTEiMCAGCSqGSIb3DQEJARYTbHVtYmVyZ0Bpbml0ZWNoLmNvbTAeFw0xMzA2MDQx%0AODE1NDFaFw0xNDA2MDQxODE1NDFaMIGLMQswCQYDVQQGEwJVUzELMAkGA1UECBMC%0ASUwxEDAOBgNVBAcTB0NoaWNhZ28xEDAOBgNVBAoTB0luaXRlY2gxDDAKBgNVBAsT%0AA1RQUzEZMBcGA1UEAxMQbHVtYmVyZy10ZXN0LmNvbTEiMCAGCSqGSIb3DQEJARYT%0AbHVtYmVyZ0Bpbml0ZWNoLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoC%0AggEBAKNqBG9PNJ/cd0u4AuYb%2BG4wJgOIgWfDeJ3AazHPKqT3lwSks1lpOgfDbcdK%0AIcoD5nNyug/C4PegwKt%2BZtAsfyKsbijvQaq%2BV3zFvXNHYtiu0aqBKr5xCJ/wVNVE%0AIqW4kwSg6rLuaGJdEPbfKyJJV/DJnebh3FK5M2mle%2BhWy/0GEV3qVSNv8XJn1meT%0ALLe/Xhirns5296y5WFVqd7yyW1Ykh/VG5q3vpwH%2BeY4blF4QsJqc8odUzX6k1rZ9%0AuQblBQqH7E3twgpkMqJKZkHWCuQQnF%2B9OTK2CdQrrWZZqsWESsc7YAQvlq7WMMo5%0A9DVES5Vlu5MtI9F6U9d9fiICzgECAwEAAaOB8zCB8DAdBgNVHQ4EFgQU79zSJfI8%0AmcE3Mhgq3MHSgCZq408wgcAGA1UdIwSBuDCBtYAU79zSJfI8mcE3Mhgq3MHSgCZq%0A40%2BhgZGkgY4wgYsxCzAJBgNVBAYTAlVTMQswCQYDVQQIEwJJTDEQMA4GA1UEBxMH%0AQ2hpY2FnbzEQMA4GA1UEChMHSW5pdGVjaDEMMAoGA1UECxMDVFBTMRkwFwYDVQQD%0AExBsdW1iZXJnLXRlc3QuY29tMSIwIAYJKoZIhvcNAQkBFhNsdW1iZXJnQGluaXRl%0AY2guY29tggkApSQRi9%2B5kiAwDAYDVR0TBAUwAwEB/zANBgkqhkiG9w0BAQUFAAOC%0AAQEAKYfSEqYYwyrMhT9d84KWfJsOdjibnCDwMSVQ9SzS/mEJ0ReJL0WuFmChbN6r%0APQvJs3S9AoNmAFCcGFT0Fb/UWbVIajZ%2BzwfqjlWQpoN6/RHmFDT7KmK6OE1p8ZvZ%0AUQeN1PPF5MsT3RmBpOySd4Jprg9ZJ%2BGsL3yjOySSFRZvz8ocUHGF8Rw%2BM8hvoeUH%0AiQMx1IFC7yXpeLXxZ3AODzgLj4mqqyf9C/%2BsOuymO7xfLtU3fQUO7uRba7yQELWF%0A%2B4ttDOOOd%2Bgac5zeADNe0Y6Vlwg92lyW%2BW1c8Uf%2BtqFoFjwdOd/vaJbheJFJua41%0A7bmjPpc2xnl0km2M0y7J4FcysA==%0A-----END%20CERTIFICATE-----%0A%0A
7
+ body:
8
+ string: ""
9
+ headers:
10
+ Accept:
11
+ - "*/*"
12
+ Authorization:
13
+ - WHM root:iscool
14
+ User-Agent:
15
+ - Faraday v0.8.7
16
+ response:
17
+ status:
18
+ code: 200
19
+ message: OK
20
+ headers:
21
+ Keep-Alive:
22
+ - timeout=70, max=200
23
+ Connection:
24
+ - Keep-Alive
25
+ Date:
26
+ - Wed, 05 Jun 2013 13:14:50 GMT
27
+ Content-Type:
28
+ - text/plain; charset="utf-8"
29
+ Content-Length:
30
+ - "102"
31
+ Server:
32
+ - cpsrvd/11.32.6.4
33
+ X-Keep-Alive-Count:
34
+ - "1"
35
+ body:
36
+ string: |
37
+ {"cpanelresult":{"apiversion":2,"data":[],"event":{"result":1},"module":"SSL","func":"listsslitems"}}
38
+
39
+ http_version:
40
+ recorded_at: Wed, 05 Jun 2013 13:14:47 GMT
@@ -0,0 +1,40 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://myhost.com:2087/json-api/cpanel?city=Chicago&company=Initech&companydivision=TPS&country=US&cpanel_jsonapi_apiversion=2&cpanel_jsonapi_func=gencrt&cpanel_jsonapi_module=SSL&cpanel_jsonapi_user=lumberg&email=lumberg@initech.com&host=lumberg-test.com&key=-----BEGIN%20RSA%20PRIVATE%20KEY-----%0AMIIEpAIBAAKCAQEAo2oEb080n9x3S7gC5hv4bjAmA4iBZ8N4ncBrMc8qpPeXBKSz%0AWWk6B8Ntx0ohygPmc3K6D8Lg96DAq35m0Cx/IqxuKO9Bqr5XfMW9c0di2K7RqoEq%0AvnEIn/BU1UQipbiTBKDqsu5oYl0Q9t8rIklX8Mmd5uHcUrkzaaV76FbL/QYRXepV%0AI2/xcmfWZ5Mst79eGKueznb3rLlYVWp3vLJbViSH9Ubmre%2BnAf55jhuUXhCwmpzy%0Ah1TNfqTWtn25BuUFCofsTe3CCmQyokpmQdYK5BCcX705MrYJ1CutZlmqxYRKxztg%0ABC%2BWrtYwyjn0NURLlWW7ky0j0XpT131%2BIgLOAQIDAQABAoIBAQCD6gk6cY3hnm8O%0AyLROXTXmfSeyoncT9E9hyPq/cqTSFqvqK6o7%2Bx3FNpVf0xADq7JUb8CTCJXiT/o4%0Adgk48zKOIvOqR7mSw6SMLHQKow3ALR9DrJF8unJj6fYRUrdFYAIOMnhDiQDqpoYT%0AQ4PmYZ6D2b2Fq73XaXl/Rv8HR0nULc8bwiZy8OtTYr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roH66ufLvh3wqDjUoM3vCWk8lyMQR2eJUfBNUALyQoXzQ==%0A-----END%20RSA%20PRIVATE%20KEY-----%0A%0A&pass=Tru3St0ry&state=IL&user=api_username
6
+ body:
7
+ string: ""
8
+ headers:
9
+ Accept:
10
+ - "*/*"
11
+ Authorization:
12
+ - WHM root:iscool
13
+ User-Agent:
14
+ - Faraday v0.8.7
15
+ response:
16
+ status:
17
+ code: 200
18
+ message: OK
19
+ headers:
20
+ Content-Length:
21
+ - "142"
22
+ Server:
23
+ - cpsrvd/11.32.6.4
24
+ Keep-Alive:
25
+ - timeout=70, max=200
26
+ Connection:
27
+ - Keep-Alive
28
+ X-Keep-Alive-Count:
29
+ - "1"
30
+ Date:
31
+ - Wed, 05 Jun 2013 17:39:55 GMT
32
+ Content-Type:
33
+ - text/plain; charset="utf-8"
34
+ body:
35
+ string: |
36
+ {"cpanelresult":{"func":"gencrt","module":"SSL","event":{"result":1},"data":[{"output":"Certificate generated!","result":1}],"apiversion":2}}
37
+
38
+ http_version:
39
+ recorded_at: Wed, 05 Jun 2013 17:39:45 GMT
40
+ recorded_with: VCR 2.0.1
@@ -0,0 +1,40 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://myhost.com:2087/json-api/cpanel?city=Chicago&company=Initech&companydivision=TPS&country=US&cpanel_jsonapi_apiversion=2&cpanel_jsonapi_func=gencsr&cpanel_jsonapi_module=SSL&cpanel_jsonapi_user=lumberg&email=lumberg@initech.com&host=lumberg-test.com&key=-----BEGIN%20RSA%20PRIVATE%20KEY-----%0AMIIEpAIBAAKCAQEAo2oEb080n9x3S7gC5hv4bjAmA4iBZ8N4ncBrMc8qpPeXBKSz%0AWWk6B8Ntx0ohygPmc3K6D8Lg96DAq35m0Cx/IqxuKO9Bqr5XfMW9c0di2K7RqoEq%0AvnEIn/BU1UQipbiTBKDqsu5oYl0Q9t8rIklX8Mmd5uHcUrkzaaV76FbL/QYRXepV%0AI2/xcmfWZ5Mst79eGK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l8WXwRPBIfqA%0A752fyNgdJpWGUtEziL2oCMECgYBAGxA6vaeMR43g%2BvHdHyD8G57Bbo0rclAP3rcl%0ATXXj2O%2Bdy7UWLtzxar9hRH7VhXHbr/t9YhIj3KQg%2BzZTnLplPH3I00WOkbhK2oZE%0AYOxuOe0IoH6NMFOzXM5bXSDY8OgDJlffsdEiRMQoZEEvum1h0nWOBMwaZBXSplQk%0AnHQizQKBgQDOoOSlZY6vvBnTPHNEmtZifaLpHOg74BUVVOl%2BuksN0NaXM3iJZRxl%0AXoQMgM2u3Vxfg34Agen/RBf0A17sqsIx0trfKt5hPOm8%2Bj9dFmHHill%2B6EtC7mA5%0AACRPQCeYdroH66ufLvh3wqDjUoM3vCWk8lyMQR2eJUfBNUALyQoXzQ==%0A-----END%20RSA%20PRIVATE%20KEY-----%0A%0A&pass=Tru3St0ry&state=IL&user=api_username
6
+ body:
7
+ string: ""
8
+ headers:
9
+ Authorization:
10
+ - WHM root:iscool
11
+ Accept:
12
+ - "*/*"
13
+ User-Agent:
14
+ - Faraday v0.8.7
15
+ response:
16
+ status:
17
+ code: 200
18
+ message: OK
19
+ headers:
20
+ Content-Type:
21
+ - text/plain; charset="utf-8"
22
+ Date:
23
+ - Wed, 05 Jun 2013 17:36:09 GMT
24
+ Content-Length:
25
+ - "158"
26
+ Server:
27
+ - cpsrvd/11.32.6.4
28
+ X-Keep-Alive-Count:
29
+ - "1"
30
+ Keep-Alive:
31
+ - timeout=70, max=200
32
+ Connection:
33
+ - Keep-Alive
34
+ body:
35
+ string: |
36
+ {"cpanelresult":{"event":{"result":1},"data":[{"output":"Certificate Signing Request generated!","result":1}],"module":"SSL","apiversion":2,"func":"gencsr"}}
37
+
38
+ http_version:
39
+ recorded_at: Wed, 05 Jun 2013 17:35:59 GMT
40
+ recorded_with: VCR 2.0.1
@@ -0,0 +1,40 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://myhost.com:2087/json-api/cpanel?cpanel_jsonapi_apiversion=2&cpanel_jsonapi_func=genkey&cpanel_jsonapi_module=SSL&cpanel_jsonapi_user=lumberg&host=lumberg-test.com&keysize=2048&user=lumberg
6
+ body:
7
+ string: ""
8
+ headers:
9
+ User-Agent:
10
+ - Faraday v0.8.7
11
+ Accept:
12
+ - "*/*"
13
+ Authorization:
14
+ - WHM root:iscool
15
+ response:
16
+ status:
17
+ code: 200
18
+ message: OK
19
+ headers:
20
+ Keep-Alive:
21
+ - timeout=70, max=200
22
+ Connection:
23
+ - Keep-Alive
24
+ Server:
25
+ - cpsrvd/11.32.6.4
26
+ Content-Type:
27
+ - text/plain; charset="utf-8"
28
+ Date:
29
+ - Tue, 04 Jun 2013 18:00:55 GMT
30
+ Content-Length:
31
+ - "1857"
32
+ X-Keep-Alive-Count:
33
+ - "1"
34
+ body:
35
+ string: |
36
+ {"cpanelresult":{"data":[{"key":"-----BEGIN RSA PRIVATE KEY-----\nMIIEpAIBAAKCAQEAo2oEb080n9x3S7gC5hv4bjAmA4iBZ8N4ncBrMc8qpPeXBKSz\nWWk6B8Ntx0ohygPmc3K6D8Lg96DAq35m0Cx/IqxuKO9Bqr5XfMW9c0di2K7RqoEq\nvnEIn/BU1UQipbiTBKDqsu5oYl0Q9t8rIklX8Mmd5uHcUrkzaaV76FbL/QYRXepV\nI2/xcmfWZ5Mst79eGKueznb3rLlYVWp3vLJbViSH9Ubmre+nAf55jhuUXhCwmpzy\nh1TNfqTWtn25BuUFCofsTe3CCmQyokpmQdYK5BCcX705MrYJ1CutZlmqxYRKxztg\nBC+WrtYwyjn0NURLlWW7ky0j0XpT131+IgLOAQIDAQABAoIBAQCD6gk6cY3hnm8O\nyLROXTXmfSeyoncT9E9hyPq/cqTSFqvqK6o7+x3FNpVf0xADq7JUb8CTCJXiT/o4\ndgk48zKOIvOqR7mSw6SMLHQKow3ALR9DrJF8unJj6fYRUrdFYAIOMnhDiQDqpoYT\nQ4PmYZ6D2b2Fq73XaXl/Rv8HR0nULc8bwiZy8OtTYrZ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PRIVATE KEY-----\n","output":"Private key generated!","result":1}],"func":"genkey","event":{"result":1},"module":"SSL","apiversion":2}}
37
+
38
+ http_version:
39
+ recorded_at: Tue, 04 Jun 2013 18:00:48 GMT
40
+ recorded_with: VCR 2.0.1
@@ -0,0 +1,40 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://myhost.com:2087/json-api/cpanel?cpanel_jsonapi_apiversion=2&cpanel_jsonapi_func=installssl&cpanel_jsonapi_module=SSL&cpanel_jsonapi_user=lumberg&crt=-----BEGIN%20CERTIFICATE-----%0AMIIEjzCCA3egAwIBAgIJAKUkEYvfuZIgMA0GCSqGSIb3DQEBBQUAMIGLMQswCQYD%0AVQQGEwJVUzELMAkGA1UECBMCSUwxEDAOBgNVBAcTB0NoaWNhZ28xEDAOBgNVBAoT%0AB0luaXRlY2gxDDAKBgNVBAsTA1RQUzEZMBcGA1UEAxMQbHVtYmVyZy10ZXN0LmNv%0AbTEiMCAGCSqGSIb3DQEJARYTbHVtYmVyZ0Bpbml0ZWNoLmNvbTAeFw0xMzA2MDQx%0AODE1NDFaFw0xNDA2MDQxODE1NDFaMIGLMQswCQYDVQQGEwJVUzELMAkGA1UECBMC%0ASUwxEDAOBgNVBAcTB0NoaWNhZ28xEDAOBgNVBAoTB0luaXRlY2gxDDAKBgNVBAsT%0AA1RQUzEZMBcGA1UEAxMQbHVtYmVyZy10ZXN0LmNvbTEiMCAGCSqGSIb3DQEJARYT%0AbHVtYmVyZ0Bpbml0ZWNoLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoC%0AggEBAKNqBG9PNJ/cd0u4AuYb%2BG4wJgOIgWfDeJ3AazHPKqT3lwSks1lpOgfDbcdK%0AIcoD5nNyug/C4PegwKt%2BZtAsfyKsbijvQaq%2BV3zFvXNHYtiu0aqBKr5xCJ/wVNVE%0AIqW4kwSg6rLuaGJdEPbfKyJJV/DJnebh3FK5M2mle%2BhWy/0GEV3qVSNv8XJn1meT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H/IEQGeuhyw9wbJTSJXFtAoGADuNj4S8ynFxVwxy0LUJl%0Ag5H7pr3zbiCZvskosUwHhUjRjLTabS5Avxt3J1Fha8e7Tkq/MJLSeAM4Xq1gDshK%0ArGQ7I47lO/nzerq2sGXArQuEPOqVrPkZ7P91WEXWIoBi69wAohLsl8WXwRPBIfqA%0A752fyNgdJpWGUtEziL2oCMECgYBAGxA6vaeMR43g%2BvHdHyD8G57Bbo0rclAP3rcl%0ATXXj2O%2Bdy7UWLtzxar9hRH7VhXHbr/t9YhIj3KQg%2BzZTnLplPH3I00WOkbhK2oZE%0AYOxuOe0IoH6NMFOzXM5bXSDY8OgDJlffsdEiRMQoZEEvum1h0nWOBMwaZBXSplQk%0AnHQizQKBgQDOoOSlZY6vvBnTPHNEmtZifaLpHOg74BUVVOl%2BuksN0NaXM3iJZRxl%0AXoQMgM2u3Vxfg34Agen/RBf0A17sqsIx0trfKt5hPOm8%2Bj9dFmHHill%2B6EtC7mA5%0AACRPQCeYdroH66ufLvh3wqDjUoM3vCWk8lyMQR2eJUfBNUALyQoXzQ==%0A-----END%20RSA%20PRIVATE%20KEY-----%0A%0A&user=api_username
6
+ body:
7
+ string: ""
8
+ headers:
9
+ Authorization:
10
+ - WHM root:iscool
11
+ User-Agent:
12
+ - Faraday v0.8.7
13
+ Accept:
14
+ - "*/*"
15
+ response:
16
+ status:
17
+ code: 200
18
+ message: OK
19
+ headers:
20
+ Content-Length:
21
+ - "190"
22
+ Date:
23
+ - Wed, 05 Jun 2013 16:42:17 GMT
24
+ Keep-Alive:
25
+ - timeout=70, max=200
26
+ Content-Type:
27
+ - text/plain; charset="utf-8"
28
+ Connection:
29
+ - Keep-Alive
30
+ Server:
31
+ - cpsrvd/11.32.6.4
32
+ X-Keep-Alive-Count:
33
+ - "1"
34
+ body:
35
+ string: |
36
+ {"cpanelresult":{"func":"installssl","module":"SSL","event":{"result":1},"data":[{"output":"Your SSL certificate has been successfully installed to your site.","result":1}],"apiversion":2}}
37
+
38
+ http_version:
39
+ recorded_at: Wed, 05 Jun 2013 16:42:08 GMT
40
+ recorded_with: VCR 2.0.1
@@ -0,0 +1,40 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://myhost.com:2087/json-api/cpanel?cpanel_jsonapi_apiversion=2&cpanel_jsonapi_func=listcrts&cpanel_jsonapi_module=SSL&cpanel_jsonapi_user=lumberg&user=api_username
6
+ body:
7
+ string: ""
8
+ headers:
9
+ User-Agent:
10
+ - Faraday v0.8.7
11
+ Accept:
12
+ - "*/*"
13
+ Authorization:
14
+ - WHM root:iscool
15
+ response:
16
+ status:
17
+ code: 200
18
+ message: OK
19
+ headers:
20
+ Server:
21
+ - cpsrvd/11.32.6.4
22
+ Keep-Alive:
23
+ - timeout=70, max=200
24
+ Content-Type:
25
+ - text/plain; charset="utf-8"
26
+ Date:
27
+ - Tue, 04 Jun 2013 19:20:34 GMT
28
+ Content-Length:
29
+ - "6983"
30
+ Connection:
31
+ - Keep-Alive
32
+ X-Keep-Alive-Count:
33
+ - "1"
34
+ body:
35
+ string: |
36
+ {"cpanelresult":{"event":{"result":1},"module":"SSL","apiversion":2,"data":[{"issuer":"another.com","ssltxt":"Certificate:\n Data:\n Version: 3 (0x2)\n Serial Number:\n df:69:16:45:a4:4f:07:18\n Signature Algorithm: sha1WithRSAEncryption\n Issuer: C=US, ST=TX, L=Houston, O=Site5, OU=Eng, CN=another.com/emailAddress=lumberg@initech.com\n Validity\n Not Before: Apr 24 19:32:49 2013 GMT\n Not After : Apr 24 19:32:49 2014 GMT\n Subject: C=US, ST=TX, L=Houston, O=Site5, OU=Eng, CN=another.com/emailAddress=lumberg@initech.com\n Subject Public Key Info:\n Public Key Algorithm: rsaEncryption\n RSA Public Key: (2048 bit)\n Modulus (2048 bit):\n 00:9c:28:5c:e4:06:0a:36:40:8b:b9:dc:c9:cf:0a:\n 40:bd:af:00:15:67:6e:de:d9:51:b5:6f:00:81:4b:\n 60:e9:c9:9a:c1:7e:bf:c7:16:64:d7:37:13:94:72:\n af:9e:a7:62:23:6e:e4:8a:1c:e5:f2:9e:f8:c2:dd:\n fa:73:1a:aa:4a:59:cc:b6:9c:ad:4b:d7:50:fa:6f:\n 5c:4f:d2:37:80:8f:9e:29:95:3f:ff:d8:b0:e8:bf:\n a1:f8:9a:1b:ee:57:85:b5:4b:60:05:42:12:e8:5c:\n 9f:b4:b9:b5:00:34:94:1d:e2:45:e4:4b:69:ff:d2:\n b7:78:e2:66:70:a9:d8:f2:03:8e:48:87:96:17:63:\n b4:2b:18:82:7b:f2:26:f4:e9:56:0c:ce:d5:3f:9e:\n 8b:f2:19:09:70:e9:f6:60:3a:45:f4:8a:25:d5:c2:\n 41:78:a6:63:1e:e4:32:ad:6b:7e:1f:1e:b3:9c:d0:\n c7:2d:9d:ac:a0:aa:5e:51:92:41:78:8a:1b:3f:9a:\n 69:75:1d:b5:f5:85:f6:2e:20:d4:6d:cd:d7:04:53:\n a6:e8:46:9e:3a:1e:19:94:f4:9f:ca:71:5d:52:07:\n ef:3b:6b:1d:7c:94:29:57:a5:37:a3:c9:67:71:13:\n 07:d7:7b:fd:7d:a8:c7:2a:58:29:ee:d7:30:32:03:\n 47:13\n Exponent: 65537 (0x10001)\n X509v3 extensions:\n X509v3 Subject Key Identifier: \n 63:84:90:F1:EF:71:D6:C3:B8:BE:FF:39:59:BC:C3:6A:DA:EB:54:BC\n X509v3 Authority Key Identifier: \n keyid:63:84:90:F1:EF:71:D6:C3:B8:BE:FF:39:59:BC:C3:6A:DA:EB:54:BC\n DirName:/C=US/ST=TX/L=Houston/O=Site5/OU=Eng/CN=another.com/emailAddress=lumberg@initech.com\n serial:DF:69:16:45:A4:4F:07:18\n\n X509v3 Basic Constraints: \n CA:TRUE\n Signature Algorithm: sha1WithRSAEncryption\n 2d:82:a9:62:a1:b2:94:29:57:42:fb:f0:62:e3:94:f9:63:68:\n 69:9b:48:4b:1c:9c:66:b4:55:99:86:73:18:d3:05:29:4a:e8:\n 9c:ac:7b:cc:55:2a:7a:88:bc:4b:f2:55:37:12:b9:8e:46:55:\n f8:94:5c:a6:60:de:de:f1:18:ef:36:83:b0:8b:e8:dd:60:2a:\n c2:f8:a1:42:64:6c:eb:b3:44:df:dc:b9:87:cd:5a:46:4d:4b:\n c5:82:16:fc:42:71:65:9f:75:cd:3f:2d:80:53:5c:81:01:ff:\n e0:f9:43:4c:6d:7d:c1:59:5b:8b:10:e7:c9:b4:d8:79:9a:4e:\n 64:1c:50:7f:ef:22:81:82:75:c6:61:60:9c:fe:9c:95:85:8d:\n 4b:a4:bb:e2:c9:44:f7:2d:1a:42:e7:df:c1:c0:90:ff:61:a0:\n db:a7:b4:65:57:01:39:fe:77:66:28:21:18:6b:10:55:cc:c4:\n ea:8a:a9:22:00:5e:8f:e8:62:8e:22:74:8c:b1:6c:c3:25:79:\n 78:b5:d2:87:04:2f:97:8a:ee:e1:50:79:fa:ce:ae:1c:ed:37:\n 51:f7:5b:49:b5:fb:9f:7e:13:6b:3c:4c:76:3f:bc:25:ad:13:\n f2:f4:fb:74:fc:91:5d:1a:90:4d:5f:57:29:c2:4a:29:c5:89:\n fe:f2:56:da\n","expiredate":"Apr 24 19:32:49 2014 GMT","host":"another.com"},{"issuer":"lumberg-test.com","ssltxt":"Certificate:\n Data:\n Version: 3 (0x2)\n Serial Number:\n a5:24:11:8b:df:b9:92:20\n Signature Algorithm: sha1WithRSAEncryption\n Issuer: C=US, ST=IL, L=Chicago, O=Initech, OU=TPS, CN=lumberg-test.com/emailAddress=lumberg@initech.com\n Validity\n Not Before: Jun 4 18:15:41 2013 GMT\n Not After : Jun 4 18:15:41 2014 GMT\n Subject: C=US, ST=IL, L=Chicago, O=Initech, OU=TPS, CN=lumberg-test.com/emailAddress=lumberg@initech.com\n Subject Public Key Info:\n Public Key Algorithm: rsaEncryption\n RSA Public Key: (2048 bit)\n Modulus (2048 bit):\n 00:a3:6a:04:6f:4f:34:9f:dc:77:4b:b8:02:e6:1b:\n f8:6e:30:26:03:88:81:67:c3:78:9d:c0:6b:31:cf:\n 2a:a4:f7:97:04:a4:b3:59:69:3a:07:c3:6d:c7:4a:\n 21:ca:03:e6:73:72:ba:0f:c2:e0:f7:a0:c0:ab:7e:\n 66:d0:2c:7f:22:ac:6e:28:ef:41:aa:be:57:7c:c5:\n bd:73:47:62:d8:ae:d1:aa:81:2a:be:71:08:9f:f0:\n 54:d5:44:22:a5:b8:93:04:a0:ea:b2:ee:68:62:5d:\n 10:f6:df:2b:22:49:57:f0:c9:9d:e6:e1:dc:52:b9:\n 33:69:a5:7b:e8:56:cb:fd:06:11:5d:ea:55:23:6f:\n f1:72:67:d6:67:93:2c:b7:bf:5e:18:ab:9e:ce:76:\n f7:ac:b9:58:55:6a:77:bc:b2:5b:56:24:87:f5:46:\n e6:ad:ef:a7:01:fe:79:8e:1b:94:5e:10:b0:9a:9c:\n f2:87:54:cd:7e:a4:d6:b6:7d:b9:06:e5:05:0a:87:\n ec:4d:ed:c2:0a:64:32:a2:4a:66:41:d6:0a:e4:10:\n 9c:5f:bd:39:32:b6:09:d4:2b:ad:66:59:aa:c5:84:\n 4a:c7:3b:60:04:2f:96:ae:d6:30:ca:39:f4:35:44:\n 4b:95:65:bb:93:2d:23:d1:7a:53:d7:7d:7e:22:02:\n ce:01\n Exponent: 65537 (0x10001)\n X509v3 extensions:\n X509v3 Subject Key Identifier: \n EF:DC:D2:25:F2:3C:99:C1:37:32:18:2A:DC:C1:D2:80:26:6A:E3:4F\n X509v3 Authority Key Identifier: \n keyid:EF:DC:D2:25:F2:3C:99:C1:37:32:18:2A:DC:C1:D2:80:26:6A:E3:4F\n DirName:/C=US/ST=IL/L=Chicago/O=Initech/OU=TPS/CN=lumberg-test.com/emailAddress=lumberg@initech.com\n serial:A5:24:11:8B:DF:B9:92:20\n\n X509v3 Basic Constraints: \n CA:TRUE\n Signature Algorithm: sha1WithRSAEncryption\n 29:87:d2:12:a6:18:c3:2a:cc:85:3f:5d:f3:82:96:7c:9b:0e:\n 76:38:9b:9c:20:f0:31:25:50:f5:2c:d2:fe:61:09:d1:17:89:\n 2f:45:ae:16:60:a1:6c:de:ab:3d:0b:c9:b3:74:bd:02:83:66:\n 00:50:9c:18:54:f4:15:bf:d4:59:b5:48:6a:36:7e:cf:07:ea:\n 8e:55:90:a6:83:7a:fd:11:e6:14:34:fb:2a:62:ba:38:4d:69:\n f1:9b:d9:51:07:8d:d4:f3:c5:e4:cb:13:dd:19:81:a4:ec:92:\n 77:82:69:ae:0f:59:27:e1:ac:2f:7c:a3:3b:24:92:15:16:6f:\n cf:ca:1c:50:71:85:f1:1c:3e:33:c8:6f:a1:e5:07:89:03:31:\n d4:81:42:ef:25:e9:78:b5:f1:67:70:0e:0f:38:0b:8f:89:aa:\n ab:27:fd:0b:ff:ac:3a:ec:a6:3b:bc:5f:2e:d5:37:7d:05:0e:\n ee:e4:5b:6b:bc:90:10:b5:85:fb:8b:6d:0c:e3:8e:77:e8:1a:\n 73:9c:de:00:33:5e:d1:8e:95:97:08:3d:da:5c:96:f9:6d:5c:\n f1:47:fe:b6:a1:68:16:3c:1d:39:df:ef:68:96:e1:78:91:49:\n b9:ae:35:ed:b9:a3:3e:97:36:c6:79:74:92:6d:8c:d3:2e:c9:\n e0:57:32:b0\n","expiredate":"Jun 4 18:15:41 2014 GMT","host":"lumberg-test.com"}],"func":"listcrts"}}
37
+
38
+ http_version:
39
+ recorded_at: Tue, 04 Jun 2013 19:20:25 GMT
40
+ recorded_with: VCR 2.0.1
@@ -0,0 +1,40 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://myhost.com:2087/json-api/cpanel?cpanel_jsonapi_apiversion=2&cpanel_jsonapi_func=listcsrs&cpanel_jsonapi_module=SSL&cpanel_jsonapi_user=lumberg&user=api_username
6
+ body:
7
+ string: ""
8
+ headers:
9
+ Authorization:
10
+ - WHM root:iscool
11
+ User-Agent:
12
+ - Faraday v0.8.7
13
+ Accept:
14
+ - "*/*"
15
+ response:
16
+ status:
17
+ code: 200
18
+ message: OK
19
+ headers:
20
+ Date:
21
+ - Tue, 04 Jun 2013 19:41:16 GMT
22
+ Content-Length:
23
+ - "125"
24
+ Keep-Alive:
25
+ - timeout=70, max=200
26
+ X-Keep-Alive-Count:
27
+ - "1"
28
+ Server:
29
+ - cpsrvd/11.32.6.4
30
+ Content-Type:
31
+ - text/plain; charset="utf-8"
32
+ Connection:
33
+ - Keep-Alive
34
+ body:
35
+ string: |
36
+ {"cpanelresult":{"event":{"result":1},"func":"listcsrs","module":"SSL","data":[{"host":"lumberg-test.com"}],"apiversion":2}}
37
+
38
+ http_version:
39
+ recorded_at: Tue, 04 Jun 2013 19:41:06 GMT
40
+ recorded_with: VCR 2.0.1