mirror of
https://github.com/certd/certd.git
synced 2026-04-14 12:30:54 +08:00
Add Node v22 to test matrix Postpone Pebble bump, v2.5.1 broke EAB tests Bump Pebble v2.5.1 Allow client.auto() being called with an empty CSR common name Carry EAB over to new HttpClient when updating account key Ignore actrc
34 lines
1.2 KiB
Bash
34 lines
1.2 KiB
Bash
#!/bin/bash
|
|
#
|
|
# Install Pebble for testing.
|
|
#
|
|
set -euo pipefail
|
|
|
|
CONFIG_NAME="pebble-config.json"
|
|
|
|
# Use Pebble EAB config if enabled
|
|
set +u
|
|
if [[ -n $ACME_CAP_EAB_ENABLED ]] && [[ $ACME_CAP_EAB_ENABLED -eq 1 ]]; then
|
|
CONFIG_NAME="pebble-config-external-account-bindings.json"
|
|
fi
|
|
set -u
|
|
|
|
# Download certs and config
|
|
mkdir -p /etc/pebble
|
|
|
|
wget -nv "https://raw.githubusercontent.com/letsencrypt/pebble/v${PEBBLE_VERSION}/test/certs/pebble.minica.pem" -O /etc/pebble/ca.cert.pem
|
|
wget -nv "https://raw.githubusercontent.com/letsencrypt/pebble/v${PEBBLE_VERSION}/test/certs/localhost/cert.pem" -O /etc/pebble/cert.pem
|
|
wget -nv "https://raw.githubusercontent.com/letsencrypt/pebble/v${PEBBLE_VERSION}/test/certs/localhost/key.pem" -O /etc/pebble/key.pem
|
|
wget -nv "https://raw.githubusercontent.com/letsencrypt/pebble/v${PEBBLE_VERSION}/test/config/${CONFIG_NAME}" -O /etc/pebble/pebble.json
|
|
|
|
# Download and install Pebble
|
|
wget -nv "https://github.com/letsencrypt/pebble/releases/download/v${PEBBLE_VERSION}/pebble_linux-amd64" -O /usr/local/bin/pebble
|
|
|
|
chown root:root /usr/local/bin/pebble
|
|
chmod 0755 /usr/local/bin/pebble
|
|
|
|
# Config
|
|
sed -i 's#test/certs/localhost#/etc/pebble#' /etc/pebble/pebble.json
|
|
|
|
exit 0
|