Skip to content

PKCS#12 Feature#449

Open
haneric21 wants to merge 1 commit intocloudflare:masterfrom
haneric21:master
Open

PKCS#12 Feature#449
haneric21 wants to merge 1 commit intocloudflare:masterfrom
haneric21:master

Conversation

@haneric21
Copy link
Copy Markdown

Adding option to output a pkcs#12 file
https://github.com/cloudflare/cfssl/wiki/PKCS-%2312-Support-Requirements

Continuation of closed pull request..
#427

@kisom
Copy link
Copy Markdown
Contributor

kisom commented Dec 4, 2015

LGTM.

@kisom
Copy link
Copy Markdown
Contributor

kisom commented Dec 4, 2015

Can you update the commit message to be more along the lines of this?

Comment thread crypto/pkcs12/pkcs12.go
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This could use a package-level comment.

@grittygrease
Copy link
Copy Markdown
Contributor

You can output PKCS#12 in base64 format in the API, base64 as output or take a filename in and write to that file.

@haneric21
Copy link
Copy Markdown
Author

@grittygrease, here's an implementation of base64 outputting for CLI. How does this look, am I on the right track?

Comment thread api/generator/generator.go Outdated
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This function returns a string now, so you should return it.

added ability to output a pkcs#12 file using CLI and API
@nathany
Copy link
Copy Markdown
Contributor

nathany commented Dec 16, 2015

Fyi, @AGWA also implemented PKCS12 writing in the Azure implementation which has since become x/crypto/pkcs12

Azure/go-pkcs12#22

@colemickens
Copy link
Copy Markdown

@nathany From looking at the commit, this PR to cfssl utilizes AGWA's go-pkcs12 fork.

Is this a concern since cfssl already vendors the actual golang.org/x/crypto/pkcs12 library? https://github.com/cloudflare/cfssl/blob/master/Godeps/Godeps.json#L99

@AGWA
Copy link
Copy Markdown

AGWA commented Dec 16, 2015

Don't use my go-pkcs12 fork. That repository isn't meant to be stable, and it contains some bugs. I'm working on rebasing it on x/crypto/pkcs12.

@nathany
Copy link
Copy Markdown
Contributor

nathany commented Dec 17, 2015

Sounds good. Thanks Andrew.

@colemickens
Copy link
Copy Markdown

@AGWA Any update on this? Can you upstream those patches? Looks like it still is rebased for upstream.

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.

6 participants