Skip to content

Commit

Permalink
Add an EAB integration test with lego
Browse files Browse the repository at this point in the history
  • Loading branch information
mcpherrinm committed May 1, 2024
1 parent 35357e1 commit 680d520
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,35 @@ jobs:
run: |
git clone https://github.com/eggsampler/acme.git /tmp/eggsampler-acme
cd /tmp/eggsampler-acme && make test
lego-eab-linux:
name: Test lego with EAB
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version-file: go.mod
- name: Install lego cli
run: go install github.com/go-acme/lego/v4/cmd/lego@latest
- name: go install commands
run: go install -v ./cmd/...
- name: launch pebble
run: |
GORACE="halt_on_error=1" PEBBLE_WFE_NONCEREJECT=0 PEBBLE_VA_ALWAYS_VALID=1 \
pebble \
-dnsserver localhost:8053 \
-config test/config/pebble-config-external-account-bindings.json \
&
- run: |
LEGO_CA_CERTIFICATES=./test/certs/pebble.minica.pem \
lego --server=https://localhost:14000/dir \
--email="pebble-test@example.letsencrypt.org" \
--domains=example.letsencrypt.org \
--eab \
--kid kid-1 \
--hmac=zWNDZM6eQGHWpSRTPal5eIUYFTu7EajVIoguysqZ9wG44nMEtx3MUAsUDkMTQ12W \
--http \
run
go-linux:
name: Run Go tests on Linux
runs-on: ubuntu-latest
Expand Down

0 comments on commit 680d520

Please sign in to comment.