POST /admin/identity-providers/{provider_id}/certificates/{cert_id}/rotate

吊销旧证书并上传新证书

身份提供商 `bearerAuth` application/json

请求参数

名称位置类型必填默认值示例约束描述
provider_id path string 是 提供商ID
cert_id path string 是 旧证书ID

请求体

Schema: service-identity/internal/handler/dto.RotateCertificateRequest

字段类型必填示例约束描述
cert_pem string 是 -----BEGIN CERTIFICATE-----...
name string 否 Rotated SAML Signing Cert

响应

引用的 Schema

service-core/base/dto.SimpleResponse

字段类型必填示例约束描述
code integer 否
message string 否
timestamp string 否

service-identity/internal/handler/dto.CertificateDetailResponse

字段类型必填示例约束描述
code integer 否
data service-identity/internal/handler/dto.ProviderCertificateResponse 否
message string 否
timestamp string 否

service-identity/internal/handler/dto.ProviderCertificateResponse

身份提供商证书信息

字段类型必填示例约束描述
created_at string 否 2026-04-15T10:30:00Z
expires_at string 否 2027-04-15T10:30:00Z
fingerprint string 否 sha256:abc123def456
id string 否 cert_abc123
name string 否 My SAML Signing Cert
provider_id string 否 idp_xyz789
status string 否 active
type string 否 signing