Authentication fails with invalid TLS certificate error on self-hosted Coder deployment (macOS)
Maintainer antworten meist innerhalb von 1 Tag
Dieses Issue hat noch niemand übernommen.
Bewertung
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- 3-5 Tage
- Anfängerfreundlichkeit
- 45/100
- Issue-Typ
- Bug
- Klarheit
- Größtenteils klar
- Aktivitätsstatus
- Aktiv
- Tech-Stack
- macos, swift
- Bereich
- authentication, desktop
Rechercherichtung
Start by reproducing the authentication failure in Coder Desktop 0.8.4 against a self-hosted deployment with a publicly issued certificate, then inspect the macOS authentication and TLS error logs. Compare the app’s certificate evaluation with the successful OpenSSL and macOS verification results in the report. Done means authentication succeeds with the described valid certificate, with diagnostics identifying the cause; the issue does not name source files or tests.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Beschreibung
Coder Desktop version: 0.8.4
Deployment: Self-hosted Coder on Linux
Platform: macOS
Description
I'm unable to authenticate with my self-hosted Coder deployment using Coder Desktop for macOS.
The application displays the following error:
Could not authenticate with Coder deployment:
The certificate for this server is invalid. You might be connecting to a server that is pretending to be “[my Coder deployment hostname]” which could put your confidential information at risk.
The deployment uses a publicly issued Let's Encrypt certificate. I've investigated the TLS configuration on both the server and macOS, but haven't been able to identify the cause.
Diagnostics
1. OpenSSL certificate verification
Running openssl s_client against the deployment:
openssl s_client \
-connect YOUR_CODER_HOST:443 \
-servername YOUR_CODER_HOST \
-showcerts \
-verify_return_error </dev/null
OpenSSL successfully verifies the certificate chain:
Verify return code: 0 (ok)
The server presents three certificates.
2. Certificate details
- Subject: My Coder deployment hostname
- Issuer: Let's Encrypt YR2
- Validity: November 5, 2026 – February 3, 2027
- Key: RSA 4096-bit
- Signature: SHA-256 with RSA
3. macOS Keychain
I imported the leaf certificate into the System Keychain and explicitly set its trust policy to Always Trust.
This did not resolve the issue.
4. macOS certificate verification
Running:
security verify-cert -v https://YOUR_CODER_HOST
Returns:
...certificate verification successful.
The trust evaluation reports:
TrustResultValue = 1
It also reports:
Certificate Transparency (CT) status: not verified
Unable to find at least 2 signed certificate timestamps (SCTs) from approved logs
5. Application logs
Coder Desktop's macOS unified logs show normal VPN system extension initialization and Mutagen daemon startup/shutdown. However, the captured logs did not contain the actual authentication failure or a corresponding TLS error.
Timestamp Thread Type Activity PID TTL
2026-11-06 19:03:51.610937+0500 0x3d06b8 Info 0x0 32942 0 com.coder.Coder-Desktop.Helper: [com.coder.Coder-Desktop:system-wake-observer] system woke from sleep
2026-11-06 19:08:03.760032+0500 0x3d07a6 Info 0x0 32991 0 Coder Desktop: (VPNLib) [com.coder.Coder-Desktop:mutagen] stopping mutagen daemon
2026-11-06 19:08:03.762378+0500 0x3d07a6 Info 0x0 32991 0 Coder Desktop: (VPNLib) [com.coder.Coder-Desktop:mutagen] mutagen daemon state set: Stopped
2026-11-06 19:08:18.362918+0500 0x3dab47 Info 0x0 47665 0 Coder Desktop: [com.coder.Coder-Desktop:vpn-installer] SystemExtensionDelegate initialized
2026-11-06 19:08:18.362919+0500 0x3dab47 Info 0x0 47665 0 Coder Desktop: [com.coder.Coder-Desktop:vpn-installer] activating SystemExtension
2026-11-06 19:08:18.363801+0500 0x3dab47 Info 0x0 47665 0 Coder Desktop: [com.coder.Coder-Desktop:vpn-installer] submitted SystemExtension request with bundleID: <private>
2026-11-06 19:08:18.560624+0500 0x3dab47 Info 0x0 47665 0 Coder Desktop: (VPNLib) [com.coder.Coder-Desktop:mutagen] Successfully connected to mutagen daemon, socket: /Users/[REDACTED_USERNAME]/Library/Application Support/Coder Desktop/Mutagen/daemon/daemon.sock
2026-11-06 19:08:18.571456+0500 0x3dab47 Info 0x0 47665 0 Coder Desktop: (VPNLib) [com.coder.Coder-Desktop:mutagen] stopping mutagen daemon
2026-11-06 19:08:18.571478+0500 0x3dab47 Info 0x0 47665 0 Coder Desktop: (VPNLib) [com.coder.Coder-Desktop:mutagen] mutagen daemon state set: Stopped
2026-11-06 19:08:18.577621+0500 0x3dab47 Info 0x0 47665 0 Coder Desktop: (VPNLib) [com.coder.Coder-Desktop:mutagen] starting mutagen daemon
2026-11-06 19:08:18.579644+0500 0x3dab47 Info 0x0 47665 0 Coder Desktop: (VPNLib) [com.coder.Coder-Desktop:mutagen] setting mutagen data directory: /Users/[REDACTED_USERNAME]/Library/Application Support/Coder Desktop/Mutagen
2026-11-06 19:08:18.585370+0500 0x3dab47 Info 0x0 47665 0 Coder Desktop: [com.coder.Coder-Desktop:vpn-installer] SystemExtension installed
2026-11-06 19:08:18.585440+0500 0x3dab47 Info 0x0 47665 0 Coder Desktop: [com.coder.Coder-Desktop:vpn] system extension state: NE SystemExtension is installed
2026-11-06 19:08:18.665866+0500 0x3dab47 Info 0x0 47665 0 Coder Desktop: (VPNLib) [com.coder.Coder-Desktop:mutagen] 2026-11-06 19:08:18.661966 [I] [forward] Looking for existing sessions
2026-11-06 19:08:18.666116+0500 0x3dab47 Info 0x0 47665 0 Coder Desktop: (VPNLib) [com.coder.Coder-Desktop:mutagen] 2026-11-06 19:08:18.662276 [I] [forward] Session manager initialized
2026-11-06 19:08:18.666216+0500 0x3dab47 Info 0x0 47665 0 Coder Desktop: (VPNLib) [com.coder.Coder-Desktop:mutagen] 2026-11-06 19:08:18.662297 [I] [sync] Looking for existing sessions
2026-11-06 19:08:18.666308+0500 0x3dab47 Info 0x0 47665 0 Coder Desktop: (VPNLib) [com.coder.Coder-Desktop:mutagen] 2026-11-06 19:08:18.662343 [I] [sync] Session manager initialized
2026-11-06 19:08:19.218089+0500 0x3dab47 Info 0x0 47665 0 Coder Desktop: (VPNLib) [com.coder.Coder-Desktop:mutagen] mutagen daemon state set: Running
2026-11-06 19:08:19.218663+0500 0x3dab47 Info 0x0 47665 0 Coder Desktop: (VPNLib) [com.coder.Coder-Desktop:mutagen] mutagen daemon started, pid:
47702
2026-11-06 19:08:19.222146+0500 0x3dab47 Info 0x0 47665 0 Coder Desktop: (VPNLib) [com.coder.Coder-Desktop:mutagen] No sync sessions found on startup, stopping daemon
2026-11-06 19:08:19.223140+0500 0x3dab47 Info 0x0 47665 0 Coder Desktop: (VPNLib) [com.coder.Coder-Desktop:mutagen] stopping mutagen daemon
2026-11-06 19:08:19.223186+0500 0x3dab47 Info 0x0 47665 0 Coder Desktop: (VPNLib) [com.coder.Coder-Desktop:mutagen] mutagen daemon state set: Stopped
2026-11-06 19:08:19.225567+0500 0x3dab47 Info 0x0 47665 0 Coder Desktop: (VPNLib) [com.coder.Coder-Desktop:mutagen] 2026-11-06 19:08:19.220353 [I] Daemon termination requested
2026-11-06 19:08:19.225627+0500 0x3dab47 Info 0x0 47665 0 Coder Desktop: (VPNLib) [com.coder.Coder-Desktop:mutagen] mutagen daemon stopped
2026-11-06 19:08:19.225743+0500 0x3dab47 Info 0x0 47665 0 Coder Desktop: (VPNLib) [com.coder.Coder-Desktop:mutagen] 2026-11-06 19:08:19.220786 [I] [sync] Shutting down
2026-11-06 19:08:19.225932+0500 0x3dab47 Info 0x0 47665 0 Coder Desktop: (VPNLib) [com.coder.Coder-Desktop:mutagen] Daemon stopped and gRPC connection closed
2026-11-06 19:08:19.225971+0500 0x3dab47 Info 0x0 47665 0 Coder Desktop: (VPNLib) [com.coder.Coder-Desktop:mutagen] 2026-11-06 19:08:19.220811 [I] [forward] Shutting down
2026-11-06 19:08:19.226073+0500 0x3dab47 Info 0x0 47665 0 Coder Desktop: (VPNLib) [com.coder.Coder-Desktop:mutagen] standard error stream closed
Expected behavior
Coder Desktop should authenticate successfully with a self-hosted Coder deployment using a valid, publicly trusted Let's Encrypt certificate.
Actual behavior
Authentication fails with a certificate-invalid warning, even though OpenSSL successfully verifies the server certificate and macOS certificate verification succeeds with the manually trusted leaf certificate.
I'm happy to provide additional diagnostics, including the complete certificate chain, macOS version, server version, and application logs.
- Vorherrschende Sprache
- Swift
- Sterne
- 29
- Forks
- 9
- Ø Merge
- 1 T. 17 Std.
- Gemergte PRs (30 T.)
- 5
Entwicklungsumgebung
- Kein Dockerfile und keine Docker-Compose-Datei
- Keine Pull-Request-Vorlage
- Beitragsleitfaden lesen
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus coder/coder-desktop-macos
-
Schwierigkeit 3/5 1-2 Tage Anfängerfreundlichkeit 45/100
coder/coder-desktop-macos#230 · 2 Reaktionen ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 35/100
coder/coder-desktop-macos#221 ·
Maintainer antworten meist innerhalb von 1 Tag
-
documentation
Schwierigkeit 2/5 Ein halber Tag Anfängerfreundlichkeit 48/100
coder/coder-desktop-macos#220 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 5/5 Über eine Woche Anfängerfreundlichkeit 30/100
coder/coder-desktop-macos#212 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 3/5 1-2 Tage Anfängerfreundlichkeit 45/100
coder/coder-desktop-macos#200 ·
Maintainer antworten meist innerhalb von 1 Tag
Alle Issues in coder/coder-desktop-macos
Ähnliche Issues
-
area: energy area: panel enhancement
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 63/100
Pallepadehat/WatchMyBattery#11 ·
Maintainer antworten meist innerhalb von 1 Tag
-
🎉 Add GinkgoEvtl. vergeben @usual2970 hat das heute übernommen. Offenaddition
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 76/100
jaywcjlove/awesome-mac#4442 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 66/100
DeveloperAcademy-POSTECH/2026-C6-A03-KIIKICK-iOS#76 ·
Maintainer antworten meist innerhalb von 1 Tag
-
[java] TestClassWithoutTestCases: document that abstract classes and interfaces are not checkedOffen
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 91/100
Maintainer antworten meist innerhalb von 2 Tagen
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 82/100