[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6FBW4DAV18YVHV85B6RK5EJ":3,"skill-same:01M6FBW4DAV18YVHV85B6RK5EJ":81},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":41,"linkOnly":42,"markdownContent":43,"markdownBody":44,"frontMatter":45,"refName":32,"commitSha":55,"skillDirectory":56,"forksCount":57,"repositoryHtmlUrl":58,"repositoryHomepageUrl":6,"ownerHtmlUrl":59,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":60,"install":61,"resources":74},"01M6FBW4DAV18YVHV85B6RK5EJ","ssl-tls-management",null,"Manage SSL\u002FTLS certificates with Let's Encrypt and internal PKI. Configure secure HTTPS, certificate renewal, and cipher suites. Use when implementing secure communications.","boisenoise\u002Fskills-collections","boisenoise","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F193180?v=4","01M6CDBDQK6BDN55ZMA6B6PKBM","01M6CDBDVSJ3JPTBYN26FZ7TZK",13,"MIT","https:\u002F\u002Fgithub.com\u002Fboisenoise\u002Fskills-collections\u002Fblob\u002Fmain\u002Fskills\u002Fantigravity-ssl-tls-management\u002FSKILL.md",[],[18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40],"ssl","tls","ssl tls management","management","community","when","tls certificates","implementing","relevant","communications","scripts","scope","critical","active","main","secure","only","configure","certificates","devops-security","pki","encrypt","assessment","2026-11-10 10:12:30",false,"---\nname: ssl-tls-management\ndescription: Manage SSL\u002FTLS certificates with Let's Encrypt and internal PKI. Configure\n  secure HTTPS, certificate renewal, and cipher suites. Use when implementing secure\n  communications.\ncategory: security\nrisk: critical\nsource: https:\u002F\u002Fgithub.com\u002FBagelHole\u002FDevOps-Security-Agent-Skills\nsource_repo: BagelHole\u002FDevOps-Security-Agent-Skills\nsource_type: community\ndate_added: '2026-09-20'\nlicense: MIT\nlicense_source: https:\u002F\u002Fgithub.com\u002FBagelHole\u002FDevOps-Security-Agent-Skills\u002Fblob\u002Fmain\u002FLICENSE\ncompatibility: Requires the relevant security tooling (scanners, vault CLIs) and an\n  authorized scope for any active assessment. Docs-only; helper scripts and templates\n  not bundled.\nmetadata:\n  author: devops-skills\n  version: '1.0'\n---\n\n# SSL\u002FTLS Management\n\nManage certificates and secure communications across web servers, Kubernetes clusters, and internal services.\n\n## Prerequisites\n\n- Domain name with DNS control for public certificates\n- Root\u002Fsudo access on web servers\n- `certbot` installed for Let's Encrypt\n- `openssl` CLI available (installed by default on most Linux distros)\n- Kubernetes cluster with Helm for cert-manager deployment\n- Understanding of X.509 certificate chain of trust\n\n## Let's Encrypt with Certbot\n\n### Installation and Certificate Issuance\n\n```bash\n# Install certbot (Ubuntu\u002FDebian)\napt update && apt install -y certbot python3-certbot-nginx\n\n# Obtain certificate for nginx (interactive)\ncertbot --nginx -d example.com -d www.example.com\n\n# Non-interactive mode for automation\ncertbot certonly --nginx \\\n  -d example.com \\\n  -d www.example.com \\\n  --non-interactive \\\n  --agree-tos \\\n  --email admin@example.com\n\n# Standalone mode (when no web server is running)\ncertbot certonly --standalone \\\n  -d example.com \\\n  --preferred-challenges http\n\n# DNS challenge (for wildcard certs)\ncertbot certonly --manual \\\n  --preferred-challenges dns \\\n  -d \"*.example.com\" \\\n  -d example.com\n\n# Using DNS plugin for automation (Cloudflare example)\npip install certbot-dns-cloudflare\ninstall -m 600 \u002Fdev\u002Fnull \u002Fetc\u002Fletsencrypt\u002Fcloudflare.ini\n# Populate dns_cloudflare_api_token using the approved secret-manager workflow;\n# do not paste tokens into shell history or commit the file.\n\ncertbot certonly --dns-cloudflare \\\n  --dns-cloudflare-credentials \u002Fetc\u002Fletsencrypt\u002Fcloudflare.ini \\\n  -d \"*.example.com\" \\\n  -d example.com\n```\n\n### Renewal Automation\n\n```bash\n# Test renewal\ncertbot renew --dry-run\n\n# Inspect existing package-managed certbot timers first; configure exactly one renewal schedule.\n# Custom systemd timer example (confirm executable path for your installation)\ncat > \u002Fetc\u002Fsystemd\u002Fsystem\u002Fcertbot-renewal.service \u003C\u003C 'EOF'\n[Unit]\nDescription=Certbot certificate renewal\nAfter=network-online.target\n\n[Service]\nType=oneshot\nExecStart=\u002Fusr\u002Fbin\u002Fcertbot renew --quiet --deploy-hook \"systemctl reload nginx\"\nEOF\n\ncat > \u002Fetc\u002Fsystemd\u002Fsystem\u002Fcertbot-renewal.timer \u003C\u003C 'EOF'\n[Unit]\nDescription=Run certbot renewal twice daily\n\n[Timer]\nOnCalendar=*-*-* 00,12:00:00\nRandomizedDelaySec=3600\nPersistent=true\n\n[Install]\nWantedBy=timers.target\nEOF\n\nsystemctl enable --now certbot-renewal.timer\n\n# Verify timer is active\nsystemctl list-timers certbot-renewal.timer\n\n# Renewal hooks for post-renewal actions\nmkdir -p \u002Fetc\u002Fletsencrypt\u002Frenewal-hooks\u002Fdeploy\ncat > \u002Fetc\u002Fletsencrypt\u002Frenewal-hooks\u002Fdeploy\u002Freload-services.sh \u003C\u003C 'HOOK'\n#!\u002Fbin\u002Fbash\nsystemctl reload nginx\n# Also reload other services using the cert\nsystemctl reload haproxy 2>\u002Fdev\u002Fnull || true\nHOOK\nchmod +x \u002Fetc\u002Fletsencrypt\u002Frenewal-hooks\u002Fdeploy\u002Freload-services.sh\n```\n\n## cert-manager for Kubernetes\n\n### Installation\n\n```bash\n# Install with Helm\nhelm repo add jetstack https:\u002F\u002Fcharts.jetstack.io\nhelm repo update\n\nhelm install cert-manager jetstack\u002Fcert-manager \\\n  --namespace cert-manager \\\n  --create-namespace \\\n  --version v1.14.0 \\\n  --set installCRDs=true \\\n  --set prometheus.enabled=true\n\n# Verify installation\nkubectl get pods -n cert-manager\nkubectl get crds | grep cert-manager\n```\n\n### ClusterIssuer Configurations\n\n```yaml\n# letsencrypt-staging (use for testing first)\napiVersion: cert-manager.io\u002Fv1\nkind: ClusterIssuer\nmetadata:\n  name: letsencrypt-staging\nspec:\n  acme:\n    server: https:\u002F\u002Facme-staging-v02.api.letsencrypt.org\u002Fdirectory\n    email: admin@example.com\n    privateKeySecretRef:\n      name: letsencrypt-staging\n    solvers:\n      - http01:\n          ingress:\n            class: nginx\n---\n# letsencrypt-prod\napiVersion: cert-manager.io\u002Fv1\nkind: ClusterIssuer\nmetadata:\n  name: letsencrypt-prod\nspec:\n  acme:\n    server: https:\u002F\u002Facme-v02.api.letsencrypt.org\u002Fdirectory\n    email: admin@example.com\n    privateKeySecretRef:\n      name: letsencrypt-prod\n    solvers:\n      - http01:\n          ingress:\n            class: nginx\n---\n# DNS challenge solver (for wildcard certs with Cloudflare)\napiVersion: cert-manager.io\u002Fv1\nkind: ClusterIssuer\nmetadata:\n  name: letsencrypt-prod-dns\nspec:\n  acme:\n    server: https:\u002F\u002Facme-v02.api.letsencrypt.org\u002Fdirectory\n    email: admin@example.com\n    privateKeySecretRef:\n      name: letsencrypt-prod-dns\n    solvers:\n      - dns01:\n          cloudflare:\n            apiTokenSecretRef:\n              name: cloudflare-api-token\n              key: api-token\n---\n# Self-signed CA issuer for internal services\napiVersion: cert-manager.io\u002Fv1\nkind: ClusterIssuer\nmetadata:\n  name: selfsigned-ca\nspec:\n  selfSigned: {}\n```\n\n### Certificate Resources\n\n```yaml\n# Public-facing certificate\napiVersion: cert-manager.io\u002Fv1\nkind: Certificate\nmetadata:\n  name: example-cert\n  namespace: default\nspec:\n  secretName: example-tls\n  issuerRef:\n    name: letsencrypt-prod\n    kind: ClusterIssuer\n  dnsNames:\n    - example.com\n    - www.example.com\n  duration: 2160h    # 90 days\n  renewBefore: 720h  # 30 days before expiry\n---\n# Wildcard certificate\napiVersion: cert-manager.io\u002Fv1\nkind: Certificate\nmetadata:\n  name: wildcard-cert\n  namespace: default\nspec:\n  secretName: wildcard-tls\n  issuerRef:\n    name: letsencrypt-prod-dns\n    kind: ClusterIssuer\n  dnsNames:\n    - \"*.example.com\"\n    - example.com\n---\n# Ingress with automatic TLS\napiVersion: networking.k8s.io\u002Fv1\nkind: Ingress\nmetadata:\n  name: example-ingress\n  annotations:\n    cert-manager.io\u002Fcluster-issuer: letsencrypt-prod\nspec:\n  tls:\n    - hosts:\n        - example.com\n      secretName: example-tls\n  rules:\n    - host: example.com\n      http:\n        paths:\n          - path: \u002F\n            pathType: Prefix\n            backend:\n              service:\n                name: web\n                port:\n                  number: 80\n```\n\n## OpenSSL Commands Reference\n\n```bash\n# Generate a private key\numask 077\nopenssl genrsa -out server.key 4096\n\n# Generate an ECDSA key (preferred for performance)\nopenssl ecparam -genkey -name prime256v1 -out server-ec.key\n\n# Generate a CSR (Certificate Signing Request)\nopenssl req -new -key server.key -out server.csr \\\n  -subj \"\u002FC=US\u002FST=California\u002FL=San Francisco\u002FO=Acme Corp\u002FCN=example.com\"\n\n# Generate CSR with SAN (Subject Alternative Names)\nopenssl req -new -key server.key -out server.csr -config \u003C(cat \u003C\u003CEOF\n[req]\ndefault_bits = 4096\ndistinguished_name = dn\nreq_extensions = san\nprompt = no\n\n[dn]\nCN = example.com\nO = Acme Corp\nC = US\n\n[san]\nsubjectAltName = DNS:example.com,DNS:www.example.com,DNS:api.example.com\nEOF\n)\n\n# Generate self-signed certificate (development\u002Ftesting)\nopenssl req -x509 -nodes -days 365 -newkey rsa:4096 \\\n  -keyout selfsigned.key -out selfsigned.crt \\\n  -subj \"\u002FCN=localhost\" -addext \"subjectAltName=DNS:localhost\"\n\n# View certificate details\nopenssl x509 -in cert.pem -noout -text\n\n# Check certificate expiration date\nopenssl x509 -in cert.pem -noout -dates\n\n# Check remote certificate\nopenssl s_client -connect example.com:443 -servername example.com 2>\u002Fdev\u002Fnull | \\\n  openssl x509 -noout -dates -subject -issuer\n\n# Verify certificate chain\nopenssl verify -CAfile ca-bundle.crt server.crt\n\n# Check certificate chain from remote server\nopenssl s_client -connect example.com:443 -showcerts 2>\u002Fdev\u002Fnull | \\\n  openssl x509 -noout -text\n\n# Convert PEM to PKCS12\nopenssl pkcs12 -export -out cert.pfx -inkey server.key -in server.crt -certfile ca.crt\n\n# Convert PKCS12 to PEM\nopenssl pkcs12 -in cert.pfx -out cert.pem -nodes\n\n# Test TLS connection and cipher negotiation\nopenssl s_client -connect example.com:443 -tls1_3\nopenssl s_client -connect example.com:443 -cipher 'ECDHE-RSA-AES256-GCM-SHA384'\n```\n\nThe remote openssl display examples inspect a peer certificate; they do not by themselves verify hostname\u002Ftrust\u002Fcomplete chain. Test with explicit verification options and a trusted CA store. Start HSTS with a short approved max-age, verify all required hosts support HTTPS, then consider longer duration\u002Fsubdomain\u002Fpreload separately; those settings can create persistent outages. The selfSigned ClusterIssuer creates self-signed leaves; a managed internal CA requires a CA certificate\u002Fkey and CA issuer plus trust distribution.\n\n## Strong TLS Configuration\n\n### Nginx\n\n```nginx\nserver {\n    listen 443 ssl http2;\n    server_name example.com;\n\n    ssl_certificate \u002Fetc\u002Fletsencrypt\u002Flive\u002Fexample.com\u002Ffullchain.pem;\n    ssl_certificate_key \u002Fetc\u002Fletsencrypt\u002Flive\u002Fexample.com\u002Fprivkey.pem;\n\n    # Protocol versions\n    ssl_protocols TLSv1.2 TLSv1.3;\n\n    # Cipher suites (TLS 1.2)\n    ssl_ciphers ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384;\n    ssl_prefer_server_ciphers off;\n\n    # Session settings\n    ssl_session_timeout 1d;\n    ssl_session_cache shared:SSL:10m;\n    ssl_session_tickets off;\n\n    # Enable stapling only for issuers that still provide a working OCSP responder.\n    # Let's Encrypt no longer supplies OCSP responses.\n    ssl_stapling off;\n    resolver 8.8.8.8 8.8.4.4 valid=300s;\n    resolver_timeout 5s;\n\n    # Security headers\n    add_header Strict-Transport-Security \"max-age=300\" always;\n    add_header X-Content-Type-Options nosniff always;\n    add_header X-Frame-Options DENY always;\n\n    # HTTP to HTTPS redirect (in separate server block)\n}\n\nserver {\n    listen 80;\n    server_name example.com www.example.com;\n    return 301 https:\u002F\u002F$host$request_uri;\n}\n```\n\n### Apache\n\n```apache\n\u003CVirtualHost *:443>\n    ServerName example.com\n\n    SSLEngine on\n    SSLCertificateFile \u002Fetc\u002Fletsencrypt\u002Flive\u002Fexample.com\u002Ffullchain.pem\n    SSLCertificateKeyFile \u002Fetc\u002Fletsencrypt\u002Flive\u002Fexample.com\u002Fprivkey.pem\n\n    SSLProtocol all -SSLv3 -TLSv1 -TLSv1.1\n    SSLCipherSuite ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384\n    SSLHonorCipherOrder off\n\n    # Let's Encrypt issuer: OCSP stapling disabled.\n    SSLUseStapling off\n\n    Header always set Strict-Transport-Security \"max-age=300\"\n\u003C\u002FVirtualHost>\n```\n\n\n## Contents\n\n- [Certificate Monitoring](references\u002Fdetails.md)\n- [Troubleshooting](references\u002Fdetails.md)\n- [Best Practices](references\u002Fdetails.md)\n- [Related Skills](references\u002Fdetails.md)\n\n## When to Use This Skill\n\nUse this skill when:\n- Setting up HTTPS for a new web application\n- Automating certificate renewal with Let's Encrypt\n- Deploying cert-manager in Kubernetes\n- Configuring TLS for internal service-to-service communication\n- Auditing cipher suites and TLS versions for compliance\n- Responding to an expiring or compromised certificate\n\n## Limitations\n\n- Apply guidance only within authorized scope; test destructive steps in non-production first.\n- Docs-only import: upstream scripts and templates not bundled.\n\n### Example\n\n```bash\n# Read-only first: inventory before any active step.\nwhich \u003Ctool> && \u003Ctool> --help | head -n 20\n```\n\n> Adapted from [BagelHole\u002FDevOps-Security-Agent-Skills](https:\u002F\u002Fgithub.com\u002FBagelHole\u002FDevOps-Security-Agent-Skills) (MIT); frontmatter, When to Use\u002FLimitations, and safety boundaries added for upstream compliance. Docs-only import: helper scripts and templates not bundled.\n","# SSL\u002FTLS Management\n\nManage certificates and secure communications across web servers, Kubernetes clusters, and internal services.\n\n## Prerequisites\n\n- Domain name with DNS control for public certificates\n- Root\u002Fsudo access on web servers\n- `certbot` installed for Let's Encrypt\n- `openssl` CLI available (installed by default on most Linux distros)\n- Kubernetes cluster with Helm for cert-manager deployment\n- Understanding of X.509 certificate chain of trust\n\n## Let's Encrypt with Certbot\n\n### Installation and Certificate Issuance\n\n```bash\n# Install certbot (Ubuntu\u002FDebian)\napt update && apt install -y certbot python3-certbot-nginx\n\n# Obtain certificate for nginx (interactive)\ncertbot --nginx -d example.com -d www.example.com\n\n# Non-interactive mode for automation\ncertbot certonly --nginx \\\n  -d example.com \\\n  -d www.example.com \\\n  --non-interactive \\\n  --agree-tos \\\n  --email admin@example.com\n\n# Standalone mode (when no web server is running)\ncertbot certonly --standalone \\\n  -d example.com \\\n  --preferred-challenges http\n\n# DNS challenge (for wildcard certs)\ncertbot certonly --manual \\\n  --preferred-challenges dns \\\n  -d \"*.example.com\" \\\n  -d example.com\n\n# Using DNS plugin for automation (Cloudflare example)\npip install certbot-dns-cloudflare\ninstall -m 600 \u002Fdev\u002Fnull \u002Fetc\u002Fletsencrypt\u002Fcloudflare.ini\n# Populate dns_cloudflare_api_token using the approved secret-manager workflow;\n# do not paste tokens into shell history or commit the file.\n\ncertbot certonly --dns-cloudflare \\\n  --dns-cloudflare-credentials \u002Fetc\u002Fletsencrypt\u002Fcloudflare.ini \\\n  -d \"*.example.com\" \\\n  -d example.com\n```\n\n### Renewal Automation\n\n```bash\n# Test renewal\ncertbot renew --dry-run\n\n# Inspect existing package-managed certbot timers first; configure exactly one renewal schedule.\n# Custom systemd timer example (confirm executable path for your installation)\ncat > \u002Fetc\u002Fsystemd\u002Fsystem\u002Fcertbot-renewal.service \u003C\u003C 'EOF'\n[Unit]\nDescription=Certbot certificate renewal\nAfter=network-online.target\n\n[Service]\nType=oneshot\nExecStart=\u002Fusr\u002Fbin\u002Fcertbot renew --quiet --deploy-hook \"systemctl reload nginx\"\nEOF\n\ncat > \u002Fetc\u002Fsystemd\u002Fsystem\u002Fcertbot-renewal.timer \u003C\u003C 'EOF'\n[Unit]\nDescription=Run certbot renewal twice daily\n\n[Timer]\nOnCalendar=*-*-* 00,12:00:00\nRandomizedDelaySec=3600\nPersistent=true\n\n[Install]\nWantedBy=timers.target\nEOF\n\nsystemctl enable --now certbot-renewal.timer\n\n# Verify timer is active\nsystemctl list-timers certbot-renewal.timer\n\n# Renewal hooks for post-renewal actions\nmkdir -p \u002Fetc\u002Fletsencrypt\u002Frenewal-hooks\u002Fdeploy\ncat > \u002Fetc\u002Fletsencrypt\u002Frenewal-hooks\u002Fdeploy\u002Freload-services.sh \u003C\u003C 'HOOK'\n#!\u002Fbin\u002Fbash\nsystemctl reload nginx\n# Also reload other services using the cert\nsystemctl reload haproxy 2>\u002Fdev\u002Fnull || true\nHOOK\nchmod +x \u002Fetc\u002Fletsencrypt\u002Frenewal-hooks\u002Fdeploy\u002Freload-services.sh\n```\n\n## cert-manager for Kubernetes\n\n### Installation\n\n```bash\n# Install with Helm\nhelm repo add jetstack https:\u002F\u002Fcharts.jetstack.io\nhelm repo update\n\nhelm install cert-manager jetstack\u002Fcert-manager \\\n  --namespace cert-manager \\\n  --create-namespace \\\n  --version v1.14.0 \\\n  --set installCRDs=true \\\n  --set prometheus.enabled=true\n\n# Verify installation\nkubectl get pods -n cert-manager\nkubectl get crds | grep cert-manager\n```\n\n### ClusterIssuer Configurations\n\n```yaml\n# letsencrypt-staging (use for testing first)\napiVersion: cert-manager.io\u002Fv1\nkind: ClusterIssuer\nmetadata:\n  name: letsencrypt-staging\nspec:\n  acme:\n    server: https:\u002F\u002Facme-staging-v02.api.letsencrypt.org\u002Fdirectory\n    email: admin@example.com\n    privateKeySecretRef:\n      name: letsencrypt-staging\n    solvers:\n      - http01:\n          ingress:\n            class: nginx\n---\n# letsencrypt-prod\napiVersion: cert-manager.io\u002Fv1\nkind: ClusterIssuer\nmetadata:\n  name: letsencrypt-prod\nspec:\n  acme:\n    server: https:\u002F\u002Facme-v02.api.letsencrypt.org\u002Fdirectory\n    email: admin@example.com\n    privateKeySecretRef:\n      name: letsencrypt-prod\n    solvers:\n      - http01:\n          ingress:\n            class: nginx\n---\n# DNS challenge solver (for wildcard certs with Cloudflare)\napiVersion: cert-manager.io\u002Fv1\nkind: ClusterIssuer\nmetadata:\n  name: letsencrypt-prod-dns\nspec:\n  acme:\n    server: https:\u002F\u002Facme-v02.api.letsencrypt.org\u002Fdirectory\n    email: admin@example.com\n    privateKeySecretRef:\n      name: letsencrypt-prod-dns\n    solvers:\n      - dns01:\n          cloudflare:\n            apiTokenSecretRef:\n              name: cloudflare-api-token\n              key: api-token\n---\n# Self-signed CA issuer for internal services\napiVersion: cert-manager.io\u002Fv1\nkind: ClusterIssuer\nmetadata:\n  name: selfsigned-ca\nspec:\n  selfSigned: {}\n```\n\n### Certificate Resources\n\n```yaml\n# Public-facing certificate\napiVersion: cert-manager.io\u002Fv1\nkind: Certificate\nmetadata:\n  name: example-cert\n  namespace: default\nspec:\n  secretName: example-tls\n  issuerRef:\n    name: letsencrypt-prod\n    kind: ClusterIssuer\n  dnsNames:\n    - example.com\n    - www.example.com\n  duration: 2160h    # 90 days\n  renewBefore: 720h  # 30 days before expiry\n---\n# Wildcard certificate\napiVersion: cert-manager.io\u002Fv1\nkind: Certificate\nmetadata:\n  name: wildcard-cert\n  namespace: default\nspec:\n  secretName: wildcard-tls\n  issuerRef:\n    name: letsencrypt-prod-dns\n    kind: ClusterIssuer\n  dnsNames:\n    - \"*.example.com\"\n    - example.com\n---\n# Ingress with automatic TLS\napiVersion: networking.k8s.io\u002Fv1\nkind: Ingress\nmetadata:\n  name: example-ingress\n  annotations:\n    cert-manager.io\u002Fcluster-issuer: letsencrypt-prod\nspec:\n  tls:\n    - hosts:\n        - example.com\n      secretName: example-tls\n  rules:\n    - host: example.com\n      http:\n        paths:\n          - path: \u002F\n            pathType: Prefix\n            backend:\n              service:\n                name: web\n                port:\n                  number: 80\n```\n\n## OpenSSL Commands Reference\n\n```bash\n# Generate a private key\numask 077\nopenssl genrsa -out server.key 4096\n\n# Generate an ECDSA key (preferred for performance)\nopenssl ecparam -genkey -name prime256v1 -out server-ec.key\n\n# Generate a CSR (Certificate Signing Request)\nopenssl req -new -key server.key -out server.csr \\\n  -subj \"\u002FC=US\u002FST=California\u002FL=San Francisco\u002FO=Acme Corp\u002FCN=example.com\"\n\n# Generate CSR with SAN (Subject Alternative Names)\nopenssl req -new -key server.key -out server.csr -config \u003C(cat \u003C\u003CEOF\n[req]\ndefault_bits = 4096\ndistinguished_name = dn\nreq_extensions = san\nprompt = no\n\n[dn]\nCN = example.com\nO = Acme Corp\nC = US\n\n[san]\nsubjectAltName = DNS:example.com,DNS:www.example.com,DNS:api.example.com\nEOF\n)\n\n# Generate self-signed certificate (development\u002Ftesting)\nopenssl req -x509 -nodes -days 365 -newkey rsa:4096 \\\n  -keyout selfsigned.key -out selfsigned.crt \\\n  -subj \"\u002FCN=localhost\" -addext \"subjectAltName=DNS:localhost\"\n\n# View certificate details\nopenssl x509 -in cert.pem -noout -text\n\n# Check certificate expiration date\nopenssl x509 -in cert.pem -noout -dates\n\n# Check remote certificate\nopenssl s_client -connect example.com:443 -servername example.com 2>\u002Fdev\u002Fnull | \\\n  openssl x509 -noout -dates -subject -issuer\n\n# Verify certificate chain\nopenssl verify -CAfile ca-bundle.crt server.crt\n\n# Check certificate chain from remote server\nopenssl s_client -connect example.com:443 -showcerts 2>\u002Fdev\u002Fnull | \\\n  openssl x509 -noout -text\n\n# Convert PEM to PKCS12\nopenssl pkcs12 -export -out cert.pfx -inkey server.key -in server.crt -certfile ca.crt\n\n# Convert PKCS12 to PEM\nopenssl pkcs12 -in cert.pfx -out cert.pem -nodes\n\n# Test TLS connection and cipher negotiation\nopenssl s_client -connect example.com:443 -tls1_3\nopenssl s_client -connect example.com:443 -cipher 'ECDHE-RSA-AES256-GCM-SHA384'\n```\n\nThe remote openssl display examples inspect a peer certificate; they do not by themselves verify hostname\u002Ftrust\u002Fcomplete chain. Test with explicit verification options and a trusted CA store. Start HSTS with a short approved max-age, verify all required hosts support HTTPS, then consider longer duration\u002Fsubdomain\u002Fpreload separately; those settings can create persistent outages. The selfSigned ClusterIssuer creates self-signed leaves; a managed internal CA requires a CA certificate\u002Fkey and CA issuer plus trust distribution.\n\n## Strong TLS Configuration\n\n### Nginx\n\n```nginx\nserver {\n    listen 443 ssl http2;\n    server_name example.com;\n\n    ssl_certificate \u002Fetc\u002Fletsencrypt\u002Flive\u002Fexample.com\u002Ffullchain.pem;\n    ssl_certificate_key \u002Fetc\u002Fletsencrypt\u002Flive\u002Fexample.com\u002Fprivkey.pem;\n\n    # Protocol versions\n    ssl_protocols TLSv1.2 TLSv1.3;\n\n    # Cipher suites (TLS 1.2)\n    ssl_ciphers ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384;\n    ssl_prefer_server_ciphers off;\n\n    # Session settings\n    ssl_session_timeout 1d;\n    ssl_session_cache shared:SSL:10m;\n    ssl_session_tickets off;\n\n    # Enable stapling only for issuers that still provide a working OCSP responder.\n    # Let's Encrypt no longer supplies OCSP responses.\n    ssl_stapling off;\n    resolver 8.8.8.8 8.8.4.4 valid=300s;\n    resolver_timeout 5s;\n\n    # Security headers\n    add_header Strict-Transport-Security \"max-age=300\" always;\n    add_header X-Content-Type-Options nosniff always;\n    add_header X-Frame-Options DENY always;\n\n    # HTTP to HTTPS redirect (in separate server block)\n}\n\nserver {\n    listen 80;\n    server_name example.com www.example.com;\n    return 301 https:\u002F\u002F$host$request_uri;\n}\n```\n\n### Apache\n\n```apache\n\u003CVirtualHost *:443>\n    ServerName example.com\n\n    SSLEngine on\n    SSLCertificateFile \u002Fetc\u002Fletsencrypt\u002Flive\u002Fexample.com\u002Ffullchain.pem\n    SSLCertificateKeyFile \u002Fetc\u002Fletsencrypt\u002Flive\u002Fexample.com\u002Fprivkey.pem\n\n    SSLProtocol all -SSLv3 -TLSv1 -TLSv1.1\n    SSLCipherSuite ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384\n    SSLHonorCipherOrder off\n\n    # Let's Encrypt issuer: OCSP stapling disabled.\n    SSLUseStapling off\n\n    Header always set Strict-Transport-Security \"max-age=300\"\n\u003C\u002FVirtualHost>\n```\n\n\n## Contents\n\n- [Certificate Monitoring](references\u002Fdetails.md)\n- [Troubleshooting](references\u002Fdetails.md)\n- [Best Practices](references\u002Fdetails.md)\n- [Related Skills](references\u002Fdetails.md)\n\n## When to Use This Skill\n\nUse this skill when:\n- Setting up HTTPS for a new web application\n- Automating certificate renewal with Let's Encrypt\n- Deploying cert-manager in Kubernetes\n- Configuring TLS for internal service-to-service communication\n- Auditing cipher suites and TLS versions for compliance\n- Responding to an expiring or compromised certificate\n\n## Limitations\n\n- Apply guidance only within authorized scope; test destructive steps in non-production first.\n- Docs-only import: upstream scripts and templates not bundled.\n\n### Example\n\n```bash\n# Read-only first: inventory before any active step.\nwhich \u003Ctool> && \u003Ctool> --help | head -n 20\n```\n\n> Adapted from [BagelHole\u002FDevOps-Security-Agent-Skills](https:\u002F\u002Fgithub.com\u002FBagelHole\u002FDevOps-Security-Agent-Skills) (MIT); frontmatter, When to Use\u002FLimitations, and safety boundaries added for upstream compliance. Docs-only import: helper scripts and templates not bundled.\n",{"name":5,"risk":30,"source":46,"license":14,"category":47,"metadata":48,"date_added":51,"description":7,"source_repo":52,"source_type":22,"compatibility":53,"license_source":54},"https:\u002F\u002Fgithub.com\u002FBagelHole\u002FDevOps-Security-Agent-Skills","security",{"author":49,"version":50},"devops-skills","1.0","2026-09-20","BagelHole\u002FDevOps-Security-Agent-Skills","Requires the relevant security tooling (scanners, vault CLIs) and an authorized scope for any active assessment. Docs-only; helper scripts and templates not bundled.","https:\u002F\u002Fgithub.com\u002FBagelHole\u002FDevOps-Security-Agent-Skills\u002Fblob\u002Fmain\u002FLICENSE","7bf2279c8a65758319526a721d5c4b75683aec9c","skills\u002Fantigravity-ssl-tls-management",3,"https:\u002F\u002Fgithub.com\u002Fboisenoise\u002Fskills-collections","https:\u002F\u002Fgithub.com\u002Fboisenoise","2026-11-14 14:18:11",{"source":8,"skillName":5,"commands":62,"prompt":72,"zipAvailable":73},[63,66,69],{"tool":64,"command":65},"npx","npx skills add boisenoise\u002Fskills-collections --skill ssl-tls-management",{"tool":67,"command":68},"bunx","bunx skills add boisenoise\u002Fskills-collections --skill ssl-tls-management",{"tool":70,"command":71},"pnpm","pnpm dlx skills add boisenoise\u002Fskills-collections --skill ssl-tls-management","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fboisenoise\u002Fskills-collections\u002Fblob\u002Fmain\u002Fskills\u002Fantigravity-ssl-tls-management\u002FSKILL.md",true,[75],{"path":76,"resourceType":77,"resourceTypeDesc":78,"sizeBytes":79,"sourceHtmlUrl":80},"references\u002Fdetails.md","REFERENCE","参考文档",3721,"https:\u002F\u002Fgithub.com\u002Fboisenoise\u002Fskills-collections\u002Fblob\u002Fmain\u002Fskills\u002Fantigravity-ssl-tls-management\u002Freferences\u002Fdetails.md",[82,91,99,108,116,124],{"skillNo":83,"name":84,"nameZh":6,"description":85,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":86,"sourceHtmlUrl":87,"categories":88,"keywords":89,"publishedAt":90},"01M7B6HREHB53EHGGVZND7DDXN","scrapely-scrape","Collect web data with ready-made Scrape.ly scrapers: Google Maps places, Amazon products, LinkedIn jobs, reviews, social posts. Use when the user wants structured data from a site.","https:\u002F\u002Fgithub.com\u002Fboisenoise\u002Fskills-collections\u002Fblob\u002Fmain\u002Fskills\u002Fantigravity-scrapely-scrape\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fboisenoise\u002Fskills-collections\u002Fblob\u002Fmain\u002Fskills\u002Fantigravity-scrapely-scrape\u002FSKILL.md",[],[],"2026-11-15 14:19:17",{"skillNo":92,"name":93,"nameZh":6,"description":94,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":95,"sourceHtmlUrl":96,"categories":97,"keywords":98,"publishedAt":90},"01M7B6GDNNN4HE662KA6KPF7GW","lumify-odds","Lumify's hosted sports MCP\u002FREST API for sportsbook odds, line-movement history, public betting splits, and player props across MLB, NFL, NBA, NHL, soccer, tennis, NCAAF, NCAAB. Read-only market data.","https:\u002F\u002Fgithub.com\u002Fboisenoise\u002Fskills-collections\u002Fblob\u002Fmain\u002Fskills\u002Fantigravity-lumify-odds\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fboisenoise\u002Fskills-collections\u002Fblob\u002Fmain\u002Fskills\u002Fantigravity-lumify-odds\u002FSKILL.md",[],[],{"skillNo":100,"name":101,"nameZh":6,"description":102,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":103,"sourceHtmlUrl":104,"categories":105,"keywords":106,"publishedAt":107},"01M743PZMJW2GEKG5J199GPSK7","sync-lipsync","Lip-sync an existing video of a real person to new audio or a typed script with sync. labs through its hosted MCP server, quoting the cost and waiting for approval first.","https:\u002F\u002Fgithub.com\u002Fboisenoise\u002Fskills-collections\u002Fblob\u002Fmain\u002Fskills\u002Fantigravity-sync-lipsync\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fboisenoise\u002Fskills-collections\u002Fblob\u002Fmain\u002Fskills\u002Fantigravity-sync-lipsync\u002FSKILL.md",[],[],"2026-11-11 15:11:14",{"skillNo":109,"name":110,"nameZh":6,"description":111,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":112,"sourceHtmlUrl":113,"categories":114,"keywords":115,"publishedAt":107},"01M743MMN3CKTJVNRSZMB684E5","music-for-robots","Optional music-inspired creative exercise for multimodal agents. Ingests an unquantized acoustic MP3 composition by Michael Luchtan (Music For Robots) into a private temporary directory, analyzing microtiming and texture to inspire creative writing, brainstorming, or technical tasks.","https:\u002F\u002Fgithub.com\u002Fboisenoise\u002Fskills-collections\u002Fblob\u002Fmain\u002Fskills\u002Fantigravity-music-for-robots\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fboisenoise\u002Fskills-collections\u002Fblob\u002Fmain\u002Fskills\u002Fantigravity-music-for-robots\u002FSKILL.md",[],[],{"skillNo":117,"name":118,"nameZh":6,"description":119,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":120,"sourceHtmlUrl":121,"categories":122,"keywords":123,"publishedAt":107},"01M743KC2GN5WE11BSTWSSWD8B","imagera-media","Generate or edit images, video clips, voiceovers and music through the hosted Imagera MCP server, quoting the credit cost and getting approval before each paid call.","https:\u002F\u002Fgithub.com\u002Fboisenoise\u002Fskills-collections\u002Fblob\u002Fmain\u002Fskills\u002Fantigravity-imagera-media\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fboisenoise\u002Fskills-collections\u002Fblob\u002Fmain\u002Fskills\u002Fantigravity-imagera-media\u002FSKILL.md",[],[],{"skillNo":125,"name":126,"nameZh":6,"description":127,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":128,"sourceHtmlUrl":129,"categories":130,"keywords":131,"publishedAt":107},"01M743HDJNZQA8A4VT68NWGWQJ","deja-history","Search this machine's past AI coding sessions across Claude Code, Codex, Cursor, Gemini CLI and thirty-nine other agents before editing, debugging, or denying something exists.","https:\u002F\u002Fgithub.com\u002Fboisenoise\u002Fskills-collections\u002Fblob\u002Fmain\u002Fskills\u002Fantigravity-deja-history\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fboisenoise\u002Fskills-collections\u002Fblob\u002Fmain\u002Fskills\u002Fantigravity-deja-history\u002FSKILL.md",[],[]]