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

Issue 6854107: cert: new package

Can't Edit
Can't Publish+Mail
Start Review
Created:
11 years, 5 months ago by rog
Modified:
11 years, 5 months ago
Reviewers:
mp+136497
Visibility:
Public.

Description

cert: new package This enables us to use the same logic for generating the test server keys as we use live. There's no significant change in the logic that's moved from environs.Bootstrap. https://code.launchpad.net/~rogpeppe/juju-core/171-cert-package/+merge/136497 Requires: https://code.launchpad.net/~rogpeppe/juju-core/165-mandatory-certs-2/+merge/136495 (do not edit description out of merge proposal)

Patch Set 1 #

Patch Set 2 : cert: new package #

Total comments: 11

Patch Set 3 : cert: new package #

Unified diffs Side-by-side diffs Delta from patch set Stats (+535 lines, -307 lines) Patch
A [revision details] View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
A cert/cert.go View 1 2 1 chunk +175 lines, -0 lines 0 comments Download
A cert/cert_test.go View 1 2 1 chunk +289 lines, -0 lines 0 comments Download
M environs/bootstrap.go View 4 chunks +3 lines, -110 lines 0 comments Download
M environs/bootstrap_test.go View 8 chunks +23 lines, -172 lines 0 comments Download
M testing/cert.go View 1 chunk +43 lines, -25 lines 0 comments Download

Messages

Total messages: 4
rog
Please take a look.
11 years, 5 months ago (2012-11-27 19:28:16 UTC) #1
fwereade
LGTM https://codereview.appspot.com/6854107/diff/2001/cert/cert.go File cert/cert.go (right): https://codereview.appspot.com/6854107/diff/2001/cert/cert.go#newcode116 cert/cert.go:116: // for using by a server for an ...
11 years, 5 months ago (2012-11-28 09:03:11 UTC) #2
niemeyer
LGTM, assuming that nothing changed within these functions and the following trivials: https://codereview.appspot.com/6854107/diff/2001/cert/cert.go File cert/cert.go ...
11 years, 5 months ago (2012-11-28 13:51:55 UTC) #3
rog
11 years, 5 months ago (2012-11-28 14:06:17 UTC) #4
*** Submitted:

cert: new package

This enables us to use the same logic for generating
the test server keys as we use live.

There's no significant change in the logic that's
moved from environs.Bootstrap.

R=fwereade, niemeyer
CC=
https://codereview.appspot.com/6854107

https://codereview.appspot.com/6854107/diff/2001/cert/cert.go
File cert/cert.go (right):

https://codereview.appspot.com/6854107/diff/2001/cert/cert.go#newcode18
cert/cert.go:18: 
On 2012/11/28 13:51:55, niemeyer wrote:
> // ...

Done.

https://codereview.appspot.com/6854107/diff/2001/cert/cert.go#newcode19
cert/cert.go:19: func ParseCertificate(certPEM []byte) (*x509.Certificate,
error) {
On 2012/11/28 13:51:55, niemeyer wrote:
> ParseCert, as below.

Done.

https://codereview.appspot.com/6854107/diff/2001/cert/cert.go#newcode53
cert/cert.go:53: // valid with respect to the given CA certificate
On 2012/11/28 13:51:55, niemeyer wrote:
> It'd be nice to have all these doc lines closer to 70 columns.

Done.

https://codereview.appspot.com/6854107/diff/2001/cert/cert.go#newcode116
cert/cert.go:116: // for using by a server for an environment with the given
On 2012/11/28 09:03:11, fwereade wrote:
> s/using/use/

Done.

https://codereview.appspot.com/6854107/diff/2001/cert/cert_test.go
File cert/cert_test.go (right):

https://codereview.appspot.com/6854107/diff/2001/cert/cert_test.go#newcode214
cert/cert_test.go:214: // recordongConn returns a connection which
On 2012/11/28 09:03:11, fwereade wrote:
> s/dong/ding/

Done
:-)
Sign in to reply to this message.

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