mkcert command not found

In this troubleshooting guide we learn how to fix mkcert command not found error message

Introduction

When you run more command in linux terminal / console, you get the following error message

mkcert: command not found

or when using sudo you get the following error message

sudo: mkcert: command not found

Solutions to mkcert: command not found

How To Fix mkcert: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu mkcert is provided by mkcert package.

mkcert is:

mkcert is a simple tool for making locally-trusted development certificates. It requires no configuration.

mkcert automatically creates and installs a local CA in the system root store, and generates locally-trusted certificates. mkcert does not automatically configure servers to use the certificates, though, that’s up to you.

To fix this problem, we can install more using the command below.

sudo apt-get -y install mkcert

This command might take some time to finish depending on your machine internet connection.

You can also use apt command to install mkcert.

sudo apt -y install mkcert

Or if you have aptitude installed you can use the following command.

sudo aptitude install mkcert

Summary

In this tutorial we learn how to fix mkcert command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.