Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
crypto/tls: needs a convenience function for reading encrypted keys #6722
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.