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

openssl_pkcs12: do not crash when there's no certificate and/or private key in existing PKCS#12 file #109

Merged

Conversation

felixfontein
Copy link
Contributor

SUMMARY

Fixes #103.

ISSUE TYPE
  • Bugfix Pull Request
COMPONENT NAME

openssl_pkcs12

This was referenced Sep 9, 2020
@abadger
Copy link
Contributor

abadger commented Sep 16, 2020

As far as i can see without having actually run the code, this looks good now :-)

@felixfontein
Copy link
Contributor Author

The new tests also pass (except the macOS failure in CI, but that is unrelated to this PR - I'll have to investigate what that is...), so it should be good :)

@felixfontein
Copy link
Contributor Author

Looks like the failing CI was caused by cffi 1.14.3, which has been yanked. Unfortunately the pip version on macOS (8 something) does ignore that, since support for yanked packages was only added in pip 19.2...

@felixfontein felixfontein force-pushed the pkcs12-no-cert-key-crash branch from 3d1cb0c to e983d49 Compare September 16, 2020 08:49
@felixfontein
Copy link
Contributor Author

(Rebased to remove test commits for fixing the macOS problem. That problem has now been fixed in main.)

@felixfontein felixfontein merged commit 7cdfdc1 into ansible-collections:main Sep 16, 2020
@felixfontein felixfontein deleted the pkcs12-no-cert-key-crash branch September 16, 2020 09:25
@felixfontein
Copy link
Contributor Author

@abadger thanks a lot for reviewing this!

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.

openssl_pkcs12: cannot re-create pkcs12 with no private key
2 participants