Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix OSError on MacOS 12+ #63

Merged
merged 1 commit into from
Oct 1, 2022

Conversation

magicrobotmonkey
Copy link
Contributor

@magicrobotmonkey magicrobotmonkey commented May 16, 2022

add support for SecCertificateCopyKey, which replaces deprecated SecCertificateCopyPublicKey since MacOS 10.14

fixes #56

https://developer.apple.com/documentation/security/1396096-seccertificatecopypublickey

@wbond
Copy link
Owner

wbond commented Sep 30, 2022

Thanks for your work on this!

Can you see if the test fails for you on an M1 with 222a558?

The only other thing I think this code needs to handle is a null return from Security.SecCertificateCopyKey().

@wbond
Copy link
Owner

wbond commented Oct 1, 2022

This should be all functioning properly on master, and I've added a check for the null return value

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.

OSError on macOS 12.2 running on arm
2 participants