keychain_unlock.sh 612 B

123456789101112131415
  1. #!/bin/sh
  2. # Copyright 2016 The Chromium Authors. All rights reserved.
  3. # Use of this source code is governed by a BSD-style license that can be
  4. # found in the LICENSE file.
  5. #
  6. # Script to SSH into a list of bots and set up their keychains for Telemetry.
  7. # https://www.chromium.org/developers/telemetry/telemetry-mac-keychain-setup
  8. for hostname in "$@"
  9. do
  10. ssh -t "$hostname" 'security unlock-keychain login.keychain
  11. security delete-generic-password -s "Chrome Safe Storage" login.keychain
  12. security add-generic-password -a Chrome -w "+NTclOvR4wLMgRlLIL9bHQ==" \
  13. -s "Chrome Safe Storage" -A login.keychain'
  14. done