Documentation ¶
Overview ¶
Package crypt Copyright 2009 The Go Authors. All rights reserved. Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. Generate a self-signed X.509 certificate for a TLS server. Outputs to 'cert.pem' and 'key.pem' and will overwrite existing files.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GenerateCertificate ¶
type GenerateCertificate struct { Organization string Host string ValidFrom string ValidFor time.Duration IsCA bool RSABits int EcdsaCurve string Ed25519Key bool }
GenerateCertificate model
func (*GenerateCertificate) GenerateTLSConfig ¶
func (gc *GenerateCertificate) GenerateTLSConfig() (*tls.Config, error)
GenerateTLSConfig generates the config
Click to show internal directories.
Click to hide internal directories.