digicert 0.4.0 → 0.4.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: e2099a3dbed371814f946054f72c991ca11b8327
4
- data.tar.gz: 14593dbf7ac9ef432fb80fdf1314d6dfc790b81e
2
+ SHA256:
3
+ metadata.gz: 883ed8612b620560f6fd9c88e9cedff641d82b0905ea3fbb740c547b59c7db24
4
+ data.tar.gz: 88bffcfad697e5b17e52c054b4ce39df6a230f4eb2aff16376ddd17732323b62
5
5
  SHA512:
6
- metadata.gz: 9914c23d6e411677f84f8d926408d85a6487f4d050d573106c3e3b23b0df6380acd914b670e59c777650f9330e3ea6fcb68f7a9b63632a77158f70721a9203bf
7
- data.tar.gz: d970af1cb439d97d7c9a35f70ebae5b813149b208922641983e3c0c4120d32c8c5075db0344d385b260d75ad0cb4cac2fdf419d10fb882bbaec5387368cd5e1c
6
+ metadata.gz: be0bbcb0c268603405689204f47e8524ff7a801eac7b94ffd7765de1c687c528e78a4687841e5eec049c486f5ae1d78ede97f9dc0c049b9d7ea841580f95fa04
7
+ data.tar.gz: f1272cdd15b7b58188f751cc45d1976a14e42239ea2b166cfd13ed7e692ea24db15f4081fbaf93d24b6ed0568a9bcec7e4857508dfbd646bfd92188ed7a69993
@@ -1,3 +1,8 @@
1
+ ## 0.4.1 (2018-10-26)
2
+
3
+ * Add support for SSL Multi Domain Order
4
+ * Add support for ssl ev multi domain Order
5
+
1
6
  ## 0.4.0 (2018-07-22)
2
7
 
3
8
  * Add option support on certificate duplication
@@ -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,
@@ -0,0 +1,13 @@
1
+ require "digicert/ssl_certificate/base"
2
+
3
+ module Digicert
4
+ module SSLCertificate
5
+ class SSLEVMultiDomain < Digicert::SSLCertificate::Base
6
+ private
7
+
8
+ def certificate_type
9
+ "ssl_ev_multi_domain"
10
+ end
11
+ end
12
+ end
13
+ end
@@ -0,0 +1,13 @@
1
+ require "digicert/ssl_certificate/base"
2
+
3
+ module Digicert
4
+ module SSLCertificate
5
+ class SSLMultiDomain < Digicert::SSLCertificate::Base
6
+ private
7
+
8
+ def certificate_type
9
+ "ssl_multi_domain"
10
+ end
11
+ end
12
+ end
13
+ end
@@ -21,5 +21,5 @@
21
21
  # ++
22
22
 
23
23
  module Digicert
24
- VERSION = "0.4.0".freeze
24
+ VERSION = "0.4.1".freeze
25
25
  end
@@ -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.0
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-07-22 00:00:00.000000000 Z
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.6.8
292
+ rubygems_version: 2.7.3
289
293
  signing_key:
290
294
  specification_version: 4
291
295
  summary: Digicert Ruby API.