Skip to content

Fix signer digest algorithm#3

Merged
groob merged 2 commits intogroob:sha256from
knightsc:bugs/fix-signer-digest-algorithm
Jul 5, 2018
Merged

Fix signer digest algorithm#3
groob merged 2 commits intogroob:sha256from
knightsc:bugs/fix-signer-digest-algorithm

Conversation

@knightsc
Copy link
Copy Markdown

@knightsc knightsc commented Jul 4, 2018

See the comments on this bug micromdm/micromdm#441 (comment)

We were not always correctly matching the SignedData digestAlgorithm with the information in the SignerInfo and we weren't setting the digestAlgorithm in the SignerInfo to a real digest algorithm. This should fix the error of enrollment not working on iOS.

I tested on macOS 10.13.4, 10.10 and iOS 11.4, 9.3.3

@knightsc
Copy link
Copy Markdown
Author

knightsc commented Jul 4, 2018

This might in some weird way relate to #1 since I think that PR is attempting to address some of the same issues. That in certain places we take a digest algorithm and try to look up info in the lookup tables which previously only had signature algorithm oids

@groob
Copy link
Copy Markdown
Owner

groob commented Jul 5, 2018

This will do for now to fix the issue. We can make a cleaner refactor of all these components later on.

@groob groob merged commit 9cd374b into groob:sha256 Jul 5, 2018
@knightsc knightsc deleted the bugs/fix-signer-digest-algorithm branch July 11, 2018 11:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants