• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

tollmanz / lets-encrypt-wp / 79 / 2
96%
master: 96%

Build:
Build:
LAST BUILD BRANCH: wp-cli
DEFAULT BRANCH: master
Ran 25 Jan 2016 02:40AM UTC
Files 8
Run time 0s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

25 Jan 2016 02:40AM UTC coverage: 96.196%. First build
79.2

push

travis-ci

tollmanz
Implement signing without library.

This commit removes the reliance on Namshi/JOSE for JWT handling. I
spent some time trying to get the requests to work against the
boulder instance that I set up and it just was not working. After
spending some time looking at the Node application in the boulder
repo, I think that either Namshi/JOSE is building JWT requests
incorrectly, or the Let's Encrypt ACME server is a special snowflake
that needs a different JWT. I'm inclined to think that there is an
issue with Namshi/JOSE (or perhaps our implementation).

The biggest issue was that the header that is used to create the
protected field *requires* that you set an "alg" value. Namshi/JOSE
uses "alg" to determine how to sign the header/payload combo. The
problem is that this value is also added to the protected header.
Boulder's test Node application only includes the nonce in the
protected header. With this extra value, the requests were summarily
rejected.

As such, I started trying to build the request based on the test Node
application. I was able to steals bits from Namshi/JOSE (e.g., the
functions used for the actual signature), while ensuring that the
contents in the request correct.

In the end, the request objects are now readable by the ACME server.
We are still dependent upon Namshi/JOSE for the encoder/decoder;
however, this is easily replaceable if we decide to fully abandon
it.

177 of 184 relevant lines covered (96.2%)

3.13 hits per line

Source Files on job 79.2
  • Tree
  • List 0
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 79
  • Travis Job 79.2
  • 09de1624 on github
  • Next Job for on signing-without-library (#91.4)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc