Преглед изворни кода

Remove unnecessary comments.

Mariano Cano пре 6 година
родитељ
комит
43bd8113aa
1 измењених фајлова са 1 додато и 6 уклоњено
  1. 1 6
      authority/tls.go

+ 1 - 6
authority/tls.go

@@ -64,7 +64,6 @@ func (a *Authority) Sign(csr *x509.CertificateRequest, signOpts provisioner.Opti
 		opts           = []interface{}{errs.WithKeyVal("csr", csr), errs.WithKeyVal("signOptions", signOpts)}
 		opts           = []interface{}{errs.WithKeyVal("csr", csr), errs.WithKeyVal("signOptions", signOpts)}
 		mods           = []x509util.WithOption{withDefaultASN1DN(a.config.AuthorityConfig.Template)}
 		mods           = []x509util.WithOption{withDefaultASN1DN(a.config.AuthorityConfig.Template)}
 		certValidators = []provisioner.CertificateValidator{}
 		certValidators = []provisioner.CertificateValidator{}
-		// issIdentity    = a.intermediateIdentity
 	)
 	)
 
 
 	// Set backdate with the configured value
 	// Set backdate with the configured value
@@ -132,9 +131,6 @@ func (a *Authority) Renew(oldCert *x509.Certificate) ([]*x509.Certificate, error
 		return nil, errs.Wrap(http.StatusInternalServerError, err, "authority.Renew", opts...)
 		return nil, errs.Wrap(http.StatusInternalServerError, err, "authority.Renew", opts...)
 	}
 	}
 
 
-	// Issuer
-	// issIdentity := a.intermediateIdentity
-
 	// Durations
 	// Durations
 	backdate := a.config.AuthorityConfig.Backdate.Duration
 	backdate := a.config.AuthorityConfig.Backdate.Duration
 	duration := oldCert.NotAfter.Sub(oldCert.NotBefore)
 	duration := oldCert.NotAfter.Sub(oldCert.NotBefore)
@@ -313,8 +309,7 @@ func (a *Authority) Revoke(ctx context.Context, revokeOpts *RevokeOptions) error
 
 
 // GetTLSCertificate creates a new leaf certificate to be used by the CA HTTPS server.
 // GetTLSCertificate creates a new leaf certificate to be used by the CA HTTPS server.
 func (a *Authority) GetTLSCertificate() (*tls.Certificate, error) {
 func (a *Authority) GetTLSCertificate() (*tls.Certificate, error) {
-	profile, err := x509util.NewLeafProfile("Step Online CA",
-		a.x509Issuer, a.x509Signer,
+	profile, err := x509util.NewLeafProfile("Step Online CA", a.x509Issuer, a.x509Signer,
 		x509util.WithHosts(strings.Join(a.config.DNSNames, ",")))
 		x509util.WithHosts(strings.Join(a.config.DNSNames, ",")))
 	if err != nil {
 	if err != nil {
 		return nil, errs.Wrap(http.StatusInternalServerError, err, "authority.GetTLSCertificate")
 		return nil, errs.Wrap(http.StatusInternalServerError, err, "authority.GetTLSCertificate")