Skip to content

Commit 68d6e84

Browse files
committed
17103 FIX Could not log in with SAML2 if signing certificate was in trust store
Signing the SAML2 authentication request was failing if the certificate used for signing was also in the Checkmk CA trust store. The reason lies in the way that pysaml2 invokes xmlsec1, which causes OpenSSL to try to sign the request using the public key from the cert store. As a workaround, we unset the SSL_CERT_FILE environment variable, so OpenSSL doesn't find the certificate. See also: - lsh123/xmlsec#939 - IdentityPython/pysaml2#998 SUP-24452 Change-Id: Icf8fccefc05680b246d932a565161cf22a45786d
1 parent bd311b6 commit 68d6e84

1 file changed

Lines changed: 19 additions & 0 deletions

File tree

.werks/17103.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
[//]: # (werk v2)
2+
# Could not log in with SAML2 if signing certificate was in trust store
3+
4+
key | value
5+
---------- | ---
6+
date | 2025-07-25T07:56:26+00:00
7+
version | 2.4.0p9
8+
class | fix
9+
edition | cee
10+
component | wato
11+
level | 1
12+
compatible | yes
13+
14+
Logging in via a SAML2 connection failed if the certificate configured for signing the SAML requests was also in the Checkmk CA trust store or in the global system trust store.
15+
16+
In this case, clicking the "Login with SAML connection" button failed with "Unable to create authentication request. Please contact your administrator".
17+
A SignatureError for trying to sign the request XML with xmlsec1 was visible in the web.log.
18+
19+
This is now fixed.

0 commit comments

Comments
 (0)