Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(702)

Issue 6499103: code review 6499103: crypto/tls: allow certificates and key to be in either ... (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
11 years, 7 months ago by agl1
Modified:
11 years, 7 months ago
Reviewers:
bradfitz
CC:
golang-dev, dave_cheney.net, rsc
Visibility:
Public.

Description

crypto/tls: allow certificates and key to be in either order. X509KeyPair wasn't really supposed to allow the certificate and key to be in the same file, but it did work if you put the key first. Since some HTTPS servers support loading keys and certs like this, this change makes it work in either order. Fixes issue 3986.

Patch Set 1 #

Patch Set 2 : diff -r 4a9c3b3e39c6 https://code.google.com/p/go/ #

Patch Set 3 : diff -r 4a9c3b3e39c6 https://code.google.com/p/go/ #

Total comments: 2

Patch Set 4 : diff -r 4a9c3b3e39c6 https://code.google.com/p/go/ #

Patch Set 5 : diff -r fead9e11a489 https://code.google.com/p/go/ #

Unified diffs Side-by-side diffs Delta from patch set Stats (+57 lines, -4 lines) Patch
M src/pkg/crypto/tls/tls.go View 1 1 chunk +10 lines, -4 lines 0 comments Download
A src/pkg/crypto/tls/tls_test.go View 1 2 3 1 chunk +47 lines, -0 lines 0 comments Download

Messages

Total messages: 5
agl1
Hello golang-dev@googlegroups.com (cc: golang-dev@googlegroups.com), I'd like you to review this change to https://code.google.com/p/go/
11 years, 7 months ago (2012-09-12 21:58:50 UTC) #1
dave_cheney.net
On 2012/09/12 21:58:50, agl1 wrote: > Hello mailto:golang-dev@googlegroups.com (cc: mailto:golang-dev@googlegroups.com), > > I'd like you ...
11 years, 7 months ago (2012-09-13 05:45:14 UTC) #2
rsc
LGTM http://codereview.appspot.com/6499103/diff/4001/src/pkg/crypto/tls/tls_test.go File src/pkg/crypto/tls/tls_test.go (right): http://codereview.appspot.com/6499103/diff/4001/src/pkg/crypto/tls/tls_test.go#newcode1 src/pkg/crypto/tls/tls_test.go:1: package tls Copyright notice please.
11 years, 7 months ago (2012-09-13 14:32:18 UTC) #3
agl1
*** Submitted as http://code.google.com/p/go/source/detail?r=7de1fa3b234b *** crypto/tls: allow certificates and key to be in either order. ...
11 years, 7 months ago (2012-09-13 15:00:35 UTC) #4
bradfitz
11 years, 7 months ago (2012-09-13 16:14:49 UTC) #5
thank you!  I've wasted time on several occasions switching these around
until it works.

On Thu, Sep 13, 2012 at 8:00 AM, <agl@golang.org> wrote:

> *** Submitted as
>
http://code.google.com/p/go/**source/detail?r=7de1fa3b234b<http://code.google...
>
>
> crypto/tls: allow certificates and key to be in either order.
>
> X509KeyPair wasn't really supposed to allow the certificate and
> key to be in the same file, but it did work if you put the key
> first. Since some HTTPS servers support loading keys and certs
> like this, this change makes it work in either order.
>
> Fixes issue 3986.
>
> R=golang-dev, dave, rsc
> CC=golang-dev
>
http://codereview.appspot.com/**6499103<http://codereview.appspot.com/6499103>
>
>
>
>
> http://codereview.appspot.com/**6499103/diff/4001/src/pkg/**
>
crypto/tls/tls_test.go<http://codereview.appspot.com/6499103/diff/4001/src/pkg/crypto/tls/tls_test.go>
> File src/pkg/crypto/tls/tls_test.go (right):
>
> http://codereview.appspot.com/**6499103/diff/4001/src/pkg/**
>
crypto/tls/tls_test.go#**newcode1<http://codereview.appspot.com/6499103/diff/4001/src/pkg/crypto/tls/tls_test.go#newcode1>
> src/pkg/crypto/tls/tls_test.**go:1: package tls
> On 2012/09/13 14:32:19, rsc wrote:
>
>> Copyright notice please.
>>
>
> Done.
>
>
http://codereview.appspot.com/**6499103/<http://codereview.appspot.com/6499103/>
>
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b