Skip to content

Commit ed3592d

Browse files
committed
compare fingerprints
1 parent 4f03564 commit ed3592d

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

.github/actions/configure-keystore/action.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -141,16 +141,17 @@ runs:
141141
# Fingerprint of cert from provisioning profile
142142
TMP_PROFILE_PLIST="$RUNNER_TEMP/profile.plist"
143143
security cms -D -i "$PROFILE_PATH" -o "$TMP_PROFILE_PLIST"
144-
PROFILE_FP=$(plutil -extract DeveloperCertificates.0 raw -o - profile.plist \
144+
145+
PROFILE_FP=$(plutil -extract DeveloperCertificates.0 raw -o - "$TMP_PROFILE_PLIST" \
145146
| base64 -D \
146147
| openssl x509 -inform DER -noout -fingerprint -sha1 | cut -d'=' -f2)
147148
148149
# Fingerprint of cert from .p12
149150
P12_FP=$(openssl pkcs12 -in "$CERT_PATH" -nokeys -passin pass:"$CERT_PW" \
150151
| openssl x509 -noout -fingerprint -sha1 | cut -d'=' -f2)
151152
152-
echo "Profile fingerprint: $PROFILE_FP"
153-
echo "P12 fingerprint: $P12_FP"
153+
echo "📄 Provisioning profile fingerprint: $PROFILE_FP"
154+
echo "🔑 Imported .p12 fingerprint: $P12_FP"
154155
155156
if [[ "$PROFILE_FP" == "$P12_FP" ]]; then
156157
echo "✅ Certificates match"
@@ -159,6 +160,7 @@ runs:
159160
fi
160161
161162
163+
162164
### END DEBUGGING
163165
164166

0 commit comments

Comments
 (0)