TLS & Certificate Hardening Review Prompt
Audit TLS configuration and certificate lifecycle across endpoints — protocol/cipher selection, cert chain and expiry, OCSP/HSTS, and mTLS — to close weak-crypto and expired-cert exposure.
- Target user
- Platform and security engineers hardening TLS across services
- Difficulty
- Intermediate
- Tools
- Claude, ChatGPT
The prompt
You are a security engineer who has hardened TLS across edge proxies, internal services, and mesh traffic, and has been paged for enough expired certs to take lifecycle seriously. I will provide: - TLS config (nginx/Apache/Envoy/HAProxy blocks, or load-balancer policy) - Scan output if available (testssl.sh, sslscan, SSL Labs, openssl s_client) - The endpoint type (public web, internal API, service-mesh mTLS) and any compliance baseline Your job: 1. **Protocol & cipher review** — verify TLS 1.2+ only (disable TLS 1.0/1.1 and all SSLv3), recommend a modern cipher suite ordered for forward secrecy (ECDHE), and flag weak/legacy ciphers, RC4, 3DES, CBC issues, and insecure renegotiation. 2. **Certificate chain & trust** — check the cert is served with its full intermediate chain, matches the hostname/SAN, uses an adequate key size/algorithm (RSA 2048+ or ECDSA P-256), and is issued by a trusted CA. Flag self-signed or mismatched certs on anything that should be trusted. 3. **Lifecycle & expiry** — identify time-to-expiry, recommend automated renewal (ACME/cert-manager), short-lived certs where feasible, and alerting well before expiry. Treat "renew manually each year" as a latent outage. 4. **Hardening headers & features** — for web endpoints, recommend HSTS (with max-age and includeSubDomains), OCSP stapling, and disabling compression where it enables attacks. For mTLS, verify both sides validate the chain and that client certs are actually enforced, not just requested. 5. **Key management** — confirm private keys have tight file permissions, are not committed to git, and are rotated; recommend storing them in a secret manager or HSM/KMS where possible. 6. **Internal traffic** — call out any plaintext internal hops that should be encrypted, and where mTLS or a service mesh would close gaps. Output as: (a) a findings table (control, current, recommended, severity), (b) a hardened TLS config block, (c) an automated-renewal + expiry-alert plan, (d) a key-handling checklist, (e) a prioritized remediation order with any compatibility caveats. Be opinionated: TLS 1.2+ only, forward secrecy mandatory, automate renewal, and never let a cert expiry be a manual calendar reminder.
Run this prompt with AI
Test it, get an AI-improved version, or compare models — live in the Prompt Workspace. No copy-paste.
Related prompts
-
OCSP and CRL Certificate Revocation Validation Review Prompt
Review TLS clients and services for correct certificate revocation checking via OCSP stapling and CRL distribution points
-
etcd Encryption and Access Hardening Review Prompt
Review Kubernetes etcd for encryption-at-rest gaps, weak client/peer mTLS, exposed endpoints, and missing backup-protection controls
-
Database Security Hardening Review Prompt
Audit and harden a production database (PostgreSQL/MySQL/MongoDB) — authentication, network exposure, encryption, least-privilege grants, and audit logging — without breaking applications.
-
Internal PKI & Certificate Lifecycle Design Prompt
Design a private PKI for internal services — CA hierarchy, HSM-backed roots, automated issuance and rotation via cert-manager/Vault, and revocation — so certificates never expire unexpectedly or outlive trust.
More DevOps Security & Hardening prompts & error guides
Browse every DevOps Security & Hardening prompt and troubleshooting guide in one place.
Reading prompts? Get all 500 in one free PDF
500 battle-tested, copy-paste AI prompts engineered by a senior systems engineer — every one with fill-in placeholders and safety/back-out notes. Drop your email and it's yours.
- 500 prompts: Linux · Kubernetes · Terraform · OpenStack · GitLab · Docker · Monitoring · Incident Response
- Instant PDF download — yours free, forever
- Plus one practical AI-workflow email a week (no spam)
Single opt-in · unsubscribe anytime · no spam.