Skip to content

Commit

Permalink
fix proxy config override and removes comments
Browse files Browse the repository at this point in the history
  • Loading branch information
luispresuelVenafi committed Sep 23, 2024
1 parent 2869d57 commit d64ceba
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
10 changes: 5 additions & 5 deletions pkg/playbook/app/vcertutil/vcertutil.go
Original file line number Diff line number Diff line change
Expand Up @@ -122,12 +122,12 @@ func buildClient(config domain.Config, zone string, timeout int) (endpoint.Conne
if !connectionTrustBundle.AppendCertsFromPEM([]byte(vcertConfig.ConnectionTrust)) {
return nil, fmt.Errorf("%w: failed to parse PEM trust bundle", verror.UserDataError)
}
vcertConfig.Client.Transport = &http.Transport{
TLSClientConfig: &tls.Config{
RootCAs: connectionTrustBundle,
MinVersion: tls.VersionTLS12,
},
netTransport.TLSClientConfig = &tls.Config{
RootCAs: connectionTrustBundle,
MinVersion: tls.VersionTLS12,
}

vcertConfig.Client.Transport = netTransport
}

// build Authentication object
Expand Down
2 changes: 0 additions & 2 deletions pkg/venafi/cloud/connector.go
Original file line number Diff line number Diff line change
Expand Up @@ -1267,8 +1267,6 @@ type managedCertificate struct {
}

func (c *Connector) getCertificate(certificateId string) (*managedCertificate, error) {
// Flow renew certificate
//var err error
url := c.getURL(urlResourceCertificateByID)
url = fmt.Sprintf(url, certificateId)

Expand Down

0 comments on commit d64ceba

Please sign in to comment.