mirror of
https://github.com/andwati/zitadel.git
synced 2026-10-18 05:52:51 +00:00
fix: add CommonName to SAML SP certificate (#10700)
# Which Problems Are Solved There is no CN (CommonName) defined in the certificates to use an external SAML IDP. # How the Problems Are Solved Add Issuer and CommonName to the certificate information. # Additional Changes None # Additional Context Closes #9048 Co-authored-by: Gayathri Vijayan <[email protected]>
This commit is contained in:
co-authored by
Gayathri Vijayan
parent
348a699839
commit
4c078c1474
@@ -294,8 +294,13 @@ func samlCertificateAndKeyGenerator(keySize int, lifetime time.Duration) func(id
|
||||
SerialNumber: big.NewInt(int64(serial)),
|
||||
Subject: pkix.Name{
|
||||
Organization: []string{"ZITADEL"},
|
||||
CommonName: fmt.Sprintf("ZITADEL SP %s", id),
|
||||
SerialNumber: id,
|
||||
},
|
||||
Issuer: pkix.Name{
|
||||
Organization: []string{"ZITADEL"},
|
||||
CommonName: "ZITADEL",
|
||||
},
|
||||
NotBefore: now,
|
||||
NotAfter: now.Add(lifetime),
|
||||
KeyUsage: x509.KeyUsageKeyEncipherment | x509.KeyUsageDigitalSignature,
|
||||
|
||||
Reference in New Issue
Block a user