ocket8888 commented on a change in pull request #3534: TP Delivery Service 
Generate SSL update, new letsencrypt generate and…
URL: https://github.com/apache/trafficcontrol/pull/3534#discussion_r334630159
 
 

 ##########
 File path: traffic_ops/traffic_ops_golang/deliveryservice/sslkeys.go
 ##########
 @@ -89,6 +92,24 @@ func generatePutRiakKeys(req 
tc.DeliveryServiceGenSSLKeysReq, tx *sql.Tx, cfg *c
                return errors.New("generating certificate: " + err.Error())
        }
        dsSSLKeys.Certificate = tc.DeliveryServiceSSLKeysCertificate{Crt: 
string(crt), Key: string(key), CSR: string(csr)}
+
+       crtDec, err := base64.StdEncoding.DecodeString(string(crt))
+
+       block, _ := pem.Decode([]byte(crtDec))
 
 Review comment:
   This cast is superfluous; `crtDec` is already a `[]byte`

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to