dnsimple 5.1.0 → 5.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/dnsimple/struct/certificate.rb +21 -2
- data/lib/dnsimple/version.rb +1 -1
- data/spec/dnsimple/client/certificates_spec.rb +34 -33
- data/spec/fixtures.http/getCertificate/success.http +11 -11
- data/spec/fixtures.http/issueLetsencryptCertificate/success.http +19 -21
- data/spec/fixtures.http/issueRenewalLetsencryptCertificate/success.http +19 -21
- data/spec/fixtures.http/listCertificates/success.http +11 -11
- data/spec/fixtures.http/purchaseLetsencryptCertificate/success.http +21 -21
- data/spec/fixtures.http/purchaseRenewalLetsencryptCertificate/success.http +21 -21
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: eb65512fa0b18965225026494660cee2722a79b2bfd0f54e514c66ab4671d4c6
|
4
|
+
data.tar.gz: af619ac80882ec17cea64ba6ea7d3552688cb08a2b0306aaf2b909e8d23a5555
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 32f3d80ebbf898ed8dcd8ecd30b32f1e27caf5883f05c8a86874227a739eedd8b81cb30dbb31651797de927257d025b54bc57d9d324c5eb4fb196483ecf22e60
|
7
|
+
data.tar.gz: 5f793cf92e6b11a46eca6eaaee769580cb1b168b94d3b9e10c0605eda6865c954dacee9daf213575b950b5c7557475947c0e578d3267208b5098d96073989653
|
data/CHANGELOG.md
CHANGED
@@ -2,6 +2,10 @@
|
|
2
2
|
|
3
3
|
This project uses [Semantic Versioning 2.0.0](http://semver.org/).
|
4
4
|
|
5
|
+
## 5.2.0
|
6
|
+
|
7
|
+
- CHANGED: `Certificate#expires_on` (date only) is deprecated in favor of `Certificate#expires_at` (timestamp). (dnsimple/dnsimple-ruby#190)
|
8
|
+
|
5
9
|
## 5.1.0
|
6
10
|
|
7
11
|
- CHANGED: `Domain#expires_on` (date only) is deprecated in favor of `Domain#expires_at` (timestamp). (dnsimple/dnsimple-ruby#186)
|
@@ -4,6 +4,13 @@ module Dnsimple
|
|
4
4
|
module Struct
|
5
5
|
|
6
6
|
class Certificate < Base
|
7
|
+
|
8
|
+
def initialize(attributes = {})
|
9
|
+
attributes.delete("expires_on")
|
10
|
+
super
|
11
|
+
@expires_on = Date.parse(expires_at).to_s if expires_at
|
12
|
+
end
|
13
|
+
|
7
14
|
# @return [Integer] The certificate ID in DNSimple.
|
8
15
|
attr_accessor :id
|
9
16
|
|
@@ -40,8 +47,20 @@ module Dnsimple
|
|
40
47
|
# @return [String] When the certificate was last updated in DNSimple.
|
41
48
|
attr_accessor :updated_at
|
42
49
|
|
43
|
-
# @return [String]
|
44
|
-
attr_accessor :
|
50
|
+
# @return [String] The timestamp when the certificate will expire.
|
51
|
+
attr_accessor :expires_at
|
52
|
+
|
53
|
+
# @deprecated Please use #expires_at instead.
|
54
|
+
# @return [String] The date when the certificate will expire.
|
55
|
+
def expires_on
|
56
|
+
warn "[DEPRECATION] Certificate#expires_on is deprecated. Please use `expires_at` instead."
|
57
|
+
@expires_on
|
58
|
+
end
|
59
|
+
|
60
|
+
def expires_on=(expiration_date)
|
61
|
+
warn "[DEPRECATION] Certificate#expires_on= is deprecated. Please use `expires_at=` instead."
|
62
|
+
@expires_on = expiration_date
|
63
|
+
end
|
45
64
|
end
|
46
65
|
|
47
66
|
end
|
data/lib/dnsimple/version.rb
CHANGED
@@ -65,7 +65,7 @@ describe Dnsimple::Client, ".certificates" do
|
|
65
65
|
end
|
66
66
|
|
67
67
|
let(:account_id) { 1010 }
|
68
|
-
let(:domain_id) { "
|
68
|
+
let(:domain_id) { "dnsimple.us" }
|
69
69
|
|
70
70
|
it "delegates to client.paginate" do
|
71
71
|
expect(subject).to receive(:paginate).with(:certificates, account_id, domain_id, foo: "bar")
|
@@ -73,16 +73,16 @@ describe Dnsimple::Client, ".certificates" do
|
|
73
73
|
end
|
74
74
|
|
75
75
|
it "supports sorting" do
|
76
|
-
subject.all_certificates(account_id, domain_id, sort: "id:asc,
|
76
|
+
subject.all_certificates(account_id, domain_id, sort: "id:asc,expiration:desc")
|
77
77
|
|
78
|
-
expect(WebMock).to have_requested(:get, "https://api.dnsimple.test/v2/#{account_id}/domains/#{domain_id}/certificates?page=1&per_page=100&sort=id:asc,
|
78
|
+
expect(WebMock).to have_requested(:get, "https://api.dnsimple.test/v2/#{account_id}/domains/#{domain_id}/certificates?page=1&per_page=100&sort=id:asc,expiration:desc")
|
79
79
|
end
|
80
80
|
end
|
81
81
|
|
82
82
|
describe "#certificate" do
|
83
83
|
let(:account_id) { 1010 }
|
84
|
-
let(:domain_id) { "
|
85
|
-
let(:certificate_id) {
|
84
|
+
let(:domain_id) { "bingo.pizza" }
|
85
|
+
let(:certificate_id) { 101967 }
|
86
86
|
|
87
87
|
before do
|
88
88
|
stub_request(:get, %r{/v2/#{account_id}/domains/#{domain_id}/certificates/#{certificate_id}})
|
@@ -108,19 +108,20 @@ describe Dnsimple::Client, ".certificates" do
|
|
108
108
|
|
109
109
|
result = response.data
|
110
110
|
expect(result).to be_a(Dnsimple::Struct::Certificate)
|
111
|
-
expect(result.id).to eq(
|
112
|
-
expect(result.domain_id).to eq(
|
113
|
-
expect(result.contact_id).to eq(
|
114
|
-
expect(result.common_name).to eq("www.
|
115
|
-
expect(result.alternate_names).to eq(
|
111
|
+
expect(result.id).to eq(101967)
|
112
|
+
expect(result.domain_id).to eq(289333)
|
113
|
+
expect(result.contact_id).to eq(2511)
|
114
|
+
expect(result.common_name).to eq("www.bingo.pizza")
|
115
|
+
expect(result.alternate_names).to eq([])
|
116
116
|
expect(result.years).to eq(1)
|
117
|
-
expect(result.csr).to eq("-----BEGIN CERTIFICATE REQUEST-----\
|
117
|
+
expect(result.csr).to eq("-----BEGIN CERTIFICATE REQUEST-----\nMIICmTCCAYECAQAwGjEYMBYGA1UEAwwPd3d3LmJpbmdvLnBpenphMIIBIjANBgkq\nhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAw4+KoZ9IDCK2o5qAQpi+Icu5kksmjQzx\n5o5g4B6XhRxhsfHlK/i3iU5hc8CONjyVv8j82835RNsiKrflnxGa9SH68vbQfcn4\nIpbMz9c+Eqv5h0Euqlc3A4DBzp0unEu5QAUhR6Xu1TZIWDPjhrBOGiszRlLQcp4F\nzy6fD6j5/d/ylpzTp5v54j+Ey31Bz86IaBPtSpHI+Qk87Hs8DVoWxZk/6RlAkyur\nXDGWnPu9n3RMfs9ag5anFhggLIhCNtVN4+0vpgPQ59pqwYo8TfdYzK7WSKeL7geu\nCqVE3bHAqU6dLtgHOZfTkLwGycUh4p9aawuc6fsXHHYDpIL8s3vAvwIDAQABoDow\nOAYJKoZIhvcNAQkOMSswKTAnBgNVHREEIDAeggtiaW5nby5waXp6YYIPd3d3LmJp\nbmdvLnBpenphMA0GCSqGSIb3DQEBCwUAA4IBAQBwOLKv+PO5hSJkgqS6wL/wRqLh\nQ1zbcHRHAjRjnpRz06cDvN3X3aPI+lpKSNFCI0A1oKJG7JNtgxX3Est66cuO8ESQ\nPIb6WWN7/xlVlBCe7ZkjAFgN6JurFdclwCp/NI5wBCwj1yb3Ar5QQMFIZOezIgTI\nAWkQSfCmgkB96d6QlDWgidYDDjcsXugQveOQRPlHr0TsElu47GakxZdJCFZU+WPM\nodQQf5SaqiIK2YaH1dWO//4KpTS9QoTy1+mmAa27apHcmz6X6+G5dvpHZ1qH14V0\nJoMWIK+39HRPq6mDo1UMVet/xFUUrG/H7/tFlYIDVbSpVlpVAFITd/eQkaW/\n-----END CERTIFICATE REQUEST-----\n")
|
118
118
|
expect(result.state).to eq("issued")
|
119
119
|
expect(result.authority_identifier).to eq("letsencrypt")
|
120
120
|
expect(result.auto_renew).to be(false)
|
121
|
-
expect(result.created_at).to eq("
|
122
|
-
expect(result.updated_at).to eq("
|
123
|
-
expect(result.expires_on).to eq("
|
121
|
+
expect(result.created_at).to eq("2020-06-18T18:54:17Z")
|
122
|
+
expect(result.updated_at).to eq("2020-06-18T19:10:14Z")
|
123
|
+
expect(result.expires_on).to eq("2020-09-16")
|
124
|
+
expect(result.expires_at).to eq("2020-09-16T18:10:13Z")
|
124
125
|
end
|
125
126
|
|
126
127
|
context "when the certificate does not exist" do
|
@@ -231,7 +232,7 @@ describe Dnsimple::Client, ".certificates" do
|
|
231
232
|
|
232
233
|
describe "#purchase_letsencrypt_certificate" do
|
233
234
|
let(:account_id) { 1010 }
|
234
|
-
let(:domain_id) { "
|
235
|
+
let(:domain_id) { "bingo.pizza" }
|
235
236
|
let(:contact_id) { 100 }
|
236
237
|
|
237
238
|
before do
|
@@ -264,9 +265,9 @@ describe Dnsimple::Client, ".certificates" do
|
|
264
265
|
result = response.data
|
265
266
|
expect(result).to be_a(Dnsimple::Struct::CertificatePurchase)
|
266
267
|
|
267
|
-
expect(result.id).to eq(
|
268
|
-
expect(result.certificate_id).to eq(
|
269
|
-
expect(result.state).to eq("
|
268
|
+
expect(result.id).to eq(101967)
|
269
|
+
expect(result.certificate_id).to eq(101967)
|
270
|
+
expect(result.state).to eq("new")
|
270
271
|
expect(result.auto_renew).to be(false)
|
271
272
|
end
|
272
273
|
|
@@ -284,8 +285,8 @@ describe Dnsimple::Client, ".certificates" do
|
|
284
285
|
|
285
286
|
describe "#issue_letsencrypt_certificate" do
|
286
287
|
let(:account_id) { 1010 }
|
287
|
-
let(:domain_id) { "
|
288
|
-
let(:certificate_id) {
|
288
|
+
let(:domain_id) { "bingo.pizza" }
|
289
|
+
let(:certificate_id) { 101967 }
|
289
290
|
|
290
291
|
before do
|
291
292
|
stub_request(:post, %r{/v2/#{account_id}/domains/#{domain_id}/certificates/letsencrypt/#{certificate_id}/issue})
|
@@ -306,9 +307,9 @@ describe Dnsimple::Client, ".certificates" do
|
|
306
307
|
result = response.data
|
307
308
|
expect(result).to be_a(Dnsimple::Struct::Certificate)
|
308
309
|
|
309
|
-
expect(result.id).to eq(
|
310
|
-
expect(result.domain_id).to eq(
|
311
|
-
expect(result.common_name).to eq("www.
|
310
|
+
expect(result.id).to eq(101967)
|
311
|
+
expect(result.domain_id).to eq(289333)
|
312
|
+
expect(result.common_name).to eq("www.bingo.pizza")
|
312
313
|
expect(result.alternate_names).to eq([])
|
313
314
|
expect(result.years).to eq(1)
|
314
315
|
expect(result.csr).to be(nil)
|
@@ -342,8 +343,8 @@ describe Dnsimple::Client, ".certificates" do
|
|
342
343
|
|
343
344
|
describe "#purchase_letsencrypt_certificate_renewal" do
|
344
345
|
let(:account_id) { 1010 }
|
345
|
-
let(:domain_id) { "
|
346
|
-
let(:certificate_id) {
|
346
|
+
let(:domain_id) { "bingo.pizza" }
|
347
|
+
let(:certificate_id) { 101967 }
|
347
348
|
|
348
349
|
before do
|
349
350
|
stub_request(:post, %r{/v2/#{account_id}/domains/#{domain_id}/certificates/letsencrypt/#{certificate_id}/renewals})
|
@@ -373,9 +374,9 @@ describe Dnsimple::Client, ".certificates" do
|
|
373
374
|
result = response.data
|
374
375
|
expect(result).to be_a(Dnsimple::Struct::CertificateRenewal)
|
375
376
|
|
376
|
-
expect(result.id).to eq(
|
377
|
+
expect(result.id).to eq(65082)
|
377
378
|
expect(result.old_certificate_id).to eq(certificate_id)
|
378
|
-
expect(result.new_certificate_id).to eq(
|
379
|
+
expect(result.new_certificate_id).to eq(101972)
|
379
380
|
expect(result.state).to eq("new")
|
380
381
|
end
|
381
382
|
|
@@ -393,9 +394,9 @@ describe Dnsimple::Client, ".certificates" do
|
|
393
394
|
|
394
395
|
describe "#issue_letsencrypt_certificate_renewal" do
|
395
396
|
let(:account_id) { 1010 }
|
396
|
-
let(:domain_id) { "
|
397
|
-
let(:certificate_id) {
|
398
|
-
let(:certificate_renewal_id) {
|
397
|
+
let(:domain_id) { "bingo.pizza" }
|
398
|
+
let(:certificate_id) { 101972 }
|
399
|
+
let(:certificate_renewal_id) { 65082 }
|
399
400
|
|
400
401
|
before do
|
401
402
|
stub_request(:post, %r{/v2/#{account_id}/domains/#{domain_id}/certificates/letsencrypt/#{certificate_id}/renewals/#{certificate_renewal_id}/issue})
|
@@ -416,9 +417,9 @@ describe Dnsimple::Client, ".certificates" do
|
|
416
417
|
result = response.data
|
417
418
|
expect(result).to be_a(Dnsimple::Struct::Certificate)
|
418
419
|
|
419
|
-
expect(result.id).to eq(
|
420
|
-
expect(result.domain_id).to eq(
|
421
|
-
expect(result.common_name).to eq("www.
|
420
|
+
expect(result.id).to eq(101972)
|
421
|
+
expect(result.domain_id).to eq(289333)
|
422
|
+
expect(result.common_name).to eq("www.bingo.pizza")
|
422
423
|
expect(result.alternate_names).to eq([])
|
423
424
|
expect(result.years).to eq(1)
|
424
425
|
expect(result.csr).to be(nil)
|
@@ -1,21 +1,21 @@
|
|
1
1
|
HTTP/1.1 200 OK
|
2
2
|
Server: nginx
|
3
|
-
Date:
|
3
|
+
Date: Thu, 18 Jun 2020 19:16:29 GMT
|
4
4
|
Content-Type: application/json; charset=utf-8
|
5
|
-
Transfer-Encoding:
|
5
|
+
Transfer-Encoding: identity
|
6
6
|
Connection: keep-alive
|
7
|
-
X-RateLimit-Limit:
|
8
|
-
X-RateLimit-Remaining:
|
9
|
-
X-RateLimit-Reset:
|
10
|
-
ETag: W/"
|
7
|
+
X-RateLimit-Limit: 4800
|
8
|
+
X-RateLimit-Remaining: 4797
|
9
|
+
X-RateLimit-Reset: 1592510057
|
10
|
+
ETag: W/"9ace4f536d7b618fd4b38efd3cea9d1f"
|
11
11
|
Cache-Control: max-age=0, private, must-revalidate
|
12
|
-
X-Request-Id:
|
13
|
-
X-Runtime: 0.
|
12
|
+
X-Request-Id: 83905116-1333-4b07-ace4-d0db9e90c4fa
|
13
|
+
X-Runtime: 0.012798
|
14
|
+
X-Frame-Options: DENY
|
14
15
|
X-Content-Type-Options: nosniff
|
16
|
+
X-XSS-Protection: 1; mode=block
|
15
17
|
X-Download-Options: noopen
|
16
|
-
X-Frame-Options: DENY
|
17
18
|
X-Permitted-Cross-Domain-Policies: none
|
18
|
-
X-XSS-Protection: 1; mode=block
|
19
19
|
Strict-Transport-Security: max-age=31536000
|
20
20
|
|
21
|
-
{"data":{"id":
|
21
|
+
{"data":{"id":101967,"domain_id":289333,"contact_id":2511,"name":"www","common_name":"www.bingo.pizza","years":1,"csr":"-----BEGIN CERTIFICATE REQUEST-----\nMIICmTCCAYECAQAwGjEYMBYGA1UEAwwPd3d3LmJpbmdvLnBpenphMIIBIjANBgkq\nhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAw4+KoZ9IDCK2o5qAQpi+Icu5kksmjQzx\n5o5g4B6XhRxhsfHlK/i3iU5hc8CONjyVv8j82835RNsiKrflnxGa9SH68vbQfcn4\nIpbMz9c+Eqv5h0Euqlc3A4DBzp0unEu5QAUhR6Xu1TZIWDPjhrBOGiszRlLQcp4F\nzy6fD6j5/d/ylpzTp5v54j+Ey31Bz86IaBPtSpHI+Qk87Hs8DVoWxZk/6RlAkyur\nXDGWnPu9n3RMfs9ag5anFhggLIhCNtVN4+0vpgPQ59pqwYo8TfdYzK7WSKeL7geu\nCqVE3bHAqU6dLtgHOZfTkLwGycUh4p9aawuc6fsXHHYDpIL8s3vAvwIDAQABoDow\nOAYJKoZIhvcNAQkOMSswKTAnBgNVHREEIDAeggtiaW5nby5waXp6YYIPd3d3LmJp\nbmdvLnBpenphMA0GCSqGSIb3DQEBCwUAA4IBAQBwOLKv+PO5hSJkgqS6wL/wRqLh\nQ1zbcHRHAjRjnpRz06cDvN3X3aPI+lpKSNFCI0A1oKJG7JNtgxX3Est66cuO8ESQ\nPIb6WWN7/xlVlBCe7ZkjAFgN6JurFdclwCp/NI5wBCwj1yb3Ar5QQMFIZOezIgTI\nAWkQSfCmgkB96d6QlDWgidYDDjcsXugQveOQRPlHr0TsElu47GakxZdJCFZU+WPM\nodQQf5SaqiIK2YaH1dWO//4KpTS9QoTy1+mmAa27apHcmz6X6+G5dvpHZ1qH14V0\nJoMWIK+39HRPq6mDo1UMVet/xFUUrG/H7/tFlYIDVbSpVlpVAFITd/eQkaW/\n-----END CERTIFICATE REQUEST-----\n","state":"issued","auto_renew":false,"alternate_names":[],"authority_identifier":"letsencrypt","created_at":"2020-06-18T18:54:17Z","updated_at":"2020-06-18T19:10:14Z","expires_at":"2020-09-16T18:10:13Z","expires_on":"2020-09-16"}}
|
@@ -1,21 +1,19 @@
|
|
1
|
-
HTTP/1.1 202 Accepted
|
2
|
-
Server: nginx
|
3
|
-
Date:
|
4
|
-
Content-Type: application/json; charset=utf-8
|
5
|
-
Transfer-Encoding:
|
6
|
-
Connection: keep-alive
|
7
|
-
X-RateLimit-Limit:
|
8
|
-
X-RateLimit-Remaining:
|
9
|
-
X-RateLimit-Reset:
|
10
|
-
|
11
|
-
|
12
|
-
X-
|
13
|
-
X-
|
14
|
-
X-Content-Type-Options: nosniff
|
15
|
-
X-
|
16
|
-
X-
|
17
|
-
X-Permitted-Cross-Domain-Policies: none
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
{"data":{"id":200,"domain_id":300,"contact_id":100,"name":"www","common_name":"www.example.com","years":1,"csr":null,"state":"requesting","auto_renew":false,"alternate_names":[],"authority_identifier":"letsencrypt","created_at":"2017-10-18T15:40:32Z","updated_at":"2017-10-18T15:42:18Z","expires_on":null}}
|
1
|
+
HTTP/1.1 202 Accepted
|
2
|
+
Server: nginx
|
3
|
+
Date: Thu, 18 Jun 2020 18:56:21 GMT
|
4
|
+
Content-Type: application/json; charset=utf-8
|
5
|
+
Transfer-Encoding: identity
|
6
|
+
Connection: keep-alive
|
7
|
+
X-RateLimit-Limit: 4800
|
8
|
+
X-RateLimit-Remaining: 4798
|
9
|
+
X-RateLimit-Reset: 1592510057
|
10
|
+
Cache-Control: no-cache
|
11
|
+
X-Request-Id: 1d6bdd7c-a88e-4ac2-9d12-36699a32b006
|
12
|
+
X-Runtime: 0.884870
|
13
|
+
X-Frame-Options: DENY
|
14
|
+
X-Content-Type-Options: nosniff
|
15
|
+
X-XSS-Protection: 1; mode=block
|
16
|
+
X-Download-Options: noopen
|
17
|
+
X-Permitted-Cross-Domain-Policies: none
|
18
|
+
|
19
|
+
{"data":{"id":101967,"domain_id":289333,"contact_id":2511,"name":"www","common_name":"www.bingo.pizza","years":1,"csr":null,"state":"requesting","auto_renew":false,"alternate_names":[],"authority_identifier":"letsencrypt","created_at":"2020-06-18T18:54:17Z","updated_at":"2020-06-18T18:56:20Z","expires_at":null,"expires_on":null}}
|
@@ -1,21 +1,19 @@
|
|
1
|
-
HTTP/1.1 202 Accepted
|
2
|
-
Server: nginx
|
3
|
-
Date: Thu,
|
4
|
-
Content-Type: application/json; charset=utf-8
|
5
|
-
Transfer-Encoding:
|
6
|
-
Connection: keep-alive
|
7
|
-
X-RateLimit-Limit:
|
8
|
-
X-RateLimit-Remaining:
|
9
|
-
X-RateLimit-Reset:
|
10
|
-
|
11
|
-
|
12
|
-
X-
|
13
|
-
X-
|
14
|
-
X-Content-Type-Options: nosniff
|
15
|
-
X-
|
16
|
-
X-
|
17
|
-
X-Permitted-Cross-Domain-Policies: none
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
{"data":{"id":300,"domain_id":300,"contact_id":100,"name":"www","common_name":"www.example.com","years":1,"csr":null,"state":"requesting","auto_renew":false,"alternate_names":[],"authority_identifier":"letsencrypt","created_at":"2017-10-19T08:18:53Z","updated_at":"2017-10-19T08:22:17Z","expires_on":null}}
|
1
|
+
HTTP/1.1 202 Accepted
|
2
|
+
Server: nginx
|
3
|
+
Date: Thu, 18 Jun 2020 20:05:26 GMT
|
4
|
+
Content-Type: application/json; charset=utf-8
|
5
|
+
Transfer-Encoding: identity
|
6
|
+
Connection: keep-alive
|
7
|
+
X-RateLimit-Limit: 4800
|
8
|
+
X-RateLimit-Remaining: 4798
|
9
|
+
X-RateLimit-Reset: 1592513780
|
10
|
+
Cache-Control: no-cache
|
11
|
+
X-Request-Id: a7194bb4-aea4-42c6-846f-cd96f5f3cf5c
|
12
|
+
X-Runtime: 0.897152
|
13
|
+
X-Frame-Options: DENY
|
14
|
+
X-Content-Type-Options: nosniff
|
15
|
+
X-XSS-Protection: 1; mode=block
|
16
|
+
X-Download-Options: noopen
|
17
|
+
X-Permitted-Cross-Domain-Policies: none
|
18
|
+
|
19
|
+
{"data":{"id":101972,"domain_id":289333,"contact_id":2511,"name":"www","common_name":"www.bingo.pizza","years":1,"csr":null,"state":"requesting","auto_renew":false,"alternate_names":[],"authority_identifier":"letsencrypt","created_at":"2020-06-18T19:56:20Z","updated_at":"2020-06-18T20:05:26Z","expires_at":null,"expires_on":null}}
|
@@ -1,21 +1,21 @@
|
|
1
1
|
HTTP/1.1 200 OK
|
2
2
|
Server: nginx
|
3
|
-
Date:
|
3
|
+
Date: Thu, 18 Jun 2020 20:35:23 GMT
|
4
4
|
Content-Type: application/json; charset=utf-8
|
5
|
-
Transfer-Encoding:
|
5
|
+
Transfer-Encoding: identity
|
6
6
|
Connection: keep-alive
|
7
|
-
X-RateLimit-Limit:
|
8
|
-
X-RateLimit-Remaining:
|
9
|
-
X-RateLimit-Reset:
|
10
|
-
ETag: W/"
|
7
|
+
X-RateLimit-Limit: 4800
|
8
|
+
X-RateLimit-Remaining: 4797
|
9
|
+
X-RateLimit-Reset: 1592513780
|
10
|
+
ETag: W/"29d46b533190f5693be4f1133adf99c0"
|
11
11
|
Cache-Control: max-age=0, private, must-revalidate
|
12
|
-
X-Request-Id:
|
13
|
-
X-Runtime: 0.
|
12
|
+
X-Request-Id: 6f25214b-8e5a-4095-8e44-d7998b05aa8d
|
13
|
+
X-Runtime: 0.026239
|
14
|
+
X-Frame-Options: DENY
|
14
15
|
X-Content-Type-Options: nosniff
|
16
|
+
X-XSS-Protection: 1; mode=block
|
15
17
|
X-Download-Options: noopen
|
16
|
-
X-Frame-Options: DENY
|
17
18
|
X-Permitted-Cross-Domain-Policies: none
|
18
|
-
X-XSS-Protection: 1; mode=block
|
19
19
|
Strict-Transport-Security: max-age=31536000
|
20
20
|
|
21
|
-
{"data":[{"id":
|
21
|
+
{"data":[{"id":101973,"domain_id":14279,"contact_id":11435,"name":"www2","common_name":"www2.dnsimple.us","years":1,"csr":"-----BEGIN CERTIFICATE REQUEST-----\nMIICYDCCAUgCAQAwGzEZMBcGA1UEAwwQd3d3Mi5kbnNpbXBsZS51czCCASIwDQYJ\nKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMjXrephLTu7OKVQ6F3LhmLkL6NL3ier\n1qaWPtJBbkBuzJIn8gmSG+6xGmywB6GKvP2IVkPQhPBpfc8wsTd26rbSBHnRIQal\ntk+W4aQZyIeXFARY+cRvpjeAtmpX0vwZkDMoEyhFomBfGxVfx6tSqdGlR88/x0By\ny5u7+xwkY+4jMt+wZi+wpXsScumB6DAC1PTYRvNFQy7Gcjqrc3EdzPsn3c9kLCNO\n3GCPJoWmT5Rtyd7FxjJiSIf7BDOi12BnblpSLwGvtu6Wrl+u9LJLj8zeCACwUiQG\nuvnP2lAl2YacNAgpql6C2eEnFjIub7Ul1QMUImQSDVy5dMd/UGQrOb0CAwEAAaAA\nMA0GCSqGSIb3DQEBCwUAA4IBAQA8oVxOrZCGeSFmKpNV4oilzPOepTVSWxXa19T7\nzD/azh6j6RBLZPpG4TFbpvjecum+1V7Y8ypIcwhRtlh5/zSbfJkjJsdCdZU9XZat\nT5YkOaxuCUCDajpRiyyKhHvrloTPKPXe5ygCq/Q23xm//VrXKArLSWVB9qWS6gDV\nk0y3/mIlTQ3mTgfYQySc3MPXvIgUoqmB8Ajfq1n3hSLgb1/OoKNfeVEWsON116cq\nbXvl63+XzPubj6KWZXZH/jhrs53fuLq3xyeeuOaPrn+2VceBVt4DCC9n0JS5wepl\nHDoVxtWTTNeJdP5xFB5V1KI+D4FEFBUGnQABEvajpU3vljh3\n-----END CERTIFICATE REQUEST-----\n","state":"issued","auto_renew":false,"alternate_names":[],"authority_identifier":"letsencrypt","created_at":"2020-06-18T20:15:09Z","updated_at":"2020-06-18T20:30:08Z","expires_at":"2020-09-16T19:30:07Z","expires_on":"2020-09-16"},{"id":101969,"domain_id":14279,"contact_id":11435,"name":"www","common_name":"www.dnsimple.us","years":1,"csr":"-----BEGIN CERTIFICATE REQUEST-----\nMIICmTCCAYECAQAwGjEYMBYGA1UEAwwPd3d3LmRuc2ltcGxlLnVzMIIBIjANBgkq\nhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA4rVs1z42xmPj6KdE++D182/wyMH1GG4p\nESK99FQbMimjOvYcidFTySKpSvEv5Dhmj5fb79vogBuCZQetm5Es37Gboc+D02SO\n48uE8LisuYhx1yBKryXSYnVaWz9oxEuVLtf+aq/Yt1HTu3/zzMWKPRN79OmYgWnl\n03ISfDmgzxqViYPIAObge8nB5TzlQbDV9W9eQWs12IYg4pfI+b+c9VrnMYjdz2Lk\nEhIYThIQRSi5IfNbDu8YiG87V0bTtzeT6lq2Lh3+IkyhBkF10xaivnwac1MfK/25\ntZg2PYCzG56Bf3xTtjo5P0Eb7LlBZLlwLs3hXvlU0eV2LAWm38v3wwIDAQABoDow\nOAYJKoZIhvcNAQkOMSswKTAnBgNVHREEIDAeggtkbnNpbXBsZS51c4IPd3d3LmRu\nc2ltcGxlLnVzMA0GCSqGSIb3DQEBCwUAA4IBAQBiYQ5/Dp2JML1UgYmUNqfOfKKV\nZS9HiX1OcR6bkHHIEzDV1iqDdZ/0Uqr7p6rmLkVIaDWUdano2jtMEIRGC1c8q9bH\nRlzubdyYXbBGE+iGho5crzu5Hwit3Z3J2C6f28NvfqN5Ume3jLr90qbG+1HULsUF\nR3tCKTzvvs4QAKXbo+eEafDNFToGzd0cxpesdlzu3zDu5rHfLz862QifmWZzN6JS\nj1/Q+TedS5EknTaOwGjm1od0zuD3YRJ+XzGq1G8MbuxYWXqaGQRo0TzZlYW6Ax1C\n9utnEQ5Uc+z9ejjZSv03p1VzO7bV7AOz3F40M3IfM8qQ4YMeXbGWJ98jrWDe\n-----END CERTIFICATE REQUEST-----\n","state":"issued","auto_renew":false,"alternate_names":[],"authority_identifier":"letsencrypt","created_at":"2020-06-18T19:22:51Z","updated_at":"2020-06-18T19:40:13Z","expires_at":"2020-09-16T18:40:12Z","expires_on":"2020-09-16"}],"pagination":{"current_page":1,"per_page":30,"total_entries":2,"total_pages":1}}
|
@@ -1,21 +1,21 @@
|
|
1
|
-
HTTP/1.1 201 Created
|
2
|
-
Server: nginx
|
3
|
-
Date:
|
4
|
-
Content-Type: application/json; charset=utf-8
|
5
|
-
Transfer-Encoding:
|
6
|
-
Connection: keep-alive
|
7
|
-
X-RateLimit-Limit:
|
8
|
-
X-RateLimit-Remaining:
|
9
|
-
X-RateLimit-Reset:
|
10
|
-
ETag: W/"
|
11
|
-
Cache-Control: max-age=0, private, must-revalidate
|
12
|
-
X-Request-Id:
|
13
|
-
X-Runtime: 0.
|
14
|
-
X-
|
15
|
-
X-
|
16
|
-
X-
|
17
|
-
X-
|
18
|
-
X-
|
19
|
-
Strict-Transport-Security: max-age=31536000
|
20
|
-
|
21
|
-
{"data":{"id":
|
1
|
+
HTTP/1.1 201 Created
|
2
|
+
Server: nginx
|
3
|
+
Date: Thu, 18 Jun 2020 18:54:17 GMT
|
4
|
+
Content-Type: application/json; charset=utf-8
|
5
|
+
Transfer-Encoding: identity
|
6
|
+
Connection: keep-alive
|
7
|
+
X-RateLimit-Limit: 4800
|
8
|
+
X-RateLimit-Remaining: 4799
|
9
|
+
X-RateLimit-Reset: 1592510057
|
10
|
+
ETag: W/"36ffdd6505ed488a3aeeaace031c5869"
|
11
|
+
Cache-Control: max-age=0, private, must-revalidate
|
12
|
+
X-Request-Id: 4e99c95d-6d19-48ea-8d63-e68432631c90
|
13
|
+
X-Runtime: 0.098745
|
14
|
+
X-Frame-Options: DENY
|
15
|
+
X-Content-Type-Options: nosniff
|
16
|
+
X-XSS-Protection: 1; mode=block
|
17
|
+
X-Download-Options: noopen
|
18
|
+
X-Permitted-Cross-Domain-Policies: none
|
19
|
+
Strict-Transport-Security: max-age=31536000
|
20
|
+
|
21
|
+
{"data":{"id":101967,"certificate_id":101967,"state":"new","auto_renew":false,"created_at":"2020-06-18T18:54:17Z","updated_at":"2020-06-18T18:54:17Z"}}
|
@@ -1,21 +1,21 @@
|
|
1
|
-
HTTP/1.1 201 Created
|
2
|
-
Server: nginx
|
3
|
-
Date: Thu,
|
4
|
-
Content-Type: application/json; charset=utf-8
|
5
|
-
Transfer-Encoding:
|
6
|
-
Connection: keep-alive
|
7
|
-
X-RateLimit-Limit:
|
8
|
-
X-RateLimit-Remaining:
|
9
|
-
X-RateLimit-Reset:
|
10
|
-
ETag: W/"
|
11
|
-
Cache-Control: max-age=0, private, must-revalidate
|
12
|
-
X-Request-Id:
|
13
|
-
X-Runtime: 0.
|
14
|
-
X-
|
15
|
-
X-
|
16
|
-
X-
|
17
|
-
X-
|
18
|
-
X-
|
19
|
-
Strict-Transport-Security: max-age=31536000
|
20
|
-
|
21
|
-
{"data":{"id":
|
1
|
+
HTTP/1.1 201 Created
|
2
|
+
Server: nginx
|
3
|
+
Date: Thu, 18 Jun 2020 19:56:20 GMT
|
4
|
+
Content-Type: application/json; charset=utf-8
|
5
|
+
Transfer-Encoding: identity
|
6
|
+
Connection: keep-alive
|
7
|
+
X-RateLimit-Limit: 4800
|
8
|
+
X-RateLimit-Remaining: 4799
|
9
|
+
X-RateLimit-Reset: 1592513780
|
10
|
+
ETag: W/"84dd908f85153590082766bd8d1f1056"
|
11
|
+
Cache-Control: max-age=0, private, must-revalidate
|
12
|
+
X-Request-Id: f43f4d80-a7eb-43d3-b1ec-95eba413894e
|
13
|
+
X-Runtime: 0.091216
|
14
|
+
X-Frame-Options: DENY
|
15
|
+
X-Content-Type-Options: nosniff
|
16
|
+
X-XSS-Protection: 1; mode=block
|
17
|
+
X-Download-Options: noopen
|
18
|
+
X-Permitted-Cross-Domain-Policies: none
|
19
|
+
Strict-Transport-Security: max-age=31536000
|
20
|
+
|
21
|
+
{"data":{"id":65082,"old_certificate_id":101967,"new_certificate_id":101972,"state":"new","auto_renew":false,"created_at":"2020-06-18T19:56:20Z","updated_at":"2020-06-18T19:56:20Z"}}
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dnsimple
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 5.
|
4
|
+
version: 5.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- DNSimple
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-06-
|
11
|
+
date: 2020-06-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: httparty
|