Bladeren bron

crypto/tls: Change TLS version to 1.1 in the package comment.

Also use 2048-bit RSA keys as default in generate_cert.go,
as recommended by the NIST.

R=golang-dev, rsc, bradfitz
CC=golang-dev
https://golang.org/cl/10676043
v1.2.3
Frithjof Schulze 11 jaren geleden
committed by Brad Fitzpatrick
bovenliggende
commit
0084d30351
2 gewijzigde bestanden met toevoegingen van 2 en 2 verwijderingen
  1. +1
    -1
      generate_cert.go
  2. +1
    -1
      tls.go

+ 1
- 1
generate_cert.go Bestand weergeven

@@ -30,7 +30,7 @@ var (
validFrom = flag.String("start-date", "", "Creation date formatted as Jan 1 15:04:05 2011") validFrom = flag.String("start-date", "", "Creation date formatted as Jan 1 15:04:05 2011")
validFor = flag.Duration("duration", 365*24*time.Hour, "Duration that certificate is valid for") validFor = flag.Duration("duration", 365*24*time.Hour, "Duration that certificate is valid for")
isCA = flag.Bool("ca", false, "whether this cert should be its own Certificate Authority") isCA = flag.Bool("ca", false, "whether this cert should be its own Certificate Authority")
rsaBits = flag.Int("rsa-bits", 1024, "Size of RSA key to generate")
rsaBits = flag.Int("rsa-bits", 2048, "Size of RSA key to generate")
) )


func main() { func main() {


+ 1
- 1
tls.go Bestand weergeven

@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style // Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file. // license that can be found in the LICENSE file.


// Package tls partially implements TLS 1.0, as specified in RFC 2246.
// Package tls partially implements TLS 1.1, as specified in RFC 4346.
package tls package tls


import ( import (


Laden…
Annuleren
Opslaan