]> Cypherpunks repositories - gostls13.git/commit
crypto/x509, crypto/tls: support PKCS#8 private keys.
authorAdam Langley <agl@golang.org>
Mon, 21 Nov 2011 19:18:42 +0000 (14:18 -0500)
committerAdam Langley <agl@golang.org>
Mon, 21 Nov 2011 19:18:42 +0000 (14:18 -0500)
commit7c161b05aaa18cb5a49ab0566c7e26e264117eca
treeeb0b3eb5d1e23367701227b1c0d0fe15dff1a99d
parent85255f99426b97c6663db6c4a5387d7f958f0282
crypto/x509, crypto/tls: support PKCS#8 private keys.

OpenSSL 1.0.0 has switched to generating PKCS#8 format private keys by
default. This change allows http.ListenAndServeTLS to work with either
types of keys.

See http://groups.google.com/group/golang-nuts/browse_thread/thread/84715b5f0c9e3c30/63a8a27b53e102a6

R=bradfitz
CC=golang-dev
https://golang.org/cl/5416059
src/pkg/crypto/tls/tls.go
src/pkg/crypto/x509/Makefile
src/pkg/crypto/x509/pkcs8.go [new file with mode: 0644]
src/pkg/crypto/x509/pkcs8_test.go [new file with mode: 0644]