Skip to content

Instantly share code, notes, and snippets.

@mesmacosta
Last active July 29, 2020 20:02
Show Gist options
  • Select an option

  • Save mesmacosta/96524b7d89a554f681e2e2f417fa2064 to your computer and use it in GitHub Desktop.

Select an option

Save mesmacosta/96524b7d89a554f681e2e2f417fa2064 to your computer and use it in GitHub Desktop.
curl --request POST \
--header "Authorization: Bearer $(gcloud auth print-access-token)" \
--data '' \
"https://meshconfig.googleapis.com/v1alpha1/projects/${PROJECT_ID}:initialize"
curl -LO https://storage.googleapis.com/gke-release/asm/istio-1.6.5-asm.7-linux-amd64.tar.gz
export PATH=$PWD/bin:$PATH
# Download the signature file and use openssl to verify the signature
curl -LO https://storage.googleapis.com/gke-release/asm/istio-1.6.5-asm.7-linux-amd64.tar.gz.1.sig
openssl dgst -verify - -signature istio-1.6.5-asm.7-linux-amd64.tar.gz.1.sig istio-1.6.5-asm.7-linux-amd64.tar.gz <<'EOF'
-----BEGIN PUBLIC KEY-----
MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAEWZrGCUaJJr1H8a36sG4UUoXvlXvZ
wQfk16sxprI2gOJ2vFFggdq3ixF2h4qNBt0kI7ciDhgpwS8t+/960IsIgw==
-----END PUBLIC KEY-----
EOF
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment