Skip to content

Instantly share code, notes, and snippets.

@PierBover
Created January 30, 2024 00:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save PierBover/d027188d8eb29dbd19edeec3e358524d to your computer and use it in GitHub Desktop.
Save PierBover/d027188d8eb29dbd19edeec3e358524d to your computer and use it in GitHub Desktop.
Create self signed certificate in macOS
openssl req -x509 -newkey rsa:2048 -nodes -sha256 -subj '/CN=localhost' -keyout localhost-key.pem -out localhost-cert.pem
mkcert -install
mkcert -key-file localhost-key.pem -cert-file localhost-cert.pem mydevdomain.com localhost 127.0.0.1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment