File tree Expand file tree Collapse file tree 3 files changed +60
-10
lines changed Expand file tree Collapse file tree 3 files changed +60
-10
lines changed Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+
3
+ set -eux
4
+
5
+ #
6
+ # Check all of Let's Encrypt CRL shards
7
+
8
+ check () {
9
+ for SHARD in $( seq 0 127) ; do
10
+ S3_CRL_OBJECT=$1 /$SHARD .crl \
11
+ S3_CRL_BUCKET=$2 \
12
+ BOULDER_BASE_URL=$3 \
13
+ go run cmd/checker/checker.go
14
+ done
15
+ }
16
+
17
+ # TODO: r3/e1 might be backwards
18
+ R3STG=" 4169287449788112"
19
+ E1STG=" 58367272336442518"
20
+ R3PROD=" 20506757847264211"
21
+ E1PROD=" 67430855296768143"
22
+
23
+ STGBUCKET=" le-crl-stg"
24
+ PRODBUCKET=" le-crl-prod"
25
+
26
+ export DYNAMO_ENDPOINT=" http://localhost:8000"
27
+ export DYNAMO_TABLE=" unseen-certificates"
28
+
29
+ STGURL=" https://acme-staging-v02.api.letsencrypt.org/acme/cert"
30
+ PRODURL=" https://acme-v02.api.letsencrypt.org/acme/cert"
31
+
32
+ export BOULDER_MAX_FETCH=500
33
+ export ISSUER_PATHS=" checker/testdata/r3.pem:checker/testdata/e1.pem:checker/testdata/stg-e1.pem:checker/testdata/stg-r3.pem"
34
+
35
+ ./db/run_local_dynamo.sh &
36
+ dynamopid=$!
37
+ trap ' kill $dynamopid' EXIT
38
+
39
+ check $R3STG $STGBUCKET $STGURL
40
+ check $E1STG $STGBUCKET $STGURL
41
+ check $R3PROD $PRODBUCKET $PRODURL
42
+ check $E1PROD $PRODBUCKET $PRODURL
Original file line number Diff line number Diff line change @@ -4,16 +4,7 @@ set -eux
4
4
SCRIPT_PATH=${0%/* }
5
5
cd " $SCRIPT_PATH "
6
6
7
- # Fetch the local DynamoDB if there isn't one here already
8
- if ! [ -d dynamodb_local ]; then
9
- mkdir dynamodb_local
10
- curl -sSL https://s3.us-west-2.amazonaws.com/dynamodb-local/dynamodb_local_latest.tar.gz \
11
- | tar -xzf - -C dynamodb_local
12
- else
13
- echo " using existing DynamoDBLocal.jar"
14
- fi
15
-
16
- java -Djava.library.path=./dynamodb_local/DynamoDBLocal_lib -jar ./dynamodb_local/DynamoDBLocal.jar -sharedDb -inMemory &
7
+ ./run_local_dynamo.sh &
17
8
dynamopid=$!
18
9
trap ' kill $dynamopid' EXIT
19
10
Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+
3
+ set -eu
4
+
5
+ SCRIPT_PATH=${0%/* }
6
+ cd " $SCRIPT_PATH " || exit
7
+
8
+ # Fetch the local DynamoDB if there isn't one here already
9
+ if ! [ -d dynamodb_local ]; then
10
+ mkdir dynamodb_local
11
+ curl -sSL https://s3.us-west-2.amazonaws.com/dynamodb-local/dynamodb_local_latest.tar.gz \
12
+ | tar -xzf - -C dynamodb_local
13
+ else
14
+ echo " using existing DynamoDBLocal.jar"
15
+ fi
16
+
17
+ exec java -Djava.library.path=./dynamodb_local/DynamoDBLocal_lib -jar ./dynamodb_local/DynamoDBLocal.jar -sharedDb -inMemory
You can’t perform that action at this time.
0 commit comments