Skip to content

Conversation

@Hermsi1337
Copy link

While playing around with cfssl a bit, I've noticed that its not always possible to decode .p12- or .pfx-files due to the following error:

unknown digest algorithm 2.16.840.1.101.3.4.2.1

While doing some research on this, I've found out, that the standard crypto/pkcs12-pkg is currently in a somewhat frozen state:
golang/go#62375

This PR suggests replacing the (currently) frozen crypto/pkcs12 with the drop-in-replacement https://github.com/SSLMate/go-pkcs12.

I also had to rework the caCertificate-Handling a bit by using DecodeChain instead of Decode, since its possible that the provided pfxData may also include the ca-certificate chain which would lead to an error when passed to a simple Decode.

Let me know what you think.

Thanks!

nickysemenza and others added 17 commits July 11, 2024 09:28
Updated README: make fails to install cfssl* binaries  into bin directory
Creating Semgrep.yml file - Semgrep is a tool that will be used to scan Cloudflare's public repos for Supply chain, code and secrets. This work is part of Application & Product Security team's initiative to onboard Semgrep onto all of Cloudflare's public repos.

In case of any questions, please reach out to "Hrushikesh Deshpande" on cf internal chat.
…e-creating-semgrep-yml

Create semgrep.yml
…-transparency-go-bump

Upgrade certificate-transparency-go from v1.1.8 to v1.3.1
…o-upgrade

Revert "Upgrade certificate-transparency-go from v1.1.8 to v1.3.1"
Update repository to reflect required min go version of 1.20
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.

8 participants