FiloSottile/mkcert

Build from source not operational

Ricky-Tigg opened this issue ยท 1 comments

v.: 1.4.4 | OS: Fedora. Hello.

$ dnf --installed list golang-bin | sed 1d
golang-bin.x86_64                1.20.1-1.fc38                 @fedora

In application

$ cd Downloads && git clone https://github.com/FiloSottile/mkcert && cd mkcert
$ go build -ldflags "-X main.Version=$(git describe --tags)"
$ mkcert -install
bash: mkcert: command not found..

So that was that; the installation instruction was partial.

$ ./mkcert -install
Created a new local CA ๐Ÿ’ฅ
Sudo password:
The local CA is now installed in the system trust store! โšก๏ธ
Warning: "certutil" is not available, so the CA can't be automatically installed in Firefox and/or Chrome/Chromium! โš ๏ธ
Install "certutil" with "yum install nss-tools" and re-run "mkcert -install" ๐Ÿ‘ˆ

$ sudo dnf -qy install nss-tools && ./mkcert -install
The local CA is already installed in the system trust store! ๐Ÿ‘
The local CA is now installed in the Firefox and/or Chrome/Chromium trust store (requires browser restart)! ๐ŸฆŠ
  • A system configuration may have a command language interpreter that does not specify the use of ./ and other supported syntaxes as required in order to execute an executable. However Bash, which is the default Shell installed on a majority of GNU/Linux distributions and other UNIX systems, it is a requirement.
  • As demonstrated above the instructions lack to inform that installations of golang-bin and nss-tools were pre-requirements.
  • "Install "certutil" with "yum (...)" | That illustrates a non-updated comment. YUM was replaced by dnf; thus became obsolete.

Here is accordingly a complete commands instruction:

$ sudo dnf -qy install golang-bin nss-tools
$ git clone https://github.com/FiloSottile/mkcert && cd mkcert
$ go build -ldflags "-X main.Version=$(git describe --tags)"
$ ./mkcert -install