You are securing an Azure API Management (APIM) gateway endpoint. The security requirements specify that all client applications must authenticate using client certificates, and the APIM gateway must validate that the certificate is not expired and is issued by a specific Certificate Authority (CA).
Which configuration and policy implementation should you use to meet these requirements?
- Enable client certificate negotiation in the APIM gateway settings, and configure an inbound policy that validates the certificate using context.Request.Certificate properties.Cevap
- BEnable client certificate negotiation in the APIM gateway settings, and configure an outbound policy that validates the certificate using context.Request.Certificate properties.
- CEnable a system-assigned managed identity on the APIM instance, and configure an authentication-managed-identity policy in the inbound section of the API.
- DUpload the trusted CA certificate to Azure Key Vault, configure a validate-jwt inbound policy to validate the certificate, and grant the client application Get permissions in the Key Vault access policies.
Cevap
Enable client certificate negotiation in the APIM gateway settings, and configure an inbound policy that validates the certificate using context.Request.Certificate properties.
To secure an APIM gateway using client certificates, you must first configure the gateway to negotiate client certificates. Once negotiated, the certificate is accessible in the policy context. The validation logic must reside in the inbound section so that requests are verified before reaching the backend. The context.Request.Certificate object exposes the necessary properties to verify issuer and expiration details.
Adım Adım Çözüm
Anahtar Kavram
Securing APIM endpoints via client certificate authentication (Mutual TLS) and policy expressions