mkcert icon indicating copy to clipboard operation
mkcert copied to clipboard

Provide packages for Ubuntu and Arch

Open rudolfschmidt opened this issue 3 years ago • 5 comments

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

rudolfschmidt avatar Jun 03 '21 11:06 rudolfschmidt

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

aindriu80 avatar Jun 07 '21 14:06 aindriu80

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

rudolfschmidt avatar Jun 07 '21 15:06 rudolfschmidt

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.

aindriu80 avatar Jun 09 '21 11:06 aindriu80

For anyone coming here, mkcert is packaged for Arch.

DUOLabs333 avatar May 11 '22 17:05 DUOLabs333

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.

rfay avatar Jul 19 '22 15:07 rfay