RemoteAccess (RRAS) service deadlocks on stop/restart during SSTP cert rotation — Windows Server 2025

Antonin Homola 0 Reputační body
2026-07-16T08:10:09.3766667+00:00

Environment: Windows Server 2025, RRAS with SSTP VPN + IIS on same box. Certificates issued by win-acme (Let's Encrypt), applied via Set-RemoteAccess -SslCertificate followed by a RemoteAccess service restart.

Issue: After applying a new SSTP certificate, stopping/restarting RemoteAccess (via Stop-Service, Restart-Service, or net stop) reproducibly hangs in STOP_PENDING indefinitely. Reproduced twice so far, always shortly after a live cert binding update.

Key evidence:

sc.exe queryex RemoteAccess
STATE      : 3  STOP_PENDING (NOT_STOPPABLE, NOT_PAUSABLE, IGNORES_SHUTDOWN)
CHECKPOINT : 0x3   (never advances)
PID        : 1084
taskkill /PID 1084 /F  -> "SUCCESS"
Get-Process -Id 1084   -> process still exists, CPU(s) not increasing

Process (svchost.exe hosting only RasMan + RemoteAccess) does not actually terminate even after TerminateProcess succeeds — consistent with a thread stuck in an uninterruptible kernel-mode wait. Only a full VM power-cycle clears it; graceful OS shutdown also hangs on this service.

Ruled out:

Active VPN sessions (\RAS Total\Total Connections = 0 at time of hang)

Certificate/private key problems (reproduced with a fresh, fully valid cert)

SCM circular dependency (sc qc RemoteAccess/sc qc SstpSvc show no mutual dependency)

Our own automation script bugs (relative path issue found & fixed separately)

No error events logged in System/Application logs at time of hang

Questions:

Known Server 2025 RRAS/RasMan deadlock when restarting RemoteAccess shortly after Set-RemoteAccess -SslCertificate?

Supported safer sequence to rotate SSTP cert at runtime without this hang (e.g. stop SstpSvc first, or Set-VpnServerConfiguration -SstpPorts 0 before restart)?

Which ETW/kernel trace should we capture live next time this reproduces (e.g. Microsoft-Windows-RasSstp, WPR profile, procdump)?

Any relevant hotfix/KB for Server 2025 RRAS stop hangs?

Happy to provide a live kernel dump or ETW trace of the stuck svchost.exe next time it reproduces — please advise preferred collection method.

Windows pro firmy | Windows Server | Sítě | Jiné
Počet komentářů: 0 Žádné komentáře

1 odpověď

Seřadit podle: Nejužitečnější
  1. Miroslav Pragl 79,201 Reputační body Dobrovolný moderátor
    2026-07-16T09:10:38.71+00:00

    Ahoj Antonine,

    jen domnenka: nemel bys zmenit certifikat i pro IIS? RRAS bezne dost nadava, pokud nema stejny cert.

    MP

    Byla tato odpověď užitečná?

    Počet komentářů: 0 Žádné komentáře

Vaše odpověď

Odpovědi můžou být autorem otázky označeny jako „Přijaté“ a moderátory jako „Doporučené“, což uživatelům pomůže zjistit, že odpověď vyřešila problém autora.