rustls-tls-native-roots does not use user added certificates in /etc/ssl/certs for SSO #7073
-
Issue:Running a SSO service (Keycloak, Authentik, Authelia etc.) under a private CA or a selfsigned cert, i get a "Failed to discover OpenID provider: 400 Bad Request" What Resolves the issue:
Cause analysis:Apparantly rustls-tls-native-roots does not load any new certificate in /etc/ssl/certs Further Details:Docker image: latest/1.35.4 Similar discussions#6785 #6409 #6553 #6241 I can post config/compose files, if it is of any relevance. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
|
Have you defined |
Beta Was this translation helpful? Give feedback.
After bouncing around with some of reqwest's features in a minimal sample program, I found that for some reason the featureset used in Vaultwarden doesn't like ECDSA with SHA512 Certificates. Using SHA384 or lower fixes the issue.
I think this might get resolved by updating to reqwest v0.13.x. I haven't had the time to extensively test that version, as it changed the entire approach to tls.
Having applied the updated cert, it worked with just volume mounting the root CA to /etc/ssl/certs. No need for SSL_CERT_DIR or SSL_CERT_FILE.