Dev.to Security 🔐 Cybersecurity 👁 0 📖 3 min read

Private CA Policies Can Now See Inside the Certificate (Plus ACM N2 for mTLS)

Until now, IAM could say who may request a certificate from which private CA, and with which template. It couldn't say what the certificate contains. So teams ran a CA per team, or built their own approval layer in front

Until now, IAM could say who may request a certificate from which private CA, and with which template. It couldn't say what the certificate contains. So teams ran a CA per team, or built their own approval layer in front of AWS Private CA. On 20 November that changed, and a day later ACM added an option for client certificates.

This is based on the two What's New posts. I haven't written or tested policies against the new keys.

X.509 condition keys in AWS Private CA

AWS Private CA now supports IAM condition keys that describe the certificate being issued. You can allow or deny based on:

  • subject and subject alternative names (SANs)
  • public key and signature algorithm
  • validity period
  • key usage and extended key usage
  • basic constraints

The policy is evaluated against the certificate as it would be issued, before anything is signed. AWS gives examples: limit each account to DNS names in its own subdomain, cap certificate lifetimes, require specific key algorithms and sizes across the organisation, and reserve CA certificates for your PKI team.

The key point is that each key takes its value from the final certificate. It doesn't matter whether an attribute came from the CSR, the template or API passthrough. Moving an attribute to a different input doesn't get it past the policy. That closes the obvious bypass.

You can use the keys in identity-based policies, SCPs, RCPs, VPC endpoint policies and customer managed permissions in AWS RAM. No additional charge, though Private CA charges still apply.

I'm not quoting the key names here because the announcement doesn't list them. The Private CA User Guide section on X.509 certificate condition keys does.

Why this matters

One shared CA with per-team guardrails is simpler to run than a CA per team. Think of an SCP that denies certificates with a lifetime beyond your limit, or any CA-capable certificate outside the PKI team's role. Org-wide rules like that weren't expressible before.

What I'd do first: list your current private CAs, work out which exist only because of the old limitation, and pick one pair to consolidate in a test account. Try the policy as a deny in a non-production account and read the failure message before relying on it.

ACM Amazon N2 certificates for mTLS

ACM public certificates no longer include client authentication, in line with WebPKI requirements. So if a partner's client needed to call your API with a client certificate, you had to build your own trust model on private PKI.

ACM now issues Amazon N2 certificates for mTLS and other non-browser authentication. They come from Amazon N2 CAs, operated by Amazon Trust Services. Your peers add the N2 roots to their trust stores.

  • Valid for up to 395 days, renewed automatically by ACM.
  • Used by AWS integrated services, or exported to your own clients and servers.
  • You pay per domain name in each certificate, including when used with integrated services (see the ACM pricing page; the amount isn't in the announcement).
  • Available in all commercial Regions where ACM is available.

The trade-off is trust distribution. With a private CA you control the roots. With N2 you ask partners to trust a public Amazon root set. That's easier to explain to an external party, harder to scope tightly. I'd still pair it with application-level checks on who the client is.

Sources

Drafted with AI assistance. I review and edit every post.

📰 Read the original article on Dev.to Security

Originally published by Dev.to Security. Aggregated on AIWithGhost for educational purposes — full credit and traffic to the original publisher.