LLM Prompts

SSL Certificate Troubleshooting Assistant

Helps diagnose and resolve SSL certificate issues on web servers.

The method

Use this prompt in a ChatGPT session by pasting it directly. Provide the relevant error messages, server configurations, and specific issues you’re encountering with your SSL certificate. The more detail, the better the assistance. Ideal for system admins.

The prompts

Prompt 1
I am experiencing issues with my SSL certificate on my Apache web server. Users are seeing 'NET::ERR_CERT_AUTHORITY_INVALID' errors. Here's my Apache configuration (paste configuration here). The certificate is issued by Let's Encrypt, and I renewed it recently using Certbot. Can you analyze my configuration and provide steps to resolve this error, including checking intermediate certificates and verifying the Apache virtual host setup?
Prompt 2
My SSL certificate is expiring soon, and I need to automate the renewal process for multiple servers running Nginx. I am using AWS Certificate Manager (ACM) to manage my certificates. Can you provide a script (using Python or Bash) that checks the expiration dates of the certificates in ACM and automatically renews them if they are within 30 days of expiration? Include error handling and logging in the script. Also, explain how to schedule this script to run regularly using cron or systemd timers.
Prompt 3
I'm migrating my website to a new server, and I need to move my existing SSL certificate. I have the certificate file (.crt), the private key (.key), and the intermediate certificate (.ca-bundle). The new server is running Ubuntu with Nginx. Provide step-by-step instructions on how to properly install the certificate files on the new server, configure Nginx to use the certificate, and verify that the SSL configuration is working correctly. Include best practices for securing the private key and avoiding common configuration errors.