The three checks
Where the files are
All files are DER-encoded. Convert to PEM where a tool needs it:
CRL addresses use plain HTTP on purpose. CRLs are signed by the CA, so they can’t be altered in transit, and many TLS libraries won’t fetch CRLs over HTTPS.
Your organization ID
Every workload cert CertGov issues to your organization carriesOU=org:<your-org-id> in its subject. CertGov sets it. Your workload can’t set or change it. To find yours, open any workload identity and check the trust policy on its page, or read it from one of your certs:
Revocation is not automatic
The CRL address is written into every workload cert, but most TLS stacks never fetch it on their own. Go checks nothing. nginx and Envoy check only a CRL file you give them. If you skip the revocation setup below, revoked certs keep working until they expire (1–7 days for most workload types). Refresh the intermediate CRL every 5 minutes. How often you refresh decides how quickly a revocation reaches your service. Each CRL is valid for 1 hour, which covers a short CertGov outage. If your copy expires, strict validators reject every client cert, not only revoked ones.nginx
nginx checks CRLs for every certificate in the chain oncessl_crl is set, so give it both CRLs.
1. Fetch the CA and CRLs. Save as /usr/local/bin/certgov-crl-refresh and run it from cron every 5 minutes:
ssl_crl only at start and reload, which is why the script reloads it.
Envoy and Istio
Give Envoy the CA bundle and both CRLs in its validation context. Refresh the CRL file every 5 minutes with the same script as nginx, then trigger a reload: an SDS update, or a hot restart for file-based config.OU. Check it in a Lua filter in front of your routes:
DestinationRule or Gateway TLS settings, and apply the same check with an EnvoyFilter.
Go
crypto/tls checks the chain but never revocation. Add both checks in VerifyConnection:
Java
Turn on revocation checking with CRL fetching from the cert’s distribution point:crl.certgov.io CRLs itself and caches them until their nextUpdate. Check 3 is not built in: read the peer certificate’s subject in your request filter (for example X509Certificate.getSubjectX500Principal()) and reject anything without OU=org:YOUR-ORG-ID.
AWS IAM Roles Anywhere
AWS never fetches CRLs itself. CertGov pushes your CRL into your Roles Anywhere trust anchor within seconds of a revocation, using a role you create. CertGov stores no AWS keys.1
Create the trust anchor
In IAM Roles Anywhere, create a trust anchor with source External certificate bundle. Paste the CertGov root (
root.crt, PEM). Using the root means your setup survives an intermediate replacement. The trust policy in step 3 limits it to the production intermediate.2
Create the CertGov push role
In CertGov, go to Workload Identities → CRL Distribution. Under Create the CertGov push role, copy the trust policy and permissions policy, and create an IAM role with them (for example
certgov-crl-push). The trust policy allows only CertGov’s AWS identity, and only with your organization’s external ID. Don’t remove the external ID condition: it stops another CertGov customer from pointing CertGov at your role.3
Create the workload role
Create the IAM role your workloads will assume. Use a trust policy from CertGov:
- Per workload: the exact-name policy on the workload identity’s page.
- Shared roles: the org-wide or per-policy versions on Workload Identities → CRL Distribution.
aws:PrincipalTag/x509Subject/OU). Never remove that condition.4
Create the profile
Create a Roles Anywhere profile that lists the workload role. Set the session duration to the minimum (15 minutes). Revoking a cert doesn’t end sessions AWS has already issued.
5
Connect CertGov
Back on Workload Identities → CRL Distribution, enter the region, trust anchor ARN, profile ARN, workload role ARN, and the push role ARN. Click Save Configuration, then Re-push CRL Now. The status line shows the CRL ID once AWS has accepted it.
6
Configure the workload
Copy the
credential_process snippet from the workload identity’s page into the workload’s ~/.aws/config.Keeping the CRL current yourself
If your security policy doesn’t allow an outside service to assume a role in your account, skip the push role and upload the CRL yourself. CertGov still issues, governs and revokes your workload certs, and still publishes the signed CRL. Your job only copies it into AWS.- In step 5 above, leave CertGov push role ARN empty and clear Enable CRL push. Keep the trust anchor ARN saved, because CertGov uses it in the trust policies it generates.
- Give the job an AWS identity in your account that allows only
rolesanywhere:ImportCrlandrolesanywhere:UpdateCrl. - Import the CRL once and note the
crlIdin the response:
- Run this every 5 minutes, for example from cron or a scheduled Lambda:
- Revocations reach AWS on your schedule. With a 5-minute job, a revoked cert can get new credentials for up to 5 minutes more, instead of seconds.
- Failures are yours to monitor. CertGov alerts you when its own push fails. It can’t see your job, so alert on the job’s failures yourself.
Prove it works
Each organization has a revoked test identity: a permanently revoked cert and key. Generate it under Workload Identities, then present it to your service:aws sts get-caller-identity --profile certgov-workload with the revoked test identity’s cert. AWS should reply AccessDeniedException.