Skip to content

Commit caaefab

Browse files
Update add-osx-cert.sh
1 parent 3ed0924 commit caaefab

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

add-osx-cert.sh

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,19 @@
11
#!/usr/bin/env sh
22

33
KEY_CHAIN=build.keychain
4-
KEY_CHAIN_PASSWORD=password123
54
CERTIFICATE_P12=certificate.p12
65

76
# Recreate the certificate from the secure environment variable
87
echo $CERTIFICATE_OSX_APPLICATION | base64 --decode > $CERTIFICATE_P12
98

109
#create a keychain
11-
security create-keychain -p $KEY_CHAIN_PASSWORD $KEY_CHAIN
10+
security create-keychain -p actions $KEY_CHAIN
1211

1312
# Make the keychain the default so identities are found
1413
security default-keychain -s $KEY_CHAIN
1514

1615
# Unlock the keychain
17-
security unlock-keychain -p $KEY_CHAIN_PASSWORD $KEY_CHAIN
16+
security unlock-keychain -p actions $KEY_CHAIN
1817

1918
security import $CERTIFICATE_P12 -k $KEY_CHAIN -P $CERTIFICATE_PASSWORD -T /usr/bin/codesign;
2019

0 commit comments

Comments
 (0)