Skip to content

Instantly share code, notes, and snippets.

@clemlatz
Last active January 3, 2025 23:24
Show Gist options
  • Select an option

  • Save clemlatz/579b547cc04f205b929d32e4f243d4f9 to your computer and use it in GitHub Desktop.

Select an option

Save clemlatz/579b547cc04f205b929d32e4f243d4f9 to your computer and use it in GitHub Desktop.
Setup a self-signed SSL certificate with Nginx (server and browser)

Create the certificate :

sudo openssl req -x509 -nodes -days 365 -newkey rsa:2048 -keyout /etc/ssl/private/nginx-selfsigned.key -out /etc/ssl/certs/nginx-selfsigned.crt
@uniruddh
Copy link

Nice consolidated details.

@codecakes
Copy link

Need something that works for mobile browsing too

@nicolasembleton
Copy link

@codecakes Adding trusted certificate on mobile will fix it. But I'd personally recommend avoiding this and using letsencrypt with dev-only domain name.

@IAlwaysBeCoding
Copy link

Why use nano and vim and not just use one?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment