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

crypto/tls: needs a convenience function for reading encrypted keys #6722

Open
gopherbot opened this issue Nov 6, 2013 · 7 comments

Comments

Projects
None yet
6 participants
@gopherbot
Copy link

commented Nov 6, 2013

by jeff.allen:

crypto/tls.X509KeyPair can't deal with encrypted key files. This wouldn't be much of a
big deal except that the quantity of code needed to work around it is really big and
repeats lots of code from the std library.

See this message: https://groups.google.com/d/msg/golang-nuts/ht_gQ2ET0c0/efaGZdIxCmAJ

It would be nicer to have crypto/tls.X509EncryptedKeyPair(certPEMBlock, keyPEMBlock,
password []byte) (cert Certificate, err error) that would use password to decrypt
keyPEMBlock.
@rsc

This comment has been minimized.

Copy link
Contributor

commented Nov 27, 2013

Comment 1:

Labels changed: added go1.3maybe.

@dsymonds

This comment has been minimized.

Copy link
Member

commented Dec 2, 2013

Comment 2:

Labels changed: added priority-later, packagechange, removed priority-triage.

@rsc

This comment has been minimized.

Copy link
Contributor

commented Dec 4, 2013

Comment 3:

Labels changed: added release-none, removed go1.3maybe.

@rsc

This comment has been minimized.

Copy link
Contributor

commented Dec 4, 2013

Comment 4:

Labels changed: added repo-main.

@gopherbot gopherbot added new labels Dec 4, 2013

@bradfitz bradfitz removed the new label Dec 18, 2014

@jfcg

This comment has been minimized.

Copy link

commented Mar 13, 2015

Hi,
is there any plan on implementing this?
there is a working sample code here: http://play.golang.org/p/8OYTuZtZIQ

@rsc rsc added this to the Unplanned milestone Apr 10, 2015

@odeke-em

This comment has been minimized.

Copy link
Member

commented Aug 25, 2016

/cc @agl

@odeke-em

This comment has been minimized.

Copy link
Member

commented Feb 18, 2017

Hello there @jfcg, might you still be interested in working on this issue?
Perhaps putting it in a CL would re-ignite the conversation and make it reviewable
thus implementing the feature.
Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.