Commit Graph

34 Commits

Author SHA1 Message Date
Jacob Hoffman-Andrews 50722c7496 Add trailing commas. 2015-08-28 10:45:39 -07:00
Jacob Hoffman-Andrews a87baa34fa Update with review feedback. 2015-08-28 10:42:13 -07:00
Jacob Hoffman-Andrews 8f5e4404c9 Test.js fixes
Always pass Content-Length header
Always use tls: true
Don't write terms of service contents to terminal: it might be a PDF
Separate out signing, posting, and printing code into acme.js
Use acme.js in revoke.js for better error reporting.
Check for PEM passed to revoke.js.

This is in response to some trouble JC had using the client to test in prod. In
particular, Akamai insists on Content-Length (we turned this off for a while to
match Boulder, but now it's back on), and the PEM / DER distinction was a
stumbling block.
2015-08-27 19:20:53 -07:00
Jacob Hoffman-Andrews e0c23cd582 Add status code to test.js output. 2015-08-04 17:12:43 -07:00
Richard Barnes 652702bd7f Merge master 2015-07-30 13:47:10 -04:00
Richard Barnes eca5f1c123 Add new simpleHttp to integration test 2015-07-29 12:18:09 -04:00
Richard Barnes c996e0abca Integration test for 'resource' 2015-07-29 10:24:44 -04:00
Roland Shoemaker 2d2efa5e85 Merge pull request #356 from letsencrypt/remove-slash
Revoke path should not end in slash
2015-06-12 13:55:10 -07:00
Jacob Hoffman-Andrews 2b2f4110d4 Revoke path should not end in slash. 2015-06-12 13:26:43 -07:00
Roland Shoemaker f4ee29d1d3 Change all references from SimpleHTTPS -> SimpleHTTP 2015-06-12 11:22:04 -07:00
Roland Shoemaker c301125e93 Add TLS field to core.Challenge per spec 2015-06-11 17:12:50 -07:00
Richard Barnes e32c681640 Stray comma 2015-06-08 15:45:55 -04:00
Richard Barnes 9e05b2e191 Removing spurious strictSSL settings 2015-06-08 15:45:09 -04:00
Richard Barnes a620fe4583 Initial anti-replay mechanism 2015-06-08 15:02:39 -04:00
Richard Barnes 3f8c5ea000 Add support for multiple domains on the command line 2015-06-01 21:20:04 -04:00
Richard Barnes 3596d6583a Add support for multi-domain certs to test.js 2015-06-01 21:02:38 -04:00
Jacob Hoffman-Andrews ee57874d03 Misc fixes
Actually return error from NewCertificate in RA.
Export BOULDER_CONFIG in start.sh so it gets used.
Print error properly in test.js.
2015-05-29 00:09:55 -07:00
Jacob Hoffman-Andrews 442ede5bda Display non-JSON response bodies. 2015-05-22 10:30:26 -07:00
Jacob Hoffman-Andrews 153234204d Add an integration test using test.js
Include updates to test.js to make its output more useful as a diagnostic.

It remains a future TODO to do integration testing with the real letsencrypt
client.

Also, work around a go vet bug.
2015-05-21 16:51:40 -07:00
Jacob Hoffman-Andrews 8dd4c650bd Disallow GETs for Registration.
Per the spec, authenticated requests must be signed by an account key, and
GET requests can't be signed under the current protocol. If the account holder
wishes to fetch their current registration, they can do so by posting a signed,
empty update to their registration resource.

Also fix a bug in generating registration URLs.
2015-05-19 12:44:04 -07:00
Jacob Hoffman-Andrews 61be79e51d Check that cert key != account key. 2015-05-18 15:20:02 -07:00
Jacob Hoffman-Andrews 3eed9e3f7c Move to Square's go-jose library. 2015-05-13 17:36:38 -07:00
Jacob Hoffman-Andrews eecf4b305e Add instructions and clarify openssl command line. 2015-04-27 15:50:44 -07:00
Jacob Hoffman-Andrews f81b531abb Fix incorrect request.post invocation.
Also tidy up some error cases and variable names.
2015-04-27 14:47:34 -07:00
Jacob Hoffman-Andrews a59323bfaa Fix key generation in test.js.
Also be more lenient about validating inbound challenge requests when talking to
a localhost Boulder.
2015-04-27 11:43:28 -07:00
Jacob Hoffman-Andrews 6fc9ed5b80 Use openssl to generate test.js key, for speed. 2015-04-24 19:11:51 -07:00
Jacob Hoffman-Andrews 14511361e4 Handle challenges within test.js 2015-04-24 18:39:47 -07:00
Jacob Hoffman-Andrews 2edb869086 Improve test.js.
Use request instead of http so it works with either HTTP or HTTPS URLs.
Write DER certificate rather than PEM certificate. I was getting some bytewise
mismatches when checking the output PEM against a downloaded DER.
2015-04-24 12:40:37 -07:00
Jacob Hoffman-Andrews 7d8ef9a019 Fix tests and tidy up for review. 2015-04-18 23:44:42 -04:00
Jacob Hoffman-Andrews 431ad092eb Query certs by sequential part of serial number.
Also refactor WFE for better initialization and change StorageAuthority to
support this type of query.
2015-04-18 00:48:19 -04:00
Jacob Hoffman-Andrews ce679a55d4 Update readme for test directory. 2015-04-10 16:58:50 -07:00
Jacob Hoffman-Andrews e9302f2288 Make it easier to start a test config. 2015-04-09 18:26:40 -07:00
Richard Barnes 19fada5b27 Support for subscriber agreement 2015-03-15 23:47:55 -04:00
Richard Barnes bc583a0df3 Simple walkthrough node.js script 2015-03-15 22:56:46 -04:00