49}
50
51// GenerateCACert generates a CA certificate, key and CSR based on the provided input.
52func (ca *CA) GenerateCACert(input *CACSRInput) (*Certificate, error) { 53 // prepare the certificate template
54 certTemplate := &x509.Certificate{
55 SerialNumber: big.NewInt(2019),
Methods with unused receivers can be a symptom of unfinished refactoring or a bug. To keep the same method signature, omit the receiver name or '_' as it is unused.
func (f *Unix) Name() string {
return "unix"
}
func (_ *Unix) Name() string {
return "unix"
}
func (*Unix) Name() string {
return "unix"
}