← Back to articles Entra

Enterprise SAP GUI & NetWeaver SSO: Troubleshooting Expired SAML Token Signing Certificates with Microsoft Entra ID

Enterprise SAP GUI & NetWeaver SSO: Troubleshooting Expired SAML Token Signing Certificates with Microsoft Entra ID

When an enterprise SAP SAML token signing certificate reaches its expiration date, entire lines of business freeze instantly: finance, logistics, and supply chain users are locked out of SAP GUI for HTML, Fiori Launchpad, and NetWeaver portals with error "SAML 2.0 Authentication Failed (Invalid Signature)".

The Critical Trap: Hard Cutover vs Overlapping Certificates In Microsoft Entra ID Enterprise Applications, never replace an active SAML signing certificate during peak business hours with a hard cutover. Entra ID supports maintaining a secondary active certificate in parallel, allowing SAP Basis administrators to import the new public key into transaction STRUST prior to activating it.

PowerShell Automated SAML Signing Certificate Expiry Monitor

# ==============================================================================
# Entra ID Enterprise App SAML Certificate Expiry Scanner
# ==============================================================================
Connect-MgGraph -Scopes "Application.Read.All" -NoWelcome

$apps = Get-MgServicePrincipal -All -Filter "tags/any(c:c eq 'WindowsAzureActiveDirectoryGalleryApplicationNonConsented')"

foreach ($app in $apps) {
    foreach ($cert in $app.KeyCredentials) {
        $expiry = $cert.EndDateTime
        $daysLeft = ($expiry - (Get-Date)).Days
        if ($daysLeft -lt 30) {
            Write-Warning "URGENT: SAP/Enterprise App [$($app.DisplayName)] SAML Certificate expires in $daysLeft days ($($expiry.ToString('yyyy-MM-dd')))"
        }
    }
}

Was this article helpful?

🎯
MSEndpoint Academy

Assess Your Microsoft 365 & Intune Skills (MD-102)

100% Free • 5 Min

Applying this guide in production? Test your technical readiness against real exam scenarios from Microsoft 365 Certified: Endpoint Administrator (MD-102). Identify your strengths and knowledge gaps instantly.

💡 Express Knowledge Check Question 1 of 10

Which official utility is required to convert a Win32 application installer (.exe) into the package format (.intunewin) for deployment via Microsoft Intune?

🔒 100% Free • 📊 Instant Scorecard • 🤖 AI Explanations
Take Full Diagnostic Exam (10 Questions) →

🎓 Ready to go deeper?

Practice real MD-102 exam questions, get AI feedback on your weak areas, and fast-track your Intune certification.

Start Free Practice → Book a Session
Souhaiel Morhag
Souhaiel Morhag
Microsoft Endpoint & Modern Workplace Engineer

Souhaiel Morhag is a Microsoft Intune and endpoint management specialist with hands-on experience deploying and securing enterprise environments across Microsoft 365. He founded MSEndpoint.com to share practical, real-world guides for IT admins navigating Microsoft technologies — and built the MSEndpoint Academy at app.msendpoint.com/academy, a dedicated learning platform for professionals preparing for the MD-102 (Microsoft 365 Endpoint Administrator) certification. Through in-depth articles and AI-powered practice exams, Souhaiel helps IT teams move faster and certify with confidence.

Related Articles

Popular on MSEndpoint