letsencrypt_plugin 0.0.6 → 0.0.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Rakefile +1 -5
- data/app/controllers/letsencrypt_plugin/application_controller.rb +20 -15
- data/app/models/letsencrypt_plugin/challenge.rb +14 -1
- data/lib/letsencrypt_plugin.rb +138 -1
- data/lib/letsencrypt_plugin/certificate_output.rb +17 -0
- data/lib/letsencrypt_plugin/challenge_store.rb +18 -0
- data/lib/letsencrypt_plugin/database_store.rb +11 -0
- data/lib/letsencrypt_plugin/file_output.rb +18 -0
- data/lib/letsencrypt_plugin/file_store.rb +16 -0
- data/lib/letsencrypt_plugin/heroku_output.rb +19 -0
- data/lib/letsencrypt_plugin/version.rb +2 -1
- data/lib/tasks/letsencrypt_plugin_tasks.rake +4 -97
- data/test/cassettes/letsencrypt.log +0 -0
- data/test/cassettes/registration_agree_terms.yml +326 -0
- data/test/controllers/application_controller_test.rb +9 -4
- data/test/dummy/bin/setup +11 -11
- data/test/dummy/config/application.rb +1 -3
- data/test/dummy/config/letsencrypt_plugin.yml +7 -7
- data/test/dummy/config/routes.rb +1 -2
- data/test/dummy/db/test.sqlite3 +0 -0
- data/test/dummy/key/test_keyfile_1024.pem +15 -0
- data/test/dummy/key/test_keyfile_2048.pem +27 -0
- data/test/dummy/key/test_keyfile_4096.pem +51 -0
- data/test/dummy/key/test_keyfile_8192.pem +99 -0
- data/test/dummy/log/test.log +7718 -0
- data/test/le.sublime-project +8 -0
- data/test/le.sublime-workspace +686 -0
- data/test/letsencrypt_plugin_test.rb +79 -1
- data/test/test_helper.rb +27 -6
- metadata +126 -8
File without changes
|
@@ -0,0 +1,326 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: head
|
5
|
+
uri: https://acme-staging.api.letsencrypt.org/acme/new-reg
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
User-Agent:
|
11
|
+
- Faraday v0.9.2
|
12
|
+
Accept:
|
13
|
+
- "*/*"
|
14
|
+
response:
|
15
|
+
status:
|
16
|
+
code: 405
|
17
|
+
message: Method Not Allowed
|
18
|
+
headers:
|
19
|
+
Server:
|
20
|
+
- nginx
|
21
|
+
Content-Type:
|
22
|
+
- application/problem+json
|
23
|
+
Content-Length:
|
24
|
+
- '78'
|
25
|
+
Allow:
|
26
|
+
- POST
|
27
|
+
Replay-Nonce:
|
28
|
+
- RnBwxKXkq7cxyrGbaf7oPZcPxKi7iZUfFhfeXBWrXe4
|
29
|
+
Expires:
|
30
|
+
- Mon, 11 Jan 2016 18:27:29 GMT
|
31
|
+
Cache-Control:
|
32
|
+
- max-age=0, no-cache, no-store
|
33
|
+
Pragma:
|
34
|
+
- no-cache
|
35
|
+
Date:
|
36
|
+
- Mon, 11 Jan 2016 18:27:29 GMT
|
37
|
+
Connection:
|
38
|
+
- keep-alive
|
39
|
+
body:
|
40
|
+
encoding: UTF-8
|
41
|
+
string: ''
|
42
|
+
http_version:
|
43
|
+
recorded_at: Mon, 11 Jan 2016 18:27:33 GMT
|
44
|
+
- request:
|
45
|
+
method: post
|
46
|
+
uri: https://acme-staging.api.letsencrypt.org/acme/new-reg
|
47
|
+
body:
|
48
|
+
encoding: UTF-8
|
49
|
+
string: '{"protected":"eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsIm5vbmNlIjoiUm5Cd3hLWGtxN2N4eXJHYmFmN29QWmNQeEtpN2laVWZGaGZlWEJXclhlNCIsImp3ayI6eyJrdHkiOiJSU0EiLCJlIjoiQVFBQiIsIm4iOiJxN0gtQ2txRHZ3ekx2OWRBZ05rSmQzM2FiVEpFa0ZHSjhXbGIxRnZ1Y1F6MEFYWXJwWUx5ajdOYUNyQm90V1NaR2pFSnRQZ1k1M0xWWU1ET1BiOTktLTZEazNXVGhkT203U01JTlZYWlZ1YmhhNmtoY1pFWFA1NEdic0NzcFBmNm5OcUJCeEhDblV3V01GOElRcWkwTVdSNHFOeG1LZ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Oooa1kdInNVBStI6YZng7mZBzRCz-it9F0KUooxRw_4Yf2bX0xVY_JpmsnkhRA1loZVSnYLYyvWZx-9vnES3KWvkblMJlHW4153JGtpWKciJbZ08YnfatBfuLIlYjUI8DIq9AhmKQYJSsjFTw-h1fS1ZH21zDhWlUvk_LWDeD3lecfMteF9GJYAhHUxCUrE61UFdEP7nYwCyKDYdck60u-9bH3xIHQERiyhqGkb8MyJDiA22TRTYOl6QYztQMAusYZXsvLtBafeGIgSsQnNQ8KYps0KQ82g4TQPnqh0a2uoEHADLGfC8O-H-aVlxr91aKzOYVEPKghXHXxDTEQLt3C1x43wYzLzS4UJrnxLIJR0hGTwOoIOrlVBRWveM7esskeHhEq1khOHxrAnmP2rGlsZFOr5P7X7Q8AgzsEO20LnY"}'
|
50
|
+
headers:
|
51
|
+
User-Agent:
|
52
|
+
- Faraday v0.9.2
|
53
|
+
Accept-Encoding:
|
54
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
55
|
+
Accept:
|
56
|
+
- "*/*"
|
57
|
+
response:
|
58
|
+
status:
|
59
|
+
code: 201
|
60
|
+
message: Created
|
61
|
+
headers:
|
62
|
+
Server:
|
63
|
+
- nginx
|
64
|
+
Content-Type:
|
65
|
+
- application/json
|
66
|
+
Content-Length:
|
67
|
+
- '848'
|
68
|
+
Link:
|
69
|
+
- <https://acme-staging.api.letsencrypt.org/acme/new-authz>;rel="next"
|
70
|
+
- <https://letsencrypt.org/documents/LE-SA-v1.0.1-July-27-2015.pdf>;rel="terms-of-service"
|
71
|
+
Location:
|
72
|
+
- https://acme-staging.api.letsencrypt.org/acme/reg/110375
|
73
|
+
Replay-Nonce:
|
74
|
+
- imgHzBXt33O7OT4e-0yLPKZnZ9FJEVX4GhmU49hfbCU
|
75
|
+
X-Frame-Options:
|
76
|
+
- DENY
|
77
|
+
Strict-Transport-Security:
|
78
|
+
- max-age=604800
|
79
|
+
Expires:
|
80
|
+
- Mon, 11 Jan 2016 18:27:29 GMT
|
81
|
+
Cache-Control:
|
82
|
+
- max-age=0, no-cache, no-store
|
83
|
+
Pragma:
|
84
|
+
- no-cache
|
85
|
+
Date:
|
86
|
+
- Mon, 11 Jan 2016 18:27:29 GMT
|
87
|
+
Connection:
|
88
|
+
- keep-alive
|
89
|
+
body:
|
90
|
+
encoding: UTF-8
|
91
|
+
string: '{"id":110375,"key":{"kty":"RSA","n":"q7H-CkqDvwzLv9dAgNkJd33abTJEkFGJ8Wlb1FvucQz0AXYrpYLyj7NaCrBotWSZGjEJtPgY53LVYMDOPb99--6Dk3WThdOm7SMINVXZVubha6khcZEXP54GbsCspPf6nNqBBxHCnUwWMF8IQqi0MWR4qNxmKdEkpNztaBwLKSFVPsQ0tFyrGzYa8L4NBjee2iiDuc6lyLNJz2x_QFLAfgxl5qwEkNETlM72MBTlM3kGY8R3vFEMTHPIKB3uPpwRpMj8L63RKzzfrc9CF6L4Mhm5oNFPCgvbCEazOG-LJp3d8mYSf0DDNQ6Xh_CgLnSmp3UefrJbAQTd0iJN1kmSi__BlNGRCKWEd82g06hx0mTa9uYdD10SWiQyPvHl4sXDw3BL7Ei9YO4zh9HzfJsQXqchsBvUggDToHeRp2xfKHDraEgbO_AqhC1FGdMKORrLZpLBmhjl40Uo1cKQvlnVIdRZB58Bz2eHs45J7DNbKlBmvqfOBrE7Og8wDlU3XZHgwQfKxMHAWoPsGvDmJF4YtTfgDx6fVKeMnx9qzICJeFVfby3iG8tOWPSJXVTqvvBXbBziOHxm_l8zfku0Ri7Ev0YE6TBFX6b44DKAiUoZvE0NomixabYvd00XQO6wN0_ivCzNg4UYmh9YS2r3Q7bih4Y2Ks2ZYqvsdk1g-fb4fQs","e":"AQAB"},"contact":["mailto:foobarbaz@example.com"],"initialIp":"213.5.45.19","createdAt":"2016-01-11T18:27:29.881884938Z"}'
|
92
|
+
http_version:
|
93
|
+
recorded_at: Mon, 11 Jan 2016 18:27:34 GMT
|
94
|
+
- request:
|
95
|
+
method: post
|
96
|
+
uri: https://acme-sta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wTm9taXhhYll2ZDAwWFFPNndOMF9pdkN6Tmc0VVltaDlZUzJyM1E3YmloNFkyS3MyWllxdnNkazFnLWZiNGZRcyJ9fQ","payload":"eyJyZXNvdXJjZSI6InJlZyIsImFncmVlbWVudCI6Imh0dHBzOi8vbGV0c2VuY3J5cHQub3JnL2RvY3VtZW50cy9MRS1TQS12MS4wLjEtSnVseS0yNy0yMDE1LnBkZiJ9","signature":"HPdFhWgxEwNw5d-WlTNfsfFEHyz2t5mPrBGhB67B5CX8wON-sujXk1ANIcaT1v6XtEuXWa2N2lAh3GcpGsKtt73GbEkFkAu1ftKZNwU89qpuECUaH8z7-aUizqJ8-0VrDsp0j6ty2JeSzg7bDoQ7F9T0avkYvAZOAzC46GvC0rnEsRInt8gTsqjanBvVZ5wCpu1QIFTY2UHHNRGhd_hIBrfmfstnrSa0JPcsRduUMl4XPuDXFffyMTTdIzK3JG9e6BAmhr4l__PvEfmXwSzzjTSdxQiWW0r9ndGdBBKlqtWsiB62lbKSHvlMtOa-yNoaiF2jLNzO9kV8J-cfPKlAP4etD_sT1hxzyXKGgs_BzKhsRezxs7ubgUmYd20HF5xIdCZU1jinLv-tHZKV98Hki2-bANTmjXEEdYwz5l4vSGeX-TdjJaaHHj3LwiaqHf9mOXynbbYZyYwBLSfRa_B4-J3LZdbNwKOTC7W73t6PSwsmJPPuD50MYP_sgJyRrx3gBW0HyZon64UMZCNEevg4oG4iBFRB_Tk2If21crz4GVmwE-qlPUszGd06DSvZdPxH2ls9bzvql9FsKj86eRzQcRA2U_K2gnD_X2Pre8nXmv3g9Kakwmdo6hdIAoBCX9wIyEBpDr4DA9xX8zwwQFwGgliiVvV__4E2ftY6nGdCfWs"}'
|
100
|
+
headers:
|
101
|
+
User-Agent:
|
102
|
+
- Faraday v0.9.2
|
103
|
+
Accept-Encoding:
|
104
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
105
|
+
Accept:
|
106
|
+
- "*/*"
|
107
|
+
response:
|
108
|
+
status:
|
109
|
+
code: 202
|
110
|
+
message: Accepted
|
111
|
+
headers:
|
112
|
+
Server:
|
113
|
+
- nginx
|
114
|
+
Content-Type:
|
115
|
+
- application/json
|
116
|
+
Content-Length:
|
117
|
+
- '916'
|
118
|
+
Link:
|
119
|
+
- <https://acme-staging.api.letsencrypt.org/acme/new-authz>;rel="next"
|
120
|
+
- <https://letsencrypt.org/documents/LE-SA-v1.0.1-July-27-2015.pdf>;rel="terms-of-service"
|
121
|
+
Replay-Nonce:
|
122
|
+
- eoONtX6WJdmOqcsAAmEdnWLAHy0baEf0Hju3TFOCS0E
|
123
|
+
Expires:
|
124
|
+
- Mon, 11 Jan 2016 18:27:30 GMT
|
125
|
+
Cache-Control:
|
126
|
+
- max-age=0, no-cache, no-store
|
127
|
+
Pragma:
|
128
|
+
- no-cache
|
129
|
+
Date:
|
130
|
+
- Mon, 11 Jan 2016 18:27:30 GMT
|
131
|
+
Connection:
|
132
|
+
- keep-alive
|
133
|
+
body:
|
134
|
+
encoding: UTF-8
|
135
|
+
string: '{"id":110375,"key":{"kty":"RSA","n":"q7H-CkqDvwzLv9dAgNkJd33abTJEkFGJ8Wlb1FvucQz0AXYrpYLyj7NaCrBotWSZGjEJtPgY53LVYMDOPb99--6Dk3WThdOm7SMINVXZVubha6khcZEXP54GbsCspPf6nNqBBxHCnUwWMF8IQqi0MWR4qNxmKdEkpNztaBwLKSFVPsQ0tFyrGzYa8L4NBjee2iiDuc6lyLNJz2x_QFLAfgxl5qwEkNETlM72MBTlM3kGY8R3vFEMTHPIKB3uPpwRpMj8L63RKzzfrc9CF6L4Mhm5oNFPCgvbCEazOG-LJp3d8mYSf0DDNQ6Xh_CgLnSmp3UefrJbAQTd0iJN1kmSi__BlNGRCKWEd82g06hx0mTa9uYdD10SWiQyPvHl4sXDw3BL7Ei9YO4zh9HzfJsQXqchsBvUggDToHeRp2xfKHDraEgbO_AqhC1FGdMKORrLZpLBmhjl40Uo1cKQvlnVIdRZB58Bz2eHs45J7DNbKlBmvqfOBrE7Og8wDlU3XZHgwQfKxMHAWoPsGvDmJF4YtTfgDx6fVKeMnx9qzICJeFVfby3iG8tOWPSJXVTqvvBXbBziOHxm_l8zfku0Ri7Ev0YE6TBFX6b44DKAiUoZvE0NomixabYvd00XQO6wN0_ivCzNg4UYmh9YS2r3Q7bih4Y2Ks2ZYqvsdk1g-fb4fQs","e":"AQAB"},"contact":["mailto:foobarbaz@example.com"],"agreement":"https://letsencrypt.org/documents/LE-SA-v1.0.1-July-27-2015.pdf","initialIp":"213.5.45.19","createdAt":"2016-01-11T18:27:29Z"}'
|
136
|
+
http_version:
|
137
|
+
recorded_at: Mon, 11 Jan 2016 18:27:34 GMT
|
138
|
+
- request:
|
139
|
+
method: post
|
140
|
+
uri: https://acme-staging.api.letsencrypt.org/acme/new-authz
|
141
|
+
body:
|
142
|
+
encoding: UTF-8
|
143
|
+
string: '{"protected":"eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsIm5vbmNlIjoiZW9PTnRYNldKZG1PcWNzQUFtRWRuV0xBSHkwYmFFZjBIanUzVEZPQ1MwRSIsImp3ayI6eyJrdHkiOiJSU0EiLCJlIjoiQVFBQiIsIm4iOiJxN0gtQ2txRHZ3ekx2OWRBZ05rSmQzM2FiVEpFa0ZHSjhXbGIxRnZ1Y1F6MEFYWXJwWUx5ajdOYUNyQm90V1NaR2pFSnRQZ1k1M0xWWU1ET1BiOTktLTZEazNXVGhkT203U01JTlZYWlZ1YmhhNmtoY1pFWFA1NEdic0NzcFBmNm5OcUJCeEhDblV3V01GOElRcWkwTVdSNHFOeG1LZEVrcE56dGFCd0xLU0ZWUHNRMHRGeXJHellhOEw0TkJqZWUyaWlEdWM2bHlMTkp6MnhfUUZMQWZneGw1cXdFa05FVGxNNzJNQlRsTTNrR1k4UjN2RkVNVEhQSUtCM3VQcHdScE1qOEw2M1JLenpmcmM5Q0Y2TDRNaG01b05GUENndmJDRWF6T0ctTEpwM2Q4bVlTZjBERE5RNlhoX0Nn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niaxIZmrWCYJlZbJV9m4yiBlcLfk2biw5_Bzsc_kyK49pKwYDTQ_gWwpYmsEm_mTJp-C_sA4ZDB2t_7iXyGDd6HTA413E8cItlPr1obHj6BhuRZo711rFgOjsrAwmK2W-npUq8KTvAMQQqnMKFXe05FgbLV9zZqd4FmSeASqGy2yIG4NCrTQ_rqOlFRKx3aeBjX9CvJ8tGmP6C7RfQagvt7xvz9_3oD_Y9k"}'
|
144
|
+
headers:
|
145
|
+
User-Agent:
|
146
|
+
- Faraday v0.9.2
|
147
|
+
Accept-Encoding:
|
148
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
149
|
+
Accept:
|
150
|
+
- "*/*"
|
151
|
+
response:
|
152
|
+
status:
|
153
|
+
code: 201
|
154
|
+
message: Created
|
155
|
+
headers:
|
156
|
+
Server:
|
157
|
+
- nginx
|
158
|
+
Content-Type:
|
159
|
+
- application/json
|
160
|
+
Content-Length:
|
161
|
+
- '783'
|
162
|
+
Link:
|
163
|
+
- <https://acme-staging.api.letsencrypt.org/acme/new-cert>;rel="next"
|
164
|
+
Location:
|
165
|
+
- https://acme-staging.api.letsencrypt.org/acme/authz/1CKVEiLTxC7FC5Fb_UYY91GrP31aAZS_WMLWqT_7z2w
|
166
|
+
Replay-Nonce:
|
167
|
+
- "-Tm1coVMwtegdsEwUsXCyDMLnctLp5zqyoVzhqTBKAc"
|
168
|
+
X-Frame-Options:
|
169
|
+
- DENY
|
170
|
+
Strict-Transport-Security:
|
171
|
+
- max-age=604800
|
172
|
+
Expires:
|
173
|
+
- Mon, 11 Jan 2016 18:27:30 GMT
|
174
|
+
Cache-Control:
|
175
|
+
- max-age=0, no-cache, no-store
|
176
|
+
Pragma:
|
177
|
+
- no-cache
|
178
|
+
Date:
|
179
|
+
- Mon, 11 Jan 2016 18:27:30 GMT
|
180
|
+
Connection:
|
181
|
+
- keep-alive
|
182
|
+
body:
|
183
|
+
encoding: UTF-8
|
184
|
+
string: '{"identifier":{"type":"dns","value":"example.com"},"status":"pending","expires":"2016-01-18T18:27:30.690464035Z","challenges":[{"type":"dns-01","status":"pending","uri":"https://acme-staging.api.letsencrypt.org/acme/challenge/1CKVEiLTxC7FC5Fb_UYY91GrP31aAZS_WMLWqT_7z2w/1002272","token":"C0rpKW6FWTjk5OaOb4VXXpv6oYX0d7d5eAZJeb5ZV2Y"},{"type":"tls-sni-01","status":"pending","uri":"https://acme-staging.api.letsencrypt.org/acme/challenge/1CKVEiLTxC7FC5Fb_UYY91GrP31aAZS_WMLWqT_7z2w/1002273","token":"hM5LVDk2bB7LN9rUmofwRQJu2eBEUoCmdDRu_fX2bzs"},{"type":"http-01","status":"pending","uri":"https://acme-staging.api.letsencrypt.org/acme/challenge/1CKVEiLTxC7FC5Fb_UYY91GrP31aAZS_WMLWqT_7z2w/1002274","token":"hd48zE3oxS3TNtnF83OcYSbizUgGkYpuKXw_Nuk3Kjc"}],"combinations":[[0],[2],[1]]}'
|
185
|
+
http_version:
|
186
|
+
recorded_at: Mon, 11 Jan 2016 18:27:35 GMT
|
187
|
+
- request:
|
188
|
+
method: post
|
189
|
+
uri: https://acme-staging.api.letsencrypt.org/acme/challenge/1CKVEiLTxC7FC5Fb_UYY91GrP31aAZS_WMLWqT_7z2w/1002274
|
190
|
+
body:
|
191
|
+
encoding: UTF-8
|
192
|
+
string: '{"protected":"eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsIm5vbmNlIjoiLVRtMWNvVk13dGVnZHNFd1VzWEN5RE1MbmN0THA1enF5b1Z6aHFUQktBYyIsImp3ayI6eyJrdHkiOiJSU0EiLCJlIjoiQVFBQiIsIm4iOiJxN0gtQ2txRHZ3ekx2OWRBZ05rSmQzM2FiVEpFa0ZHSjhXbGIxRnZ1Y1F6MEFYWXJwWUx5ajdOYUNyQm90V1NaR2pFSnRQZ1k1M0xWWU1ET1BiOTktLTZEazNXVGhkT203U01JTlZYWlZ1YmhhNmtoY1pFWFA1NEdic0NzcFBmNm5OcUJCeEhDblV3V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diCC1eJF6dw5AQ5htP075_y5qEWpA-RzqlgTu4yheKFltXYq_TolnTf9BYRBFAJnfbBwKTh9uUq2Ud8_AstIoHa4pNDwpBnKIogfqHjBA_rdivld_RABf4TA3abC-V4dFrauyfqZNDGTXV4hsb6drsgAJ4Zw_NxDXtKY7FXRV-2EPi2HWm_DxAfJsN50xzmgvlFHUEgzCttnrYr7G609y_Ltf50A0guDdezFVQdRkRPm8AoM3pqokXjVNf__42StNUP1AGWBd2jc0gIzOvqpK3rEaRqksYzCOZEjMjL6Ig5bVEn2Vs4Gdqz7NnSvJfIgVnl36BsaGv5wWeCyVltLShaALH69-l40MgYSaisdk9zeW1Bm9PqP3BDWRDifAUnHi_oXR7yw821rPVTSc1z2AAMtEIoDKO4KwYC9hGkPJpW94eRJzdncz7CIp3rpyiCykBWliqTVScZTIx2JzKLXZJBWu5ZnG16VW8wg4S19uwOqzCCJzxLP-YKr-p9pGDUFO1yx-g-RdYG8Uz4VJUMC2xjUtu9Cf2hivYsf19oP1tOwfCjtKRnhKI"}'
|
193
|
+
headers:
|
194
|
+
User-Agent:
|
195
|
+
- Faraday v0.9.2
|
196
|
+
Accept-Encoding:
|
197
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
198
|
+
Accept:
|
199
|
+
- "*/*"
|
200
|
+
response:
|
201
|
+
status:
|
202
|
+
code: 202
|
203
|
+
message: Accepted
|
204
|
+
headers:
|
205
|
+
Server:
|
206
|
+
- nginx
|
207
|
+
Content-Type:
|
208
|
+
- application/json
|
209
|
+
Content-Length:
|
210
|
+
- '316'
|
211
|
+
Link:
|
212
|
+
- <https://acme-staging.api.letsencrypt.org/acme/authz/1CKVEiLTxC7FC5Fb_UYY91GrP31aAZS_WMLWqT_7z2w>;rel="up"
|
213
|
+
Location:
|
214
|
+
- https://acme-staging.api.letsencrypt.org/acme/challenge/1CKVEiLTxC7FC5Fb_UYY91GrP31aAZS_WMLWqT_7z2w/1002274
|
215
|
+
Replay-Nonce:
|
216
|
+
- j8SBYo9XLRYa7_eCZL7rGo8eADHyGAOVNkonQ99HhIU
|
217
|
+
Expires:
|
218
|
+
- Mon, 11 Jan 2016 18:27:33 GMT
|
219
|
+
Cache-Control:
|
220
|
+
- max-age=0, no-cache, no-store
|
221
|
+
Pragma:
|
222
|
+
- no-cache
|
223
|
+
Date:
|
224
|
+
- Mon, 11 Jan 2016 18:27:33 GMT
|
225
|
+
Connection:
|
226
|
+
- keep-alive
|
227
|
+
body:
|
228
|
+
encoding: UTF-8
|
229
|
+
string: '{"type":"http-01","status":"pending","uri":"https://acme-staging.api.letsencrypt.org/acme/challenge/1CKVEiLTxC7FC5Fb_UYY91GrP31aAZS_WMLWqT_7z2w/1002274","token":"hd48zE3oxS3TNtnF83OcYSbizUgGkYpuKXw_Nuk3Kjc","keyAuthorization":"hd48zE3oxS3TNtnF83OcYSbizUgGkYpuKXw_Nuk3Kjc.QpHgC9lBgFD_P4u_Zz0MwltWWT7X6BTYfuO5IhoUkP0"}'
|
230
|
+
http_version:
|
231
|
+
recorded_at: Mon, 11 Jan 2016 18:27:37 GMT
|
232
|
+
- request:
|
233
|
+
method: get
|
234
|
+
uri: https://acme-staging.api.letsencrypt.org/acme/challenge/1CKVEiLTxC7FC5Fb_UYY91GrP31aAZS_WMLWqT_7z2w/1002274
|
235
|
+
body:
|
236
|
+
encoding: UTF-8
|
237
|
+
string: '{"protected":"eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsIm5vbmNlIjoiajhTQllvOVhMUllhN19lQ1pMN3JHbzhlQURIeUdBT1ZOa29uUTk5SGhJVSIsImp3ayI6eyJrdHkiOiJSU0EiLCJlIjoiQVFBQiIsIm4iOiJxN0gtQ2txRHZ3ekx2OWRBZ05rSmQzM2FiVEpFa0ZHSjhXbGIxRnZ1Y1F6MEFYWXJwWUx5ajdOYUNyQm90V1NaR2pFSnRQZ1k1M0xWWU1ET1BiOTktLTZEazNXVGhkT203U01JTlZYWlZ1YmhhNmtoY1pFWFA1N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AeyJqimIsIkT7ew6-t6iltEiQF24jToqCKuWKWK0jkW4OvCpwlgB_Ssx71ivB0WdaftaSek-5zECTPILED2E1TozyGCFmi8umzTDRbkdrF7u-ZBYgS8DqBTsXDvNvnbgCpzDNFOOYaH4Lgt5pTtVA26e-bxZZdGmPJPMcvj64Oy1IH0KPfRgHEX8sAGPpYz6hk5z3IK1qpAxyUMpItpYDM6MRCtO1CnVaL5c-hgGGNhVaT8j7L6tu3NEn4rLzPKpM4_F0LlRToGboE45aAsRWAxyn9RZqbJRaxm-CD_N4X-_aVGgw5tTcSMazS8xDLFHgwRYDXlPZphc7PO9nmO8MCT_kSSBtY2m2ZeYQbgxMRimjyUS4fQhCSI9itdlSU8-7OoZDLTo"}'
|
238
|
+
headers:
|
239
|
+
User-Agent:
|
240
|
+
- Faraday v0.9.2
|
241
|
+
Accept-Encoding:
|
242
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
243
|
+
Accept:
|
244
|
+
- "*/*"
|
245
|
+
response:
|
246
|
+
status:
|
247
|
+
code: 202
|
248
|
+
message: Accepted
|
249
|
+
headers:
|
250
|
+
Server:
|
251
|
+
- nginx
|
252
|
+
Content-Type:
|
253
|
+
- application/json
|
254
|
+
Content-Length:
|
255
|
+
- '733'
|
256
|
+
Link:
|
257
|
+
- <https://acme-staging.api.letsencrypt.org/acme/authz/1CKVEiLTxC7FC5Fb_UYY91GrP31aAZS_WMLWqT_7z2w>;rel="up"
|
258
|
+
Location:
|
259
|
+
- https://acme-staging.api.letsencrypt.org/acme/challenge/1CKVEiLTxC7FC5Fb_UYY91GrP31aAZS_WMLWqT_7z2w/1002274
|
260
|
+
Replay-Nonce:
|
261
|
+
- K0JYUDiucGf6FxtAR2IiZjFuvL1Bxq7ZTd5QwOMhbIw
|
262
|
+
Expires:
|
263
|
+
- Mon, 11 Jan 2016 18:27:33 GMT
|
264
|
+
Cache-Control:
|
265
|
+
- max-age=0, no-cache, no-store
|
266
|
+
Pragma:
|
267
|
+
- no-cache
|
268
|
+
Date:
|
269
|
+
- Mon, 11 Jan 2016 18:27:33 GMT
|
270
|
+
Connection:
|
271
|
+
- keep-alive
|
272
|
+
body:
|
273
|
+
encoding: UTF-8
|
274
|
+
string: '{"type":"http-01","status":"invalid","error":{"type":"urn:acme:error:unauthorized","detail":"Invalid
|
275
|
+
response from http://example.com/.well-known/acme-challenge/hd48zE3oxS3TNtnF83OcYSbizUgGkYpuKXw_Nuk3Kjc
|
276
|
+
[93.184.216.34]: 404"},"uri":"https://acme-staging.api.letsencrypt.org/acme/challenge/1CKVEiLTxC7FC5Fb_UYY91GrP31aAZS_WMLWqT_7z2w/1002274","token":"hd48zE3oxS3TNtnF83OcYSbizUgGkYpuKXw_Nuk3Kjc","keyAuthorization":"hd48zE3oxS3TNtnF83OcYSbizUgGkYpuKXw_Nuk3Kjc.QpHgC9lBgFD_P4u_Zz0MwltWWT7X6BTYfuO5IhoUkP0","validationRecord":[{"url":"http://example.com/.well-known/acme-challenge/hd48zE3oxS3TNtnF83OcYSbizUgGkYpuKXw_Nuk3Kjc","hostname":"example.com","port":"80","addressesResolved":["93.184.216.34"],"addressUsed":"93.184.216.34"}]}'
|
277
|
+
http_version:
|
278
|
+
recorded_at: Mon, 11 Jan 2016 18:27:38 GMT
|
279
|
+
- request:
|
280
|
+
method: get
|
281
|
+
uri: https://acme-staging.api.letsencrypt.org/acme/challenge/1CKVEiLTxC7FC5Fb_UYY91GrP31aAZS_WMLWqT_7z2w/1002274
|
282
|
+
body:
|
283
|
+
encoding: UTF-8
|
284
|
+
string: '{"protected":"eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsIm5vbmNlIjoiSzBKWVVEaXVjR2Y2Rnh0QVIySWlaakZ1dkwxQnhxN1pUZDVRd09NaGJJdyIsImp3ayI6eyJrdHkiOiJSU0EiLCJlIjoiQVFBQiIsIm4iOiJxN0gtQ2txRHZ3ekx2OWRBZ05rSmQzM2FiVEpFa0ZHSjhXbGIxRnZ1Y1F6M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bcljeQKfvhDxc3kkbhiK4mQUP_O6hRRCgIjMb-700zTLi0xPOIlUwRV-rIw0hC_ttFngvN67-ewxE6_pUIomDMMuCvqCJaovB1f3ZNalr6hx96_GV9Sv8gpk1U-WWA46gttM3kPFmVGWSnoL0CC17XtjVth7VTVfhYPqiPqUQuUJUEpUSMUYrcg2IJnSkJjJnOCSm7g-uyWASsbwXMMnenQcBCVlZinidQSmhBvAmuyUUlWSp2cF7cVRl_qqyxPLBohh7EEZYdKGVP73Nkzu3EK6tFE8jl5-N5jTfsAixtQ_1a234w_EoxUYErAqRl7dXRT4P2XYqwM5ogHAnBUBhwMEOHpMzcST_laMea0ahRVjlBm7o3g5zrObNXxCoGJGgErtRSPQSSi3jC0bw9oLN7wvgyOkCSbS9YCOsZVNW1S1TcRk0MrmbhcvINuFM2Ij-vUb3jtVI7wE12qVgF6BAOCG6cf4i_SXktxi8s6RKVMX2QCwcEA"}'
|
285
|
+
headers:
|
286
|
+
User-Agent:
|
287
|
+
- Faraday v0.9.2
|
288
|
+
Accept-Encoding:
|
289
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
290
|
+
Accept:
|
291
|
+
- "*/*"
|
292
|
+
response:
|
293
|
+
status:
|
294
|
+
code: 202
|
295
|
+
message: Accepted
|
296
|
+
headers:
|
297
|
+
Server:
|
298
|
+
- nginx
|
299
|
+
Content-Type:
|
300
|
+
- application/json
|
301
|
+
Content-Length:
|
302
|
+
- '733'
|
303
|
+
Link:
|
304
|
+
- <https://acme-staging.api.letsencrypt.org/acme/authz/1CKVEiLTxC7FC5Fb_UYY91GrP31aAZS_WMLWqT_7z2w>;rel="up"
|
305
|
+
Location:
|
306
|
+
- https://acme-staging.api.letsencrypt.org/acme/challenge/1CKVEiLTxC7FC5Fb_UYY91GrP31aAZS_WMLWqT_7z2w/1002274
|
307
|
+
Replay-Nonce:
|
308
|
+
- BdPjYqGneR8lYSBL0ePx_l68IOQLz8HsY2d97qokeNY
|
309
|
+
Expires:
|
310
|
+
- Mon, 11 Jan 2016 18:27:33 GMT
|
311
|
+
Cache-Control:
|
312
|
+
- max-age=0, no-cache, no-store
|
313
|
+
Pragma:
|
314
|
+
- no-cache
|
315
|
+
Date:
|
316
|
+
- Mon, 11 Jan 2016 18:27:33 GMT
|
317
|
+
Connection:
|
318
|
+
- keep-alive
|
319
|
+
body:
|
320
|
+
encoding: UTF-8
|
321
|
+
string: '{"type":"http-01","status":"invalid","error":{"type":"urn:acme:error:unauthorized","detail":"Invalid
|
322
|
+
response from http://example.com/.well-known/acme-challenge/hd48zE3oxS3TNtnF83OcYSbizUgGkYpuKXw_Nuk3Kjc
|
323
|
+
[93.184.216.34]: 404"},"uri":"https://acme-staging.api.letsencrypt.org/acme/challenge/1CKVEiLTxC7FC5Fb_UYY91GrP31aAZS_WMLWqT_7z2w/1002274","token":"hd48zE3oxS3TNtnF83OcYSbizUgGkYpuKXw_Nuk3Kjc","keyAuthorization":"hd48zE3oxS3TNtnF83OcYSbizUgGkYpuKXw_Nuk3Kjc.QpHgC9lBgFD_P4u_Zz0MwltWWT7X6BTYfuO5IhoUkP0","validationRecord":[{"url":"http://example.com/.well-known/acme-challenge/hd48zE3oxS3TNtnF83OcYSbizUgGkYpuKXw_Nuk3Kjc","hostname":"example.com","port":"80","addressesResolved":["93.184.216.34"],"addressUsed":"93.184.216.34"}]}'
|
324
|
+
http_version:
|
325
|
+
recorded_at: Mon, 11 Jan 2016 18:27:38 GMT
|
326
|
+
recorded_with: VCR 3.0.1
|
@@ -6,16 +6,21 @@ module LetsencryptPlugin
|
|
6
6
|
@routes = LetsencryptPlugin::Engine.routes
|
7
7
|
end
|
8
8
|
|
9
|
-
test
|
9
|
+
test 'if challenge request is invalid when is smaller than 128 bits' do
|
10
10
|
get :index, challenge: 'dG9rZW4='
|
11
11
|
assert_response :bad_request
|
12
12
|
assert_match('Challenge failed - Request has invalid length!', response.body)
|
13
13
|
end
|
14
14
|
|
15
|
-
test
|
16
|
-
get :index, challenge:
|
15
|
+
test 'if challenge request is invalid if it is larger than 256 bytes' do
|
16
|
+
get :index, challenge: 'a' * 257
|
17
17
|
assert_response :bad_request
|
18
18
|
assert_match('Challenge failed - Request has invalid length!', response.body)
|
19
19
|
end
|
20
|
+
|
21
|
+
test 'if challenge is valid' do
|
22
|
+
get :index, challenge: 'rpzxDjD-8xrr5I1G_JBTEToVMYgjNjfSs-XZ62tRtgs'
|
23
|
+
assert_response :ok
|
24
|
+
end
|
20
25
|
end
|
21
|
-
end
|
26
|
+
end
|
data/test/dummy/bin/setup
CHANGED
@@ -2,28 +2,28 @@
|
|
2
2
|
require 'pathname'
|
3
3
|
|
4
4
|
# path to your application root.
|
5
|
-
APP_ROOT = Pathname.new File.expand_path('../../',
|
5
|
+
APP_ROOT = Pathname.new File.expand_path('../../', __FILE__)
|
6
6
|
|
7
7
|
Dir.chdir APP_ROOT do
|
8
8
|
# This script is a starting point to setup your application.
|
9
9
|
# Add necessary setup steps to this file:
|
10
10
|
|
11
|
-
puts
|
12
|
-
system
|
13
|
-
system
|
11
|
+
puts '== Installing dependencies =='
|
12
|
+
system 'gem install bundler --conservative'
|
13
|
+
system 'bundle check || bundle install'
|
14
14
|
|
15
15
|
# puts "\n== Copying sample files =="
|
16
16
|
# unless File.exist?("config/database.yml")
|
17
17
|
# system "cp config/database.yml.sample config/database.yml"
|
18
18
|
# end
|
19
19
|
|
20
|
-
puts
|
21
|
-
system
|
20
|
+
puts '\n== Preparing database =='
|
21
|
+
system 'bin/rake db:setup'
|
22
22
|
|
23
|
-
puts
|
24
|
-
system
|
25
|
-
system
|
23
|
+
puts '\n== Removing old logs and tempfiles =='
|
24
|
+
system 'rm -f log/*'
|
25
|
+
system 'rm -rf tmp/cache'
|
26
26
|
|
27
|
-
puts
|
28
|
-
system
|
27
|
+
puts '\n== Restarting application server =='
|
28
|
+
system 'touch tmp/restart.txt'
|
29
29
|
end
|
@@ -1,9 +1,8 @@
|
|
1
1
|
require File.expand_path('../boot', __FILE__)
|
2
|
-
|
3
2
|
require 'rails/all'
|
4
3
|
|
5
4
|
Bundler.require(*Rails.groups)
|
6
|
-
require
|
5
|
+
require 'letsencrypt_plugin'
|
7
6
|
|
8
7
|
module Dummy
|
9
8
|
class Application < Rails::Application
|
@@ -23,4 +22,3 @@ module Dummy
|
|
23
22
|
config.active_record.raise_in_transactional_callbacks = true
|
24
23
|
end
|
25
24
|
end
|
26
|
-
|
@@ -1,13 +1,13 @@
|
|
1
1
|
default: &default
|
2
|
-
endpoint:
|
3
|
-
email:
|
4
|
-
domain:
|
5
|
-
private_key:
|
6
|
-
output_cert_dir:
|
7
|
-
|
2
|
+
endpoint: 'https://acme-staging.api.letsencrypt.org/directory' # test server
|
3
|
+
email: 'your@email.address'
|
4
|
+
domain: 'example.com'
|
5
|
+
private_key: 'key/test-keyfile.pem' # in Rails.root
|
6
|
+
output_cert_dir: 'certificates' # in Rails.root
|
7
|
+
|
8
8
|
production:
|
9
9
|
<<: *default
|
10
|
-
|
10
|
+
|
11
11
|
development:
|
12
12
|
<<: *default
|
13
13
|
|
data/test/dummy/config/routes.rb
CHANGED
data/test/dummy/db/test.sqlite3
CHANGED
Binary file
|
@@ -0,0 +1,15 @@
|
|
1
|
+
-----BEGIN RSA PRIVATE KEY-----
|
2
|
+
MIICXAIBAAKBgQC9++Nxyib/JgYvFkkyAbqUcJOh8tigYHWNAAl+Irf0OVS2aXrM
|
3
|
+
9vyK1w2IyzyfaaqUKt41oFwlDsH1vK55Kt05V+EWDbZ7oRX0pmreTzP6AV/2kDjl
|
4
|
+
+bmZOfkd61wjKuNdDI3aJzkip4lTc0lEdJNolOB2IycWNLjCmi8cqmtuIwIDAQAB
|
5
|
+
AoGBAIZhaRvPtY28Q5uC0/s/Jc5hYsumjnvCPuOhJxXFUQC6nKT6LxZTjYZXXwdn
|
6
|
+
WlYX08RCHjMoXoUHz0IWWAL0wszYpuVokucdp5HzmofCImbS7+JCKdM+YQmRFSEw
|
7
|
+
SSvD1h1/QH0fmmI+L1uC34ryewklvsyT9lsKvvg3Sz7NK6GBAkEA5A+4cIxd4YJ3
|
8
|
+
hzCBTYdcrv1ePgB5djE08X50vLW9BIS8qAjSn7YQ1axWUwPf94rugyZ78NnSmLrs
|
9
|
+
R4Kup3hoUwJBANVCA0qL6PNLvi5sVY7+XS/554CQiGPgWqPk95JOgMM9520frccL
|
10
|
+
mN/WWjkEWYrwVaknMvlywZUAAftxhsWi6PECQEXxOEx0D/qwK34vdwhS4i7cj4GO
|
11
|
+
XbHMx4LkmGKjjfOLzdvu0MGgcatGLjdJce+WES3xqIMmGnsyoHIR9wRvXfcCQHBA
|
12
|
+
DvtuKW/mrnRBEcfym5plMDW73g60SQF7w9R+/cfHDcmioxXiRNWNPnBEmd1II86l
|
13
|
+
k285uCt1lZWEbCwbVAECQBgj3e4EquE4CSwmmFRZsyNYHvbii2qCcHeqkH3RIhO6
|
14
|
+
6CYtMgH3eoq83UxWs73oebAnSG5w932+Uq+hZGDUo9g=
|
15
|
+
-----END RSA PRIVATE KEY-----
|