digicert 0.4.0 → 0.4.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/CHANGELOG.md +5 -0
- data/lib/digicert/order.rb +4 -0
- data/lib/digicert/ssl_certificate/ssl_ev_multi_domain.rb +13 -0
- data/lib/digicert/ssl_certificate/ssl_multi_domain.rb +13 -0
- data/lib/digicert/version.rb +1 -1
- data/spec/digicert/ssl_certificate/ssl_ev_multi_domain_spec.rb +45 -0
- data/spec/digicert/ssl_certificate/ssl_multi_domain_spec.rb +45 -0
- metadata +7 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 883ed8612b620560f6fd9c88e9cedff641d82b0905ea3fbb740c547b59c7db24
|
4
|
+
data.tar.gz: 88bffcfad697e5b17e52c054b4ce39df6a230f4eb2aff16376ddd17732323b62
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: be0bbcb0c268603405689204f47e8524ff7a801eac7b94ffd7765de1c687c528e78a4687841e5eec049c486f5ae1d78ede97f9dc0c049b9d7ea841580f95fa04
|
7
|
+
data.tar.gz: f1272cdd15b7b58188f751cc45d1976a14e42239ea2b166cfd13ed7e692ea24db15f4081fbaf93d24b6ed0568a9bcec7e4857508dfbd646bfd92188ed7a69993
|
data/CHANGELOG.md
CHANGED
data/lib/digicert/order.rb
CHANGED
@@ -4,6 +4,8 @@ require "digicert/findable"
|
|
4
4
|
require "digicert/ssl_certificate/ssl_plus"
|
5
5
|
require "digicert/ssl_certificate/ssl_ev_plus"
|
6
6
|
require "digicert/ssl_certificate/ssl_wildcard"
|
7
|
+
require "digicert/ssl_certificate/ssl_multi_domain"
|
8
|
+
require "digicert/ssl_certificate/ssl_ev_multi_domain"
|
7
9
|
|
8
10
|
require "digicert/client_certificate/premium"
|
9
11
|
require "digicert/client_certificate/private_premium"
|
@@ -73,6 +75,8 @@ module Digicert
|
|
73
75
|
ssl_plus: Digicert::SSLCertificate::SSLPlus,
|
74
76
|
ssl_wildcard: Digicert::SSLCertificate::SSLWildcard,
|
75
77
|
ssl_ev_plus: Digicert::SSLCertificate::SSLEVPlus,
|
78
|
+
ssl_multi_domain: Digicert::SSLCertificate::SSLMultiDomain,
|
79
|
+
ssl_ev_multi_domain: Digicert::SSLCertificate::SSLEVMultiDomain,
|
76
80
|
client_premium: Digicert::ClientCertificate::Premium,
|
77
81
|
email_security_plus: Digicert::ClientCertificate::EmailSecurityPlus,
|
78
82
|
digital_signature_plus: Digicert::ClientCertificate::DigitalSignaturePlus,
|
data/lib/digicert/version.rb
CHANGED
@@ -0,0 +1,45 @@
|
|
1
|
+
require "spec_helper"
|
2
|
+
|
3
|
+
RSpec.describe Digicert::SSLCertificate::SSLEVMultiDomain do
|
4
|
+
describe ".create" do
|
5
|
+
it "creates a new order for a ssl multi domain certificate" do
|
6
|
+
stub_digicert_order_create_api(
|
7
|
+
"ssl_ev_multi_domain", order_attributes
|
8
|
+
)
|
9
|
+
|
10
|
+
order = Digicert::SSLCertificate::SSLEVMultiDomain.create(
|
11
|
+
order_attributes,
|
12
|
+
)
|
13
|
+
|
14
|
+
expect(order.id).not_to be_nil
|
15
|
+
expect(order.requests.first.id).not_to be_nil
|
16
|
+
expect(order.requests.first.status).to eq("pending")
|
17
|
+
end
|
18
|
+
end
|
19
|
+
|
20
|
+
def order_attributes
|
21
|
+
{
|
22
|
+
certificate: {
|
23
|
+
organization_units: ["Developer Operations"],
|
24
|
+
server_platform: { id: 45 },
|
25
|
+
profile_option: "some_ssl_profile",
|
26
|
+
dns_names: [
|
27
|
+
"blue.digicert.com",
|
28
|
+
"white.digicert.com",
|
29
|
+
"blue.white.digicert.com",
|
30
|
+
],
|
31
|
+
|
32
|
+
# Required for certificate
|
33
|
+
csr: "------ [CSR HERE] ------",
|
34
|
+
common_name: "digicert.com",
|
35
|
+
signature_hash: "sha256",
|
36
|
+
},
|
37
|
+
organization: { id: 117483 },
|
38
|
+
validity_years: 3,
|
39
|
+
custom_expiration_date: "2017-05-18",
|
40
|
+
comments: "Comments for the the approver",
|
41
|
+
disable_renewal_notifications: false,
|
42
|
+
renewal_of_order_id: 314152,
|
43
|
+
}
|
44
|
+
end
|
45
|
+
end
|
@@ -0,0 +1,45 @@
|
|
1
|
+
require "spec_helper"
|
2
|
+
|
3
|
+
RSpec.describe Digicert::SSLCertificate::SSLMultiDomain do
|
4
|
+
describe ".create" do
|
5
|
+
it "creates a new order for a ssl multi domain certificate" do
|
6
|
+
stub_digicert_order_create_api(
|
7
|
+
"ssl_multi_domain", order_attributes
|
8
|
+
)
|
9
|
+
|
10
|
+
order = Digicert::SSLCertificate::SSLMultiDomain.create(
|
11
|
+
order_attributes
|
12
|
+
)
|
13
|
+
|
14
|
+
expect(order.id).not_to be_nil
|
15
|
+
expect(order.requests.first.id).not_to be_nil
|
16
|
+
expect(order.requests.first.status).to eq("pending")
|
17
|
+
end
|
18
|
+
end
|
19
|
+
|
20
|
+
def order_attributes
|
21
|
+
{
|
22
|
+
certificate: {
|
23
|
+
organization_units: ["Developer Operations"],
|
24
|
+
server_platform: { id: 45 },
|
25
|
+
profile_option: "some_ssl_profile",
|
26
|
+
dns_names: [
|
27
|
+
"blue.digicert.com",
|
28
|
+
"white.digicert.com",
|
29
|
+
"blue.white.digicert.com"
|
30
|
+
],
|
31
|
+
|
32
|
+
# Required for certificate
|
33
|
+
csr: "------ [CSR HERE] ------",
|
34
|
+
common_name: "digicert.com",
|
35
|
+
signature_hash: "sha256",
|
36
|
+
},
|
37
|
+
organization: { id: 117483 },
|
38
|
+
validity_years: 3,
|
39
|
+
custom_expiration_date: "2017-05-18",
|
40
|
+
comments: "Comments for the the approver",
|
41
|
+
disable_renewal_notifications: false,
|
42
|
+
renewal_of_order_id: 314152,
|
43
|
+
}
|
44
|
+
end
|
45
|
+
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: digicert
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ribose Inc.
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-
|
11
|
+
date: 2018-10-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: r509
|
@@ -177,7 +177,9 @@ files:
|
|
177
177
|
- lib/digicert/response.rb
|
178
178
|
- lib/digicert/rspec.rb
|
179
179
|
- lib/digicert/ssl_certificate/base.rb
|
180
|
+
- lib/digicert/ssl_certificate/ssl_ev_multi_domain.rb
|
180
181
|
- lib/digicert/ssl_certificate/ssl_ev_plus.rb
|
182
|
+
- lib/digicert/ssl_certificate/ssl_multi_domain.rb
|
181
183
|
- lib/digicert/ssl_certificate/ssl_plus.rb
|
182
184
|
- lib/digicert/ssl_certificate/ssl_wildcard.rb
|
183
185
|
- lib/digicert/util.rb
|
@@ -213,7 +215,9 @@ files:
|
|
213
215
|
- spec/digicert/organization_spec.rb
|
214
216
|
- spec/digicert/product_spec.rb
|
215
217
|
- spec/digicert/request_spec.rb
|
218
|
+
- spec/digicert/ssl_certificate/ssl_ev_multi_domain_spec.rb
|
216
219
|
- spec/digicert/ssl_certificate/ssl_ev_plus_spec.rb
|
220
|
+
- spec/digicert/ssl_certificate/ssl_multi_domain_spec.rb
|
217
221
|
- spec/digicert/ssl_certificate/ssl_plus_spec.rb
|
218
222
|
- spec/digicert/ssl_certificate/ssl_wildcard_spec.rb
|
219
223
|
- spec/digicert/util_spec.rb
|
@@ -285,7 +289,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
285
289
|
version: '0'
|
286
290
|
requirements: []
|
287
291
|
rubyforge_project:
|
288
|
-
rubygems_version: 2.
|
292
|
+
rubygems_version: 2.7.3
|
289
293
|
signing_key:
|
290
294
|
specification_version: 4
|
291
295
|
summary: Digicert Ruby API.
|