Skip to content

Commit

Permalink
one-line the PEM cert
Browse files Browse the repository at this point in the history
  • Loading branch information
jakedoublev committed Nov 21, 2024
1 parent 1cebb32 commit 5fd39be
Showing 1 changed file with 1 addition and 19 deletions.
20 changes: 1 addition & 19 deletions e2e/kas-registry.bats
Original file line number Diff line number Diff line change
Expand Up @@ -10,25 +10,7 @@ setup_file() {
export DEBUG_LEVEL="--log-level debug"

export REMOTE_KEY='https://hello.world/pubkey'
export PEM='-----BEGIN CERTIFICATE-----
MIIC/TCCAeWgAwIBAgIUMu8o8Wh2HTA6TAeLCjC2fV9pIeIwDQYJKoZIhvcNAQEL
BQAwDjEMMAoGA1UEAwwDa2FzMB4XDTI0MDYxODE4MzYyN1oXDTI1MDYxODE4MzYy
N1owDjEMMAoGA1UEAwwDa2FzMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKC
AQEAr1pQjo7piOvPCTtdIENfG8yVi+WV1FUN/6xTDqrLxZTtAkZ143uHTfP9a1uq
hW1IoayJOUjnYsnQHzuEBdkZ4Huwzdy6wRneOTRcj7N+DwnZKmDq1uafzlGsto/B
hftmilUF4YnnFcDN+vqj2ep3abUkjhkmIQT8pr25bFxLaiwwOnlyM5VQc8nahgln
0M0gNWKIWFEJwhj0Zojh1L4djmzqUiOmNHBP4QzSp7+0+tWoxIoP2OajkJy0IcZH
q/N9iSzVbg1K/kKg+du/PmdjP+j56lkJOSRzezh+dy7+GhrBT3UsmPncV3cWVMi8
EsYCKcT5EMHhaNaG0XDjJmG28wIDAQABo1MwUTAdBgNVHQ4EFgQUgPTNFczd9j0E
X37p6HhwPRicBj8wHwYDVR0jBBgwFoAUgPTNFczd9j0EX37p6HhwPRicBj8wDwYD
VR0TAQH/BAUwAwEB/zANBgkqhkiG9w0BAQsFAAOCAQEACKeqFK0JW2a5sKbOBywZ
ik0y2jrDrZPnf0odN5Hm8meenBxmyoByVVFonPeChmnYFStDm2QIQ6gYPmtAaCuJ
tUyNs6LOBmpGbJhTg5yceqW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nYFStDm2QIQ6gYPmtAaCuJ\ntUyNs6LOBmpGbJhTg5yceqWZxXcsfVFwdqqUt66tW\ncOxVTBgk7xzDQOnLgFLjd6\nJVHxMzFLWTQ0kM2UrN8gtOdLk4aeBaK7bTwZPFtFt\naFebQTm4KcfR5zsfLS+8iF\nu1fF9ZJZH6g6blCTxNtwvvyS1U3/KP0VT9YPw95fp\nV2SKOd3z3Y0dJ9A9Ld9MI3\nL/Y/+5m94FB17SIkDEzY3gvNLCIVq88vXyg+ghTHs\nscc3VqE0+Lzrfdzimo31Ed\nNA==\n-----END CERTIFICATE-----'
export KID='my_key_123'
export CACHED_KEY="{\"cached\":{\"keys\":[{\"pem\":\"$PEM\",\"kid\":\"$KID\",\"alg\":1}]}}"
}
Expand Down

0 comments on commit 5fd39be

Please sign in to comment.