Fix authentication handshake failure (Error 3020)#1713
Open
djkoyi wants to merge 3 commits intoaltstoreio:marketplacefrom
Open
Fix authentication handshake failure (Error 3020)#1713djkoyi wants to merge 3 commits intoaltstoreio:marketplacefrom
djkoyi wants to merge 3 commits intoaltstoreio:marketplacefrom
Conversation
This was referenced Feb 18, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
AltServer fails with "Failed to perform authentication handshake with server" (Error 3020) on macOS 15+/26. Authentication is completely broken because the SRP cryptographic code is disabled.
Root Cause
The
MARKETPLACEcompilation flag is set in bothproject.pbxprojandAltSign/Package.swift. This flag wraps all SRP authentication functions in#if MARKETPLACEblocks that return nil/false, making authentication impossible:Additionally, the HTTP headers sent to
gsa.apple.comcontain outdated values from 2018-2019 (Darwin/18.7.0, Xcode 11.2) that create a TLS fingerprint mismatch with modern macOS.Changes
1. Remove
MARKETPLACEflag (the critical fix)AltStore.xcodeproj/project.pbxproj: Removed fromSWIFT_ACTIVE_COMPILATION_CONDITIONS(Debug & Release)Dependencies/AltSign/Package.swift: Removed.define("MARKETPLACE")from swiftSettings2. Update authentication headers
Darwin/18.7.0→Darwin/25.2.011.2 (11B41)→26.2 (17C52)(in bothALTAppleAPI+Authentication.swiftandALTAppleAPI.m)3. Update anisette device description
AnisetteDataManager.swift:3594.4.19→245534. Fix macOS compatibility
ProcessInfo+Device.swift: Added availability check forkIOMainPortDefault(macOS 12+) with fallback tokIOMasterPortDefaultproject.pbxproj: Updatedlibcorecrypto.tbdSDK path fromMacOSX14.0.sdktoMacOSX26.2.sdkTesting