1
0
mirror of https://github.com/bitwarden/mobile synced 2025-01-23 23:11:20 +01:00
Bitwarden-app-android-iphon.../.github/scripts/ios/setup-keychain.ps1
2020-06-09 11:48:11 -04:00

12 lines
522 B
PowerShell

$homePath = $env:HOME;
$secretsPath = $homePath + "/secrets"
$mobileKeyPath = $($secretsPath + "/bitwarden-mobile-key.p12");
$distCertPath = $($secretsPath + "/iphone-distribution-cert.p12");
security create-keychain -p $env:KEYCHAIN_PASSWORD build.keychain
security default-keychain -s build.keychain
security unlock-keychain -p $env:KEYCHAIN_PASSWORD build.keychain
security import $mobileKeyPath -k build.keychain -P $env:MOBILE_KEY_PASSWORD
security import $distCertPath -k build.keychain -P $env:DIST_CERT_PASSWORD