Skip to content

Commit

Permalink
fix: certificate hash uses '-' in place of '+'
Browse files Browse the repository at this point in the history
  • Loading branch information
subnova committed Feb 19, 2024
1 parent 28b1ecd commit 1be65fb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gateway/registry/remote.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ type CertificateResponse struct {

func (r RemoteRegistry) LookupCertificate(certHash string) (*x509.Certificate, error) {
certHash = strings.Replace(certHash, "/", "_", -1)
certHash = strings.Replace(certHash, "-", "+", -1)
certHash = strings.Replace(certHash, "+", "-", -1)

req, err := http.NewRequest(http.MethodGet, fmt.Sprintf("%s/api/v0/certificate/%s", r.ManagerApiAddr, certHash), nil)
if err != nil {
Expand Down

0 comments on commit 1be65fb

Please sign in to comment.