Skip to content

Insecure for basic and token connection - #610

Merged
frankgiordano merged 1 commit into
mainfrom
aug7
Aug 9, 2026
Merged

Insecure for basic and token connection#610
frankgiordano merged 1 commit into
mainfrom
aug7

Conversation

@frankgiordano

Copy link
Copy Markdown
Collaborator

This PR fixes an issue where setting system properties for server SSL/TLS certificate validation (such as zowe.sdk.allow.insecure.connection) had no effect when using BASIC or TOKEN authentication types.

Previously, ZosmfRequest invoked setupSsl(...) only when connection.getAuthType() == AuthType.SSL. As a result, BASIC and TOKEN connections attempting to reach self-signed z/OSMF endpoints failed during the HTTPS handshake with javax.net.ssl.SSLHandshakeException: PKIX path building failed.

Additionally, this PR updates setupSelfSignedCertificate to safely handle null client certificate paths (certFilePath), which are expected for non-mTLS authentication types like BASIC and TOKEN.

@frankgiordano frankgiordano self-assigned this Aug 9, 2026
@frankgiordano frankgiordano added the bug Something isn't working label Aug 9, 2026
@frankgiordano
frankgiordano merged commit 4035895 into main Aug 9, 2026
4 checks passed
@frankgiordano
frankgiordano deleted the aug7 branch August 9, 2026 02:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

TSO command execution is failing with BASIC connection after upgrading to 7.0.1 version

1 participant