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

Add p12 parsing to pkg/cryptoinfo #792

Merged
merged 11 commits into from Feb 14, 2022

Conversation

directionless
Copy link
Contributor

@directionless directionless commented Feb 10, 2022

This brings in p12 parsing to pkg/cryptoinfo.

In doing this, I discovered that a bunch of ssl formats are ASN, and thus it is not possible to identify these files by their leading bytes. Instead, this moves to a simply attempting to parse, and moving on if it's wrong.

Note that this does expose a passphase option. One should be cautious using it, as it may cause the passphrase to be logged.

pkg/cryptoinfo/identify.go Outdated Show resolved Hide resolved
pkg/cryptoinfo/parse_certificate.go Show resolved Hide resolved
pkg/cryptoinfo/info.go Outdated Show resolved Hide resolved
pkg/cryptoinfo/info.go Outdated Show resolved Hide resolved
pkg/cryptoinfo/try_pem.go Outdated Show resolved Hide resolved
pkg/cryptoinfo/identify.go Show resolved Hide resolved
pkg/cryptoinfo/identify.go Outdated Show resolved Hide resolved
pkg/cryptoinfo/identify.go Show resolved Hide resolved
Co-authored-by: blaedj <blaedj@users.noreply.github.com>
pkg/cryptoinfo/info.go Outdated Show resolved Hide resolved
@directionless directionless merged commit 8fd5171 into kolide:master Feb 14, 2022
@directionless directionless deleted the seph/certificate-p12 branch February 14, 2022 23:35
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.

None yet

3 participants