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

Update certificatesInBundle - addl. extensions, case sensitivity #956

Closed
wants to merge 1 commit into from

Conversation

jacobjennings
Copy link

In certificatesInBundle, check for well-formed certificates with
extensiions .cer, .crt, .der, and check for upper and lower case
extensions (OSX filesystem may or may not be case sensitive. iOS
always is)

DER is a binary encoding format
PEM is an ASCII encoding format
.crt is the most common certificate extension, may be DER or PEM
.cer is a Microsoft extension convention, may be DER or PEM
.der is a (poor) extension referring to encoding instead of
contents, these may contain a certificate and/or a key.

Apple's SecCertificateCreateWithData only accepts DER-encoded certificates

In certificatesInBundle, check for well-formed certificates with
extensiions .cer, .crt, .der, and check for upper and lower case
extensions (OSX filesystem may or may not be case sensitive. iOS
always is)

DER is a binary encoding format
PEM is an ASCII encoding format
.crt is the most common certificate extension, may be DER or PEM
.cer is a Microsoft extension convention, may be DER or PEM
.der is a (poor) extension referring to encoding instead of
contents, these may contain a certificate and/or a key.
@cnoon cnoon added this to the 3.2.0 milestone Dec 11, 2015
@cnoon cnoon self-assigned this Dec 11, 2015
@cnoon
Copy link
Member

cnoon commented Dec 11, 2015

Thanks for putting this together @jacobjennings...much appreciated! I made a few small formatting changes to your PR and pushed it up in 234568d still giving you attribution.

Thanks again! 🍻

@cnoon cnoon closed this Dec 11, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants