Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The insecureSkipTLSVerify property doesn't seem to work #36

Closed
MartinLau7 opened this issue Sep 18, 2023 · 0 comments · Fixed by #37
Closed

The insecureSkipTLSVerify property doesn't seem to work #36

MartinLau7 opened this issue Sep 18, 2023 · 0 comments · Fixed by #37

Comments

@MartinLau7
Copy link
Contributor

let config = KubernetesClientConfig(
                masterURL: URL(string: "https://192.168.1.1:6443")!,
                namespace: "demo",
                authentication: authentication,
                trustRoots: nil,
                insecureSkipTLSVerify: true,
                timeout: HTTPClient.Configuration.Timeout(connect: .seconds(20), read: .seconds(30)),
                redirectConfiguration: HTTPClient.Configuration.RedirectConfiguration.follow(max: 5, allowCycles: false)
            )

I set insecureSkipTLSVerify to true as instructed, but I still have a TLS validation error: handshakeFailed(NIOSSL.BoringSSLError.sslError([Error: 268435581 error:1000007d:SSL routines:OPENSSL_internal:CERTIFICATE_VERIFY_FAILED at /.build/checkouts/swift-nio-ssl/Sources/CNIOBoringSSL/ssl/handshake.cc:393]))

The insecureSkipTLSVerify property doesn't seem to be handled in the source code

image
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant