Skip to content

Commit

Permalink
cli: fix certificate command errors when --insecure flag is set (#790)
Browse files Browse the repository at this point in the history
Signed-off-by: Daniel Weiße <dw@edgeless.systems>
  • Loading branch information
daniel-weisse authored Jan 15, 2025
1 parent a321108 commit 00443fd
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cli/internal/cmd/certificate.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,9 @@ func runCertificate(saveCert func(writer io.Writer, fh *file.Handler, root, inte
return err
}

if !remoteRootCert.Equal(rootCert) {
// Skip this check if we're accepting insecure connections
// because we don't load the certificate in that case.
if !remoteRootCert.Equal(rootCert) && !verifyOpts.InsecureSkipVerify {
return errors.New("root certificate of Coordinator changed. Run 'marblerun manifest verify' to verify the instance and update the local cache")
}

Expand Down

0 comments on commit 00443fd

Please sign in to comment.