diff --git a/cmd/tofu.go b/cmd/tofu.go index 5a0dec68..3001f35d 100644 --- a/cmd/tofu.go +++ b/cmd/tofu.go @@ -102,7 +102,8 @@ func promptTrustSelfSignedCert(ctx context.Context, endpoint, alias string) (*x5 return nil, nil } - if te != nil && !strings.Contains(te.Error(), "certificate signed by unknown authority") { + if te != nil && !strings.Contains(te.Error(), "certificate signed by unknown authority") && + !strings.Contains(te.Error(), "certificate is not trusted") /* darwin specific error message */ { return nil, probe.NewError(te) }