Install and configure an SSL/TLS certificate on my server
Step-by-step HTTPS setup for your exact server and software, including renewal, redirects, and how to verify it worked.
The prompt
Walk me through setting up HTTPS with an SSL/TLS certificate.
Website or app: [DOMAIN(S), including www and subdomains]
Hosting: [VPS / dedicated server / shared hosting / managed platform - provider if relevant]
Operating system: [e.g. "Ubuntu 24.04", "Windows Server 2022"]
Web server or proxy: [Nginx / Apache / IIS / Caddy / load balancer / CDN in front]
Certificate source: [free automated (e.g. Let's Encrypt) / bought from a CA / provided by my host / not sure]
Access I have: [root or SSH / control panel only]
Current state: [no HTTPS / expired certificate / errors - PASTE ANY ERROR]
Give me:
1. The right approach for my setup and why (automated vs. manual certificate, where TLS should terminate if a CDN or load balancer is involved).
2. Exact steps and commands, in order, with file paths and the config lines to add or change. Explain what each one does.
3. Redirects from HTTP to HTTPS and from non-canonical hostnames, without redirect loops.
4. Sensible TLS settings (modern protocol versions, full certificate chain) and when to consider HSTS, with its risks.
5. Automatic renewal and how to test it.
6. A verification checklist: browser check, command-line check, mixed-content check, and an expiry reminder.
7. Troubleshooting for common errors (chain incomplete, name mismatch, port 80/443 blocked, DNS not pointing to the server).
Tell me to back up config files before editing and to test config syntax before reloading. Never ask me to paste private keys; if a command shows one, tell me to keep it private.
Highlighted [brackets] are blanks to replace with your own details.
Fill in the blanks and use this promptMore Software Development prompts
What to fill in
- DOMAIN(S), including www and subdomains
- e.g. "Ubuntu 24.04", "Windows Server 2022"
- Nginx / Apache / IIS / Caddy / load balancer / CDN in front
- root or SSH / control panel only
- no HTTPS / expired certificate / errors - PASTE ANY ERROR
How this prompt is built
This prompt follows the Few-Shot structure (Few-shot prompting). A few-shot prompt includes one or more worked examples of the input and the output you want, so the model can copy the pattern instead of guessing it.
Related prompts
- Break my first coding project into small buildable stepsA milestone plan where every step leaves you with a working program and tells you what to learn next.
- Get unstuck on a coding error with hints instead of the answerA plain-English explanation of your error and step-by-step hints, so you learn to debug instead of copying a fix.
- Review an RPA workflow for errors, fragility, and best practicesA structured code review of a UiPath, Power Automate, or similar bot workflow, with issues ranked and explained before any changes.
- Set up experiment tracking for a machine learning training runStep-by-step setup to log metrics, hyperparameters, and artifacts from your training script, locally or on a cluster.