Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

`mkcert` command not found, after installing ddev

Tags:

ddev

mkcert doesn't seem to be installed (or maybe not in the right path) on Ubuntu

ddev version
DDEV-Local version  v1.8.0                        
commit              v1.8.0                        
db                  drud/ddev-dbserver:v1.8.0-10.2
dba                 drud/phpmyadmin:v1.8.0        
ddev-ssh-agent      drud/ddev-ssh-agent:v1.8.0    
docker              18.09.5                       
docker-compose      1.21.2                        
domain              ddev.local                    
os                  linux                         
router              drud/ddev-router:v1.8.0       
web                 drud/ddev-webserver:v1.8.0 

On Ubuntu 18

mkcert -install
zsh: command not found: mkcert
like image 709
amitaibu Avatar asked May 15 '19 08:05

amitaibu


2 Answers

If you use( a package manager homebrew on Linux or macOS, or use the ddev Windows installer, or use Chocolatey on WIndows) then mkcert gets installed for you. In all other cases you have to install it yourself, see https://github.com/FiloSottile/mkcert

Note that mkcert is optional. It's how we get the browser (and curl, etc) to trust the local development site using https. But of course, we can just use all the various means we've always used to ignore untrusted connections. But mkcert makes it really nice!

Note that on Linux mkcert -install may give you some extra instructions that you'll need to do for everything to work right, see docs.

like image 69
rfay Avatar answered Oct 05 '22 01:10

rfay


For me, I had to use chocolaty to get this in. Everything else kept failing..

choco install mkcert

like image 20
Aaron Gibson Avatar answered Oct 05 '22 01:10

Aaron Gibson