Update match manual decryption example #1196
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
When attempting to manually decrypt some provisioning profiles generated by match, I noticed that the existing manual decryption example was generating a
bad decrypt
error:Based on the code samples for
.cer
+.p12
repackaging, I noticed that they have the-md
flag specified at the end. Adding this flag with the appropriate hash type results in a successful decryption:Also in my case, my match repo password contains an exclamation point
!
, which was causingdquote>
to be output with no actual decryption happening when run:It appears that the
!
was causing the trailing quote for the password parameter to get removed when run, which I could verify by pressing up arrow↑
to stage the previous command in Terminal (notice missing double quote"
after password):Switching from double quotes to single quotes as suggested in this SO post, allowed my command to succeed with the
!
in the password. I added a note here in the docs to make others aware as well.