xolphin-api 1.5.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +12 -0
- data/.rspec +2 -0
- data/.rubocop.yml +28 -0
- data/.travis.yml +5 -0
- data/Gemfile +6 -0
- data/LICENSE.txt +21 -0
- data/README.md +169 -0
- data/Rakefile +12 -0
- data/bin/console +14 -0
- data/bin/setup +8 -0
- data/examples/_credentials.rb +8 -0
- data/examples/certificate_cancel.rb +6 -0
- data/examples/certificate_reissue.rb +25 -0
- data/examples/certificate_renew.rb +22 -0
- data/examples/get_notes.rb +9 -0
- data/examples/request_create_ee.rb +29 -0
- data/examples/request_validation_call.rb +5 -0
- data/examples/requests_get.rb +7 -0
- data/examples/send_csa_email.rb +5 -0
- data/examples/send_note.rb +6 -0
- data/lib/xolphin/api.rb +32 -0
- data/lib/xolphin/api/certificate_requests/certificate_reissue.rb +47 -0
- data/lib/xolphin/api/certificate_requests/certificate_renew.rb +51 -0
- data/lib/xolphin/api/certificate_requests/create_certificate_request.rb +52 -0
- data/lib/xolphin/api/certificate_requests/create_ee_request.rb +33 -0
- data/lib/xolphin/api/client.rb +21 -0
- data/lib/xolphin/api/dcv_type.rb +9 -0
- data/lib/xolphin/api/endpoint/certificate.rb +59 -0
- data/lib/xolphin/api/endpoint/request.rb +86 -0
- data/lib/xolphin/api/endpoint/support.rb +47 -0
- data/lib/xolphin/api/format_type.rb +12 -0
- data/lib/xolphin/api/http.rb +67 -0
- data/lib/xolphin/api/product_type.rb +9 -0
- data/lib/xolphin/api/responses/base.rb +43 -0
- data/lib/xolphin/api/responses/certificate.rb +53 -0
- data/lib/xolphin/api/responses/certificates.rb +25 -0
- data/lib/xolphin/api/responses/csr_data.rb +43 -0
- data/lib/xolphin/api/responses/note.rb +37 -0
- data/lib/xolphin/api/responses/notes.rb +24 -0
- data/lib/xolphin/api/responses/product.rb +53 -0
- data/lib/xolphin/api/responses/product_price.rb +27 -0
- data/lib/xolphin/api/responses/products.rb +25 -0
- data/lib/xolphin/api/responses/request.rb +119 -0
- data/lib/xolphin/api/responses/request_ee.rb +29 -0
- data/lib/xolphin/api/responses/request_validation.rb +37 -0
- data/lib/xolphin/api/responses/request_validation_domain.rb +35 -0
- data/lib/xolphin/api/responses/requests.rb +25 -0
- data/lib/xolphin/api/version.rb +5 -0
- data/xolphin-api-0.1.0.gem +0 -0
- data/xolphin-api.gemspec +26 -0
- metadata +136 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 8f790957461ab10603a64a29989e326f0cbd082b
|
4
|
+
data.tar.gz: 0af1d2247200cd535fc67468738c4dcbe4ca363f
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: e0ab8d6c3bac39af024cc3e8d79012159a4902e7f7eff884e082aa0c1709a099f342ab8d10cb63b70f9fc290bda97533763e912eb8cd8754a4713660a7d33469
|
7
|
+
data.tar.gz: 5a6f3cf58d25bf9ea11a57e0ee22d6bd646642fc82a6edc87c1c9eabf58cf10311f13f8b56c09b56d84e32cbd8e1fd7f3991e53c021670c03a2b6b0470cd7cea
|
data/.gitignore
ADDED
data/.rspec
ADDED
data/.rubocop.yml
ADDED
@@ -0,0 +1,28 @@
|
|
1
|
+
# Xolphin-API RuboCop configuration
|
2
|
+
|
3
|
+
AllCops:
|
4
|
+
TargetRubyVersion: 2.2
|
5
|
+
DisplayCopNames: true
|
6
|
+
DisplayStyleGuide: true
|
7
|
+
|
8
|
+
Metrics/AbcSize:
|
9
|
+
Enabled: false
|
10
|
+
|
11
|
+
Metrics/LineLength:
|
12
|
+
Enabled: false
|
13
|
+
|
14
|
+
Metrics/MethodLength:
|
15
|
+
Enabled: false
|
16
|
+
|
17
|
+
Style/Documentation:
|
18
|
+
Enabled: false
|
19
|
+
|
20
|
+
Style/NumericLiterals:
|
21
|
+
Exclude:
|
22
|
+
- 'spec/**/*.rb'
|
23
|
+
|
24
|
+
Style/MutableConstant:
|
25
|
+
Enabled: false
|
26
|
+
|
27
|
+
Style/StringLiterals:
|
28
|
+
Enabled: false
|
data/.travis.yml
ADDED
data/Gemfile
ADDED
data/LICENSE.txt
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
The MIT License (MIT)
|
2
|
+
|
3
|
+
Copyright (c) 2016 Kentaa
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
7
|
+
in the Software without restriction, including without limitation the rights
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
10
|
+
furnished to do so, subject to the following conditions:
|
11
|
+
|
12
|
+
The above copyright notice and this permission notice shall be included in
|
13
|
+
all copies or substantial portions of the Software.
|
14
|
+
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
21
|
+
THE SOFTWARE.
|
data/README.md
ADDED
@@ -0,0 +1,169 @@
|
|
1
|
+
# Xolphin API gem for Ruby
|
2
|
+
xolphin-api-ruby is a library which allows quick integration of the [Xolphin REST API](https://api.xolphin.com) in Ruby to automated ordering, issuance and installation of SSL Certificates.
|
3
|
+
|
4
|
+
## About Xolphin
|
5
|
+
[Xolphin](https://www.xolphin.nl/) is the largest supplier of [SSL Certificates](https://www.sslcertificaten.nl) and [Digital Signatures](https://www.digitalehandtekeningen.nl) in the Netherlands. Xolphin has
|
6
|
+
a professional team providing reliable support and rapid issuance of SSL Certificates at an affordable price from industry leading brands such as Comodo, GeoTrust, GlobalSign, Thawte and Symantec.
|
7
|
+
|
8
|
+
## Installation
|
9
|
+
|
10
|
+
Add this line to your application's Gemfile:
|
11
|
+
|
12
|
+
```ruby
|
13
|
+
gem 'xolphin-api'
|
14
|
+
```
|
15
|
+
|
16
|
+
And then execute:
|
17
|
+
|
18
|
+
$ bundle
|
19
|
+
|
20
|
+
Or install it yourself as:
|
21
|
+
|
22
|
+
$ gem install xolphin-api
|
23
|
+
|
24
|
+
## Usage
|
25
|
+
|
26
|
+
### Client initialization
|
27
|
+
|
28
|
+
```ruby
|
29
|
+
require 'xolphin/api'
|
30
|
+
|
31
|
+
client = Xolphin::Api::Client.new('<username>', '<password>')
|
32
|
+
```
|
33
|
+
|
34
|
+
### Requests
|
35
|
+
|
36
|
+
#### Getting list of requests
|
37
|
+
|
38
|
+
```ruby
|
39
|
+
requests = client.request.all
|
40
|
+
requests.each do |request|
|
41
|
+
puts request.id, request.product.id
|
42
|
+
end
|
43
|
+
```
|
44
|
+
|
45
|
+
#### Getting request by ID
|
46
|
+
|
47
|
+
```ruby
|
48
|
+
request = client.request.get(960000024)
|
49
|
+
puts request.product.brand
|
50
|
+
```
|
51
|
+
|
52
|
+
#### Requesting certificate
|
53
|
+
|
54
|
+
```ruby
|
55
|
+
ccr = client.request.create(24, 1, 'csr string', Xolphin::Api::DcvType::EMAIL)
|
56
|
+
ccr.address = 'Address'
|
57
|
+
ccr.approver_first_name = 'FirstName'
|
58
|
+
ccr.approver_last_name = 'LastName'
|
59
|
+
ccr.approver_phone = '+12345678901'
|
60
|
+
ccr.approver_email = 'email@domain.com'
|
61
|
+
ccr.zipcode = '123456'
|
62
|
+
ccr.city = 'City'
|
63
|
+
ccr.company = 'Company'
|
64
|
+
ccr.subject_alternative_names = ['test1.domain.com', 'test2.domain.com']
|
65
|
+
ccr.dcv = [{
|
66
|
+
'domain' => 'test1.domain.com',
|
67
|
+
'dcvType' => Xolphin::Api::DcvType::EMAIL,
|
68
|
+
'approverEmail' => 'email@domain.com'
|
69
|
+
}]
|
70
|
+
|
71
|
+
request = client.request.send(ccr)
|
72
|
+
puts request.id
|
73
|
+
```
|
74
|
+
|
75
|
+
#### Reissue certificate
|
76
|
+
|
77
|
+
```ruby
|
78
|
+
certificate = client.certificate.get(<certificate_id>);
|
79
|
+
request = Xolphin::Api::CertificateRequests::ReissueCertificateRequest.new(<csr_string>,"EMAIL")
|
80
|
+
client.certificate.reissue(certificate.id, request)
|
81
|
+
```
|
82
|
+
|
83
|
+
#### Renew certificate
|
84
|
+
|
85
|
+
```ruby
|
86
|
+
certificate = client.certificate.get(<certificate_id>);
|
87
|
+
request = Xolphin::Api::CertificateRequests::RenewCertificateRequest.new(certificate.product.id, <years>, <csr_string>, 'FILE')
|
88
|
+
client.certificate.renew(certificate.id, request)
|
89
|
+
```
|
90
|
+
|
91
|
+
#### Create a note
|
92
|
+
|
93
|
+
```ruby
|
94
|
+
result = client.request.sendNote(1234, 'message')
|
95
|
+
```
|
96
|
+
|
97
|
+
#### Get list of notes
|
98
|
+
|
99
|
+
```ruby
|
100
|
+
result = client.request.getNotes(1234)
|
101
|
+
result.notes.each do |note|
|
102
|
+
puts note.message_body, note.created_at
|
103
|
+
end
|
104
|
+
```
|
105
|
+
|
106
|
+
#### Send a "Comodo Subscriber Agreement" email
|
107
|
+
|
108
|
+
```ruby
|
109
|
+
# currently available languages: en, de, fr, nl
|
110
|
+
result = client.request.sendComodoSAEmail(1234, 'email@example.com', '<language>');
|
111
|
+
```
|
112
|
+
|
113
|
+
#### Request an "Encryption Everywhere" certificate
|
114
|
+
```ruby
|
115
|
+
request = client.request.createEE
|
116
|
+
request.csr = "<csr_string>"
|
117
|
+
request.approver_first_name = "FirstName"
|
118
|
+
request.approver_last_name = "LastName"
|
119
|
+
request.approver_phone = "+1234567890"
|
120
|
+
request.approver_email = "email@domain.com"
|
121
|
+
request.subject_alternative_names = ["test1.domain.com", "test2.domain.com"]
|
122
|
+
request.dcv_type = "FILE"
|
123
|
+
response = client.request.sendEE(request)
|
124
|
+
```
|
125
|
+
|
126
|
+
### Certificate
|
127
|
+
|
128
|
+
#### Certificates list and expirations
|
129
|
+
|
130
|
+
```ruby
|
131
|
+
certificates = client.certificate.all
|
132
|
+
certificates.each do |certificate|
|
133
|
+
puts certificate.id, certificate.expired?
|
134
|
+
end
|
135
|
+
```
|
136
|
+
|
137
|
+
#### Download certificate
|
138
|
+
|
139
|
+
```ruby
|
140
|
+
certificate = client.certificate.download(960000031, Xolphin::Api::FormatType::CRT)
|
141
|
+
File.write('crt.crt', certificate)
|
142
|
+
```
|
143
|
+
|
144
|
+
### Support
|
145
|
+
|
146
|
+
#### Products list
|
147
|
+
|
148
|
+
```ruby
|
149
|
+
products = client.support.products
|
150
|
+
products.each do |product|
|
151
|
+
puts product.id, product.brand
|
152
|
+
end
|
153
|
+
```
|
154
|
+
|
155
|
+
#### Decode CSR
|
156
|
+
|
157
|
+
```ruby
|
158
|
+
data = client.support.decode_csr('csr string')
|
159
|
+
puts data.type, data.size
|
160
|
+
```
|
161
|
+
|
162
|
+
## Contributing
|
163
|
+
|
164
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/xolphin/xolphin-api-ruby.
|
165
|
+
|
166
|
+
|
167
|
+
## License
|
168
|
+
|
169
|
+
The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
|
data/Rakefile
ADDED
@@ -0,0 +1,12 @@
|
|
1
|
+
require "bundler/gem_tasks"
|
2
|
+
require "rspec/core/rake_task"
|
3
|
+
require "rubocop/rake_task"
|
4
|
+
|
5
|
+
# Endpoint specs make an actual HTTP requests so we exclude them from CI.
|
6
|
+
RSpec::Core::RakeTask.new(:spec) do |t|
|
7
|
+
t.rspec_opts = "--tag ~endpoint"
|
8
|
+
end
|
9
|
+
|
10
|
+
RuboCop::RakeTask.new(:rubocop)
|
11
|
+
|
12
|
+
task default: [:spec, :rubocop]
|
data/bin/console
ADDED
@@ -0,0 +1,14 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
|
3
|
+
require "bundler/setup"
|
4
|
+
require "xolphin/api"
|
5
|
+
|
6
|
+
# You can add fixtures and/or initialization code here to make experimenting
|
7
|
+
# with your gem easier. You can also use a different console, if you like.
|
8
|
+
|
9
|
+
# (If you use this, don't forget to add pry to your Gemfile!)
|
10
|
+
# require "pry"
|
11
|
+
# Pry.start
|
12
|
+
|
13
|
+
require "irb"
|
14
|
+
IRB.start
|
data/bin/setup
ADDED
@@ -0,0 +1,25 @@
|
|
1
|
+
require_relative "../lib/xolphin/api"
|
2
|
+
|
3
|
+
email = '<email>';
|
4
|
+
|
5
|
+
client = Xolphin::Api::Client.new(Credentials.username, Credentials.password)
|
6
|
+
certificate = client.certificate.get(950000487);
|
7
|
+
request = Xolphin::Api::CertificateRequests::ReissueCertificateRequest.new("-----BEGIN CERTIFICATE REQUEST-----
|
8
|
+
MIICzDCCAbQCAQAwgYYxCzAJBgNVBAYTAkJSMQ0wCwYDVQQIDAR0ZXN0MQ0wCwYD
|
9
|
+
VQQHDAR0ZXN0MQ0wCwYDVQQKDAR0ZXN0MQ0wCwYDVQQLDAR0ZXN0MRswGQYDVQQD
|
10
|
+
DBJleGNoYW5nZS5taGltZWUubmwxHjAcBgkqhkiG9w0BCQEWD3BpemRhQGdtYWls
|
11
|
+
LmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMfH+piYuiOBlGSS
|
12
|
+
wN0R9MuMqWa6XbUE4dwjzbCcocoqW4cLC9SWpHoYjwlSpsuyJNrzxe5rwiiyNGUi
|
13
|
+
Unm+HrY1+ADa+sCQhL2+siPd6nIZeNWrC6Zw1KDaAVWmm8x2gZb7+aDyA7l35BHB
|
14
|
+
2LJ2tbgvcpLr8dOcN4f0DI719eEM5QtpYvf5YVEKCrAizirwFhx4xjPVW4jHsM1G
|
15
|
+
wb0f115+HJgB69cign5XCKykqZ2lmJpzfZ1DQ7vU2MyRzxukD1QQy8aDf5w3lmlY
|
16
|
+
baB1ofchJ5YiLO7Y0fxW18J6zEbfrsHgECQ29COpojNsdDy30Vt9g5br89EzdZlb
|
17
|
+
End4NRsCAwEAAaAAMA0GCSqGSIb3DQEBBQUAA4IBAQBuOIZ4R6kfC5b7p8SOwXkS
|
18
|
+
Q/g93311lGT7ArKn/XyFFrTEtYa3SN9QotaIgNxG6gXxgh/LD8g8w9q3wYswayzY
|
19
|
+
cz6+5YjfblHcrWJ5zwVrKyD+8QLuC5xhrEFBBmYjzxihjAWkYtvaC4YKuo1PxESs
|
20
|
+
RFlZosJFLIZpToXnGUfc5HgaI1/270plv57+1nOP4r+129d9r94z8sNDZACyi7Mp
|
21
|
+
mHc7dQXFcmnyCk3PW9uwqU13pT08yrRHRTOTB25DkGqNG8IHtv9XJqfL1u7/FJil
|
22
|
+
7W7eDOdoDXRHBZX9RlEZlekHE7kpziH7E7517BOX/RTmGLLQRmqPiZWkU8eWzHCl
|
23
|
+
-----END CERTIFICATE REQUEST-----", 'EMAIL')
|
24
|
+
request.approver_email = "test@gmail.com"
|
25
|
+
puts client.certificate.reissue(certificate.id, request).inspect
|
@@ -0,0 +1,22 @@
|
|
1
|
+
require_relative "../lib/xolphin/api"
|
2
|
+
|
3
|
+
client = Xolphin::Api::Client.new(Credentials.username, Credentials.password, true)
|
4
|
+
certificate = client.certificate.get(950000487);
|
5
|
+
request = Xolphin::Api::CertificateRequests::RenewCertificateRequest.new(certificate.product.id, 1, "-----BEGIN CERTIFICATE REQUEST-----
|
6
|
+
MIICzDCCAbQCAQAwgYYxCzAJBgNVBAYTAkJSMQ0wCwYDVQQIDAR0ZXN0MQ0wCwYD
|
7
|
+
VQQHDAR0ZXN0MQ0wCwYDVQQKDAR0ZXN0MQ0wCwYDVQQLDAR0ZXN0MRswGQYDVQQD
|
8
|
+
DBJleGNoYW5nZS5taGltZWUubmwxHjAcBgkqhkiG9w0BCQEWD3BpemRhQGdtYWls
|
9
|
+
LmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMfH+piYuiOBlGSS
|
10
|
+
wN0R9MuMqWa6XbUE4dwjzbCcocoqW4cLC9SWpHoYjwlSpsuyJNrzxe5rwiiyNGUi
|
11
|
+
Unm+HrY1+ADa+sCQhL2+siPd6nIZeNWrC6Zw1KDaAVWmm8x2gZb7+aDyA7l35BHB
|
12
|
+
2LJ2tbgvcpLr8dOcN4f0DI719eEM5QtpYvf5YVEKCrAizirwFhx4xjPVW4jHsM1G
|
13
|
+
wb0f115+HJgB69cign5XCKykqZ2lmJpzfZ1DQ7vU2MyRzxukD1QQy8aDf5w3lmlY
|
14
|
+
baB1ofchJ5YiLO7Y0fxW18J6zEbfrsHgECQ29COpojNsdDy30Vt9g5br89EzdZlb
|
15
|
+
End4NRsCAwEAAaAAMA0GCSqGSIb3DQEBBQUAA4IBAQBuOIZ4R6kfC5b7p8SOwXkS
|
16
|
+
Q/g93311lGT7ArKn/XyFFrTEtYa3SN9QotaIgNxG6gXxgh/LD8g8w9q3wYswayzY
|
17
|
+
cz6+5YjfblHcrWJ5zwVrKyD+8QLuC5xhrEFBBmYjzxihjAWkYtvaC4YKuo1PxESs
|
18
|
+
RFlZosJFLIZpToXnGUfc5HgaI1/270plv57+1nOP4r+129d9r94z8sNDZACyi7Mp
|
19
|
+
mHc7dQXFcmnyCk3PW9uwqU13pT08yrRHRTOTB25DkGqNG8IHtv9XJqfL1u7/FJil
|
20
|
+
7W7eDOdoDXRHBZX9RlEZlekHE7kpziH7E7517BOX/RTmGLLQRmqPiZWkU8eWzHCl
|
21
|
+
-----END CERTIFICATE REQUEST-----", 'FILE')
|
22
|
+
puts client.certificate.renew(certificate.id, request).inspect
|
@@ -0,0 +1,9 @@
|
|
1
|
+
require_relative "../lib/xolphin/api"
|
2
|
+
require_relative "_credentials"
|
3
|
+
|
4
|
+
client = Xolphin::Api::Client.new(Credentials.username, Credentials.password, true)
|
5
|
+
result = client.request.getNotes(960003015)
|
6
|
+
puts result.inspect
|
7
|
+
result.notes.each do |note|
|
8
|
+
puts note.message_body, note.created_at
|
9
|
+
end
|
@@ -0,0 +1,29 @@
|
|
1
|
+
require_relative "../lib/xolphin/api"
|
2
|
+
|
3
|
+
client = Xolphin::Api::Client.new(Credentials.username, Credentials.password, true)
|
4
|
+
request = client.request.createEE
|
5
|
+
request.csr = "-----BEGIN CERTIFICATE REQUEST-----
|
6
|
+
MIICuDCCAaACADB0MQswCQYDVQQGEwJOTDEWMBQGA1UEAxMNd3d3LnNzbGRldi5u
|
7
|
+
bDEWMBQGA1UEBxMNSGVlcmh1Z293YWFyZDEQMA4GA1UEChMHWG9scGhpbjEWMBQG
|
8
|
+
A1UECBMNTm9vcmQtSG9sbGFuZDELMAkGA1UECxMCSVQwggEiMA0GCSqGSIb3DQEB
|
9
|
+
AQUAA4IBDwAwggEKAoIBAQDkTFMNKhWObiUH1xDeRcqYiROKvJZEI7njDlQbXeVC
|
10
|
+
qSaBSBClJD98OSgE0+arnVyJ5Fnjkovgb9aC8HbWYbiD1tbWD+hKC1wPODEvknl7
|
11
|
+
jfRpO36cIglIhftHn5p0k+f86uS2Nz1yr+5qwAEQ7C0UQZxMuBbzK6Uv8m0TbAVV
|
12
|
+
CQ+i+uJfuXSsAT8LZbyoJsu50ZySG3uEhCSISh1cS/t/M2INHbXfzGA3GWH2FXCZ
|
13
|
+
Qd9eLSBAVEanIr3TlRpNU3f0IDwJpm56BVTNtNL7GI2NilfUF9oSo9PSlPbAkPsN
|
14
|
+
BrVdOiZgiOEO74rXE8fjA5Zm8uic6MyFRo4FuTUBWubrAgMBAAGgADANBgkqhkiG
|
15
|
+
9w0BAQsFAAOCAQEAHuB6643oI7oPw5SbFQAcfTfQbyRTXNqwYOO8YRcCkDIu7aX9
|
16
|
+
pupGvf+cSa5IDcZ6Dz22/Khp5rYlcutAtEN7d8MNBwBlcVzbWL+DuTU5ZWAxcRi4
|
17
|
+
nmiw/C+RxFF+WsUcjwb+dNrTYkz03t7voMg/0NS7RRU/oTu8heDDcH+Ffam1bZJQ
|
18
|
+
zi21dz/AsjG9Jc6GJqZs0ImEwCQlBhJYnXPj3FB8U/mzSWSfq502fdtmQrvIgHmI
|
19
|
+
RLuxVO9QX0YLQ0ew1x2z+eFfBsfSI1+DkF4+5TrfJP6jQyHBR+VDdGYBO2d8rBw7
|
20
|
+
ITIJC9tt2F4GjaPAI1xY9eoq/QfZxzNoNufMuw==
|
21
|
+
-----END CERTIFICATE REQUEST-----"
|
22
|
+
request.approver_first_name = "FirstName"
|
23
|
+
request.approver_last_name = "LastName"
|
24
|
+
request.approver_phone = "+1234567890"
|
25
|
+
request.approver_email = "email@domain.com"
|
26
|
+
request.subject_alternative_names = ["test1.domain.com", "test2.domain.com"]
|
27
|
+
request.dcv_type = "FILE"
|
28
|
+
response = client.request.sendEE(request)
|
29
|
+
puts response.inspect
|
data/lib/xolphin/api.rb
ADDED
@@ -0,0 +1,32 @@
|
|
1
|
+
require_relative "api/certificate_requests/create_certificate_request"
|
2
|
+
require_relative "api/certificate_requests/create_ee_request"
|
3
|
+
require_relative "api/certificate_requests/certificate_reissue"
|
4
|
+
require_relative "api/certificate_requests/certificate_renew"
|
5
|
+
|
6
|
+
require_relative "api/endpoint/certificate"
|
7
|
+
require_relative "api/endpoint/request"
|
8
|
+
require_relative "api/endpoint/support"
|
9
|
+
|
10
|
+
require_relative "api/responses/base"
|
11
|
+
require_relative "api/responses/certificate"
|
12
|
+
require_relative "api/responses/certificates"
|
13
|
+
require_relative "api/responses/csr_data"
|
14
|
+
require_relative "api/responses/product_price"
|
15
|
+
require_relative "api/responses/product"
|
16
|
+
require_relative "api/responses/products"
|
17
|
+
require_relative "api/responses/request_validation_domain"
|
18
|
+
require_relative "api/responses/request_validation"
|
19
|
+
require_relative "api/responses/request"
|
20
|
+
require_relative "api/responses/request_ee"
|
21
|
+
require_relative "api/responses/requests"
|
22
|
+
require_relative "api/responses/note"
|
23
|
+
require_relative "api/responses/notes"
|
24
|
+
|
25
|
+
require_relative "api/client"
|
26
|
+
require_relative "api/http"
|
27
|
+
|
28
|
+
require_relative "api/dcv_type"
|
29
|
+
require_relative "api/format_type"
|
30
|
+
require_relative "api/product_type"
|
31
|
+
|
32
|
+
require_relative "api/version"
|