amitaibu
amitaibu

Reputation: 1116

`mkcert` command not found, after installing 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

Upvotes: 11

Views: 19940

Answers (2)

Aaron Gibson
Aaron Gibson

Reputation: 1378

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

choco install mkcert

Upvotes: 1

rfay
rfay

Reputation: 12795

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.

Upvotes: 8

Related Questions