Skip to content

Commit

Permalink
Clean up some formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
oskirby committed Jul 6, 2024
1 parent 9fd06cc commit ab7aa0d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion bin/run_integration_tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@ while test "true" != "$(docker inspect -f {{.State.Running}} autograph-app-hsm)"
done

# fetch the updated root hash from the app-hsm service
APP_HSM_NORMANDY_ROOT_HASH=$(docker compose exec app-hsm yq -r '.signers[] | select(.id == "normandy").cacert' /app/autograph.softhsm.yaml | openssl x509 -outform DER | sha256sum | awk '{print $1}')
APP_HSM_NORMANDY_ROOT_HASH=$(docker compose exec app-hsm yq -r '.signers[] | select(.id == "normandy").cacert' /app/autograph.softhsm.yaml | \
openssl x509 -outform DER | sha256sum | awk '{print $1}')

# start the monitor lambda emulators
docker compose up -d monitor-lambda-emulator
Expand Down
2 changes: 1 addition & 1 deletion handlers.go
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ func mirrorLocalX5U(r *http.Request, response formats.SignatureResponse) string
parsedX5U, err := url.Parse(response.X5U)
if err == nil && parsedX5U.Scheme == "file" {
mirroredX5U := url.URL{
Scheme: "http",
Scheme: "http",
Host: r.Host,
Path: path.Join("x5u", response.SignerID, path.Base(parsedX5U.Path)),
}
Expand Down

0 comments on commit ab7aa0d

Please sign in to comment.