Oakwhistle
Oakwhistle•4mo ago

How to update SAMLv2 certificate at "$ZIT_URL/saml/v2/certificate" when acting as IDP

Hello Zitadel community, I'm currently developing a proof of concept implementing Zitadel at my organization and have encountered a challenge that I couldn't resolve through the documentation. Specifically, I need to update the certificate provided by the endpoint "$ZIT_URL/saml/v2/certificate" when Zitadel is acting as an Identity Provider. While I've found documentation on updating external IdP SAML certificates, I haven't been able to locate information about updating Zitadel's own certificate when it serves as the IdP. NOTE: tried with $ZIT_URL/admin/v1/idps/saml/:id/_generate_certificate but this is for the external providers.
Could someone please direct me to the relevant documentation or provide guidance on this process? Thank you for your assistance!
9 Replies
Rajat
Rajat•4mo ago
hey @Oakwhistle thanks for your question, I will look into this and get back to you.
Oakwhistle
OakwhistleOP•4mo ago
Hello @Rajat ! Thank you for taking a look at my post. I'll be looking forward to your response!.
be
be•2mo ago
@Rajat I'm having the same question. running Zitadel 2.71.13. how to update the SAML certificate of a SAML application?
Rajat Singh
Rajat Singh•2mo ago
hey @be the SAML signing certificate is managed by the service and cannot be rotated by user if running on cloud. There is no dedicated PUT or POST endpoint for replacing this certificate
be
be•2mo ago
and if running a self hosted zitadel? if it can't be rotated manually that would be waiting until things break because zitadel rotated it automatically and the SAML client won't connect anymore. that wouldn't be a smart behaviour IMO
Rajat
Rajat•2mo ago
the SAML signing keypair is treated as an internal encrypted secret stored in the database,the only way to do it would be to generate a new PEM key/cert pair, update your ZITADEL runtime configuration and restart
be
be•2mo ago
alright, any directions on how to do that? 🙂
Rajat
Rajat•2mo ago
https://zitadel.com/docs/self-hosting/manage/configure#environment-variables env vars are defined here for sewlf hosted, there's a lot of SAML env vars that you can set up
be
be•2mo ago
thank you! @Oakwhistle find the answer above

Did you find this page helpful?