FiloSottile / mkcert

A simple zero-config tool to make locally trusted development certificates with any names you'd like.
https://mkcert.dev
BSD 3-Clause "New" or "Revised" License
48.79k stars 2.52k forks source link

Provide packages for Ubuntu and Arch #369

Open rudolfschmidt opened 3 years ago

rudolfschmidt commented 3 years ago

Our team uses your product but we have not found any packages for Ubuntu or Arch. Please provide them. Thanks

aindriu80 commented 3 years ago

How to install Mkcert on Ubuntu/Pop OS:-

1)From your home folder, Need to wget the latest Release & specify where to put it ->

sudo wget https://github.com/FiloSottile/mkcert/releases/download/v1.4.3/mkcert-v1.4.3-linux-amd64 -O /usr/local/bin/mkcert

2)Then change permissions:

sudo chmod +x /usr/local/bin/mkcert

3)Now cd into the folder if need be and run: mkcert -install

4)Need to install local certificates for localhost:

mkcert localhost

It will generate two .pem files. You can use them.

On a React Project using VSCode you can do the following, in your VSCode Json file, have something like this under scripts: "dev": "BROWSER=Browser location HTTPS=true SSL_CRT_FILE=/folder/mkcert/localhost.pem SSL_KEY_FILE=/folder/mkcert/localhost-key.pem react-scripts start"

Then run npm run dev

rudolfschmidt commented 3 years ago

Thanks for your response.

Is there a better way to install and update it?

We would love to have something like

apt-get install mkcert

so we can build a docker that always install and updates via a package manager without thinking about how to install it manually

aindriu80 commented 3 years ago

np, it's not an official app so you have to manually get the latest binaries and install them into a folder. It's probably simpler to install the binaries than to spin up a docker container.

DUOLabs333 commented 2 years ago

For anyone coming here, mkcert is packaged for Arch.

rfay commented 2 years ago

It seems that mkcert is also now in Ubuntu 22.04 and upcoming Debian 12 Bookworm, but it's not in Ubuntu 20.04 or Debian 11 Bullseye.